hexsha
stringlengths
40
40
size
int64
5
1.05M
ext
stringclasses
588 values
lang
stringclasses
305 values
max_stars_repo_path
stringlengths
3
363
max_stars_repo_name
stringlengths
5
118
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
float64
1
191k
max_stars_repo_stars_event_min_datetime
stringdate
2015-01-01 00:00:35
2022-03-31 23:43:49
max_stars_repo_stars_event_max_datetime
stringdate
2015-01-01 12:37:38
2022-03-31 23:59:52
max_issues_repo_path
stringlengths
3
363
max_issues_repo_name
stringlengths
5
118
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
float64
1
134k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
363
max_forks_repo_name
stringlengths
5
135
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
float64
1
105k
max_forks_repo_forks_event_min_datetime
stringdate
2015-01-01 00:01:02
2022-03-31 23:27:27
max_forks_repo_forks_event_max_datetime
stringdate
2015-01-03 08:55:07
2022-03-31 23:59:24
content
stringlengths
5
1.05M
avg_line_length
float64
1.13
1.04M
max_line_length
int64
1
1.05M
alphanum_fraction
float64
0
1
824e0833af1ca81fe5e10e9d47057adf303b3421
1,677
h
C
Engine/Source/Runtime/AIModule/Classes/EnvironmentQuery/Generators/EnvQueryGenerator_ActorsOfClass.h
windystrife/UnrealEngine_NVIDIAGameWork
b50e6338a7c5b26374d66306ebc7807541ff815e
[ "MIT" ]
1
2022-01-29T18:36:12.000Z
2022-01-29T18:36:12.000Z
Engine/Source/Runtime/AIModule/Classes/EnvironmentQuery/Generators/EnvQueryGenerator_ActorsOfClass.h
windystrife/UnrealEngine_NVIDIAGameWork
b50e6338a7c5b26374d66306ebc7807541ff815e
[ "MIT" ]
null
null
null
Engine/Source/Runtime/AIModule/Classes/EnvironmentQuery/Generators/EnvQueryGenerator_ActorsOfClass.h
windystrife/UnrealEngine_NVIDIAGameWork
b50e6338a7c5b26374d66306ebc7807541ff815e
[ "MIT" ]
null
null
null
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. #pragma once #include "CoreMinimal.h" #include "UObject/ObjectMacros.h" #include "Templates/SubclassOf.h" #include "GameFramework/Actor.h" #include "EnvironmentQuery/EnvQueryContext.h" #include "DataProviders/AIDataProvider.h" #include "EnvironmentQuery/EnvQueryGenerator.h" #include "EnvQueryGenerator_ActorsOfClass.generated.h" UCLASS(meta = (DisplayName = "Actors Of Class")) class AIMODULE_API UEnvQueryGenerator_ActorsOfClass : public UEnvQueryGenerator { GENERATED_UCLASS_BODY() UPROPERTY(EditDefaultsOnly, Category=Generator) TSubclassOf<AActor> SearchedActorClass; /** If true, this will only returns actors of the specified class within the SearchRadius of the SearchCenter context. If false, it will return ALL actors of the specified class in the world. */ UPROPERTY(EditDefaultsOnly, Category=Generator) FAIDataProviderBoolValue GenerateOnlyActorsInRadius; /** Max distance of path between point and context. NOTE: Zero and negative values will never return any results if * UseRadius is true. "Within" requires Distance < Radius. Actors ON the circle (Distance == Radius) are excluded. */ UPROPERTY(EditDefaultsOnly, Category=Generator) FAIDataProviderFloatValue SearchRadius; /** context */ UPROPERTY(EditAnywhere, Category=Generator) TSubclassOf<UEnvQueryContext> SearchCenter; virtual void GenerateItems(FEnvQueryInstance& QueryInstance) const override; virtual void ProcessItems(FEnvQueryInstance& QueryInstance, TArray<AActor*>& MatchingActors) const {} virtual FText GetDescriptionTitle() const override; virtual FText GetDescriptionDetails() const override; };
39.928571
196
0.80322
79a029cc2e0409094567973a340229bad3b1922d
1,175
h
C
sfxclasses/ResourceChange.h
alexanders-code/cmdxmlinstaller
a17abda09635566748887aeae1ee047b8bbf134e
[ "BSD-2-Clause" ]
null
null
null
sfxclasses/ResourceChange.h
alexanders-code/cmdxmlinstaller
a17abda09635566748887aeae1ee047b8bbf134e
[ "BSD-2-Clause" ]
null
null
null
sfxclasses/ResourceChange.h
alexanders-code/cmdxmlinstaller
a17abda09635566748887aeae1ee047b8bbf134e
[ "BSD-2-Clause" ]
null
null
null
// ************************************************************************ // ResourceChange.h - v 0.0.1 // ************************************************************************ #pragma once #ifndef _CMDINST_RESOURCECHANGE_H #define _CMDINST_RESOURCECHANGE_H #include <stdlib.h> #include <string> static const int MaxCountRes = 3; static const int MaxLenStrValue = 50; static const int MaxLenStrVersion = 15; class ResourceChange { public: ResourceChange(void); ResourceChange( const char* fname ); bool AddResToChange( const char* rn, const char* rv ); bool UpdateResourceInFile(); void ClearResToUpdate(); virtual ~ResourceChange(void); protected: std::wstring ResName[ MaxCountRes ]; std::wstring ValName[ MaxCountRes ]; int CurrIndex; private: wchar_t _fname[ _MAX_PATH ]; unsigned int _sizeresource; bool ParseVersion( const char* version, WORD *mshi, WORD* mslo, WORD* lshi, WORD *lslo ); bool ParseVersion( const wchar_t* version, WORD *mshi, WORD* mslo, WORD* lshi, WORD *lslo ); bool ParseVersion( const char* version ); bool AddNameValToArray( const char* rn, const char* rv ); }; #endif //_CMDINST_RESOURCECHANGE_H
20.614035
93
0.64
fbcf4f26bc00fca6032dbac3f46e61dfcd55b6e8
1,028
c
C
commands/repeat/repeat.c
siddharth-mavani/Linux-C-Shell
676fb21635a16b69e4dd3ecd118d4b4429693a68
[ "MIT" ]
null
null
null
commands/repeat/repeat.c
siddharth-mavani/Linux-C-Shell
676fb21635a16b69e4dd3ecd118d4b4429693a68
[ "MIT" ]
null
null
null
commands/repeat/repeat.c
siddharth-mavani/Linux-C-Shell
676fb21635a16b69e4dd3ecd118d4b4429693a68
[ "MIT" ]
null
null
null
#include "../headers.h" #include "../utils/utils.h" #include "./repeat.h" // This function converts a number of type string to int int get_num_2(char *str){ int num = 0, single_num; for(int i=0; i<strlen(str); i++){ num *= 10; single_num = str[i] - '0'; if(!(single_num >= 0 && single_num <= 9)){ perror("wrong input"); return -1; } num += single_num; } return num; } void repeat(){ if(total_arguments == 1){ printf("error: Invalid number of arguments\n"); return; } // Converting number of type string to int int num = get_num_2(command[1]); // Making array required for execvp for(int i = 2; i<total_arguments; i++){ strcpy(command[i - 2], command[i]); } strcpy(command[total_arguments - 1], ""); strcpy(command[total_arguments - 2], ""); total_arguments = total_arguments - 2; // executing commands for(int i=0; i<num;i++){ execute(command[0]); } }
22.347826
56
0.555447
e5e0382c53ff233d6ee3db6b80d096cde10a1257
470
h
C
settingsLoader/theos/include/Gremlin/GRServer.h
lechium/tvOSPreferenceLoader
378e54459231263efeb695dd08c7ea2653826897
[ "MIT" ]
9
2018-08-06T20:04:08.000Z
2021-08-19T19:00:49.000Z
settingsLoader/theos/include/Gremlin/GRServer.h
sbingner/tvOSPreferenceLoader
5f583f6e22280a82228379aac03490aba8cc224c
[ "MIT" ]
null
null
null
settingsLoader/theos/include/Gremlin/GRServer.h
sbingner/tvOSPreferenceLoader
5f583f6e22280a82228379aac03490aba8cc224c
[ "MIT" ]
2
2019-12-21T14:56:46.000Z
2020-12-11T01:23:35.000Z
/* * Created by Youssef Francis on September 25th, 2012. */ #import "GRTask.h" @protocol GRServerImportDelegate <NSObject> - (void)importTask:(GRTask*)task; @end @interface GRServer : NSObject @property (assign) id<GRServerImportDelegate> importDelegate; + (GRServer*)sharedServer; - (void)signalImportCompleteForTask:(GRTask*)task status:(BOOL)status error:(NSError*)error; - (BOOL)run; @end
21.363636
61
0.640426
b22d453871a5da1975e3b19cd6fd6e11086fc786
651
h
C
PrivateFrameworks/PhotoLibraryServices/PLInvitationRecordsChangeNotification.h
phatblat/macOSPrivateFrameworks
9047371eb80f925642c8a7c4f1e00095aec66044
[ "MIT" ]
17
2018-11-13T04:02:58.000Z
2022-01-20T09:27:13.000Z
PrivateFrameworks/PhotoLibraryServices/PLInvitationRecordsChangeNotification.h
phatblat/macOSPrivateFrameworks
9047371eb80f925642c8a7c4f1e00095aec66044
[ "MIT" ]
3
2018-04-06T02:02:27.000Z
2018-10-02T01:12:10.000Z
PrivateFrameworks/PhotoLibraryServices/PLInvitationRecordsChangeNotification.h
phatblat/macOSPrivateFrameworks
9047371eb80f925642c8a7c4f1e00095aec66044
[ "MIT" ]
1
2018-09-28T13:54:23.000Z
2018-09-28T13:54:23.000Z
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import <PhotoLibraryServices/PLContainerChangeNotification.h> @class NSDictionary, PLGenericAlbum; @interface PLInvitationRecordsChangeNotification : PLContainerChangeNotification { BOOL _invitationRecordsDidChange; NSDictionary *_userInfo; } + (id)notificationWithAlbum:(id)arg1 snapshot:(id)arg2; - (void).cxx_destruct; - (void)_calculateDiffs; @property(readonly, nonatomic) PLGenericAlbum *album; - (id)name; @property(readonly, nonatomic) BOOL invitationRecordsDidChange; - (id)userInfo; @end
24.111111
83
0.760369
c3a11dfa4f386f28030cfb4a2abaf05288df6e0f
14,113
h
C
src/utests/include/utests/baselib/HttpServerHelpers.h
sturosier/swblocks-baselib
3f6ad1f34bbdef5824ab7c91344eec5b876fa718
[ "Apache-2.0" ]
30
2017-01-27T00:12:43.000Z
2021-04-02T23:33:49.000Z
src/utests/include/utests/baselib/HttpServerHelpers.h
sha-shrestha/swblocks-baselib
f5d38ace39e386b233fa96239ba16cdedac765aa
[ "Apache-2.0" ]
33
2017-04-20T15:42:53.000Z
2021-01-24T14:04:07.000Z
src/utests/include/utests/baselib/HttpServerHelpers.h
sha-shrestha/swblocks-baselib
f5d38ace39e386b233fa96239ba16cdedac765aa
[ "Apache-2.0" ]
29
2017-01-27T17:57:39.000Z
2021-09-09T01:06:35.000Z
/* * This file is part of the swblocks-baselib library. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef __UTEST_HTTPSERVERHELPERS_H_ #define __UTEST_HTTPSERVERHELPERS_H_ #include <baselib/data/eh/ServerErrorHelpers.h> #include <baselib/httpserver/ServerBackendProcessingImplDefault.h> #include <baselib/httpserver/ServerBackendProcessing.h> #include <baselib/httpserver/HttpServer.h> #include <baselib/httpserver/Parser.h> #include <baselib/httpserver/Request.h> #include <baselib/httpserver/Response.h> #include <baselib/http/SimpleHttpTask.h> #include <baselib/http/SimpleHttpSslTask.h> #include <baselib/http/SimpleSecureHttpSslTask.h> #include <baselib/http/Globals.h> #include <baselib/tasks/TasksUtils.h> #include <baselib/tasks/Algorithms.h> #include <baselib/tasks/Task.h> #include <baselib/tasks/TaskBase.h> #include <baselib/tasks/ExecutionQueue.h> #include <baselib/tasks/utils/ScanDirectoryTask.h> #include <baselib/tasks/SimpleTaskControlToken.h> #include <baselib/core/NumberUtils.h> #include <baselib/core/BoxedObjects.h> #include <baselib/core/OS.h> #include <baselib/core/ThreadPool.h> #include <baselib/core/ThreadPoolImpl.h> #include <baselib/core/TimeUtils.h> #include <baselib/core/PathUtils.h> #include <baselib/core/Utils.h> #include <baselib/core/Random.h> #include <baselib/core/Uuid.h> #include <baselib/core/ObjModel.h> #include <baselib/core/ObjModelDefs.h> #include <baselib/core/BaseIncludes.h> #include <utests/baselib/MachineGlobalTestLock.h> #include <utests/baselib/TestTaskUtils.h> #include <utests/baselib/TestFsUtils.h> #include <utests/baselib/UtfCrypto.h> #include <utests/baselib/Utf.h> #include <utests/baselib/UtfArgsParser.h> #include <cstdlib> #include <cstdint> #include <unordered_map> namespace utest { namespace http { using bl::httpserver::Request; using bl::httpserver::Response; using bl::httpserver::ServerBackendProcessing; using bl::httpserver::ServerBackendProcessingImplDefault; using bl::tasks::TaskControlTokenRW; typedef bl::http::Parameters::HttpStatusCode HttpStatusCode; typedef bl::http::Parameters::HttpHeader HttpHeader; const std::string g_requestUri = "/request-uri"; const std::string g_requestPerfUri = "/request-perf-uri"; const std::string g_redirectedRequestUri = "/redirected-request-uri"; const std::string g_notFoundUri = "/invalid-request-uri"; const std::string g_desiredResult = "\r\nHTTP server successfully processed a normal request!\r\n"; const std::string g_desiredPerfResult = "\r\nHTTP server successfully processed a perf request!\r\n"; const std::string g_redirectedResult = "\r\nHTTP server successfully processed a redirected request!\r\n"; const std::string g_notFoundResult = "\r\nHTTP page not found!\r\n"; template < typename BACKENDSTATE > class TestHttpServerProcessingTask : public bl::httpserver::HttpServerProcessingTaskDefault< BACKENDSTATE > { BL_DECLARE_OBJECT_IMPL( TestHttpServerProcessingTask ) protected: typedef bl::httpserver::HttpServerProcessingTaskDefault< BACKENDSTATE > base_type; typedef bl::http::Parameters::HttpStatusCode HttpStatusCode; using base_type::m_statusCode; using base_type::m_request; using base_type::m_response; using base_type::m_responseHeaders; TestHttpServerProcessingTask( SAA_in bl::om::ObjPtr< Request >&& request, SAA_in_opt bl::om::ObjPtr< BACKENDSTATE >&& backendState = nullptr ) : base_type( BL_PARAM_FWD( request ), BL_PARAM_FWD( backendState ) ) { } virtual void requestProcessing() OVERRIDE { if( m_request -> uri() == g_requestUri || m_request -> uri() == g_requestPerfUri ) { m_response = m_request -> uri() == g_requestUri ? g_desiredResult : g_desiredPerfResult; m_statusCode = HttpStatusCode::HTTP_SUCCESS_OK; } else if( m_request -> uri() == g_redirectedRequestUri ) { m_response = g_redirectedResult; m_statusCode = HttpStatusCode::HTTP_REDIRECT_PERMANENTLY; } else { m_response = g_notFoundResult; m_statusCode = HttpStatusCode::HTTP_CLIENT_ERROR_NOT_FOUND; } m_responseHeaders.clear(); const auto pos = m_request -> headers().find( http::HttpHeader::g_userAgent ); if( pos != m_request -> headers().end() ) { m_responseHeaders[ "request-user-agent-id" ] = pos -> second; } if( m_request -> uri() != g_requestPerfUri ) { bl::os::sleep( bl::time::milliseconds( 20 /* millisecondsWait */ ) ); } }; }; class DummyBackendState : public bl::om::ObjectDefaultBase { }; typedef bl::om::ObjectImpl< DummyBackendState > DummyBackendStateImpl; typedef bl::om::ObjectImpl < ServerBackendProcessingImplDefault< DummyBackendStateImpl, TestHttpServerProcessingTask > > ServerBackendProcessingImplTest; template < typename E = void > class HttpServerHelpersT { BL_DECLARE_STATIC( HttpServerHelpersT ) public: typedef std::tuple < bool /* exceptionExpected */, bl::http::Parameters::HttpStatusCode /* statusCodeExpected */, std::string /* contentExpected */ > completion_result_t; typedef std::unordered_map < bl::om::ObjPtr< bl::tasks::Task >, completion_result_t > completion_results_map_t; template < typename TASKIMPL = bl::tasks::SimpleHttpPutTaskImpl > static void sendHttpRequestAndVerifyTheResult( SAA_in const bl::om::ObjPtr< bl::tasks::ExecutionQueue >& eq, SAA_in const std::string& uri, SAA_in const std::string& content, SAA_in const bool exceptionExpected, SAA_in const bl::http::Parameters::HttpStatusCode statusCodeExpected, SAA_in const std::string contentExpected = std::string(), SAA_in_opt completion_results_map_t* completionResults = nullptr ) { using namespace bl; MessageBuffer request; request << content; const auto taskImpl = TASKIMPL::template createInstance( cpp::copy( test::UtfArgsParser::host() ), test::UtfArgsParser::port(), uri, /* URI */ resolveMessage( request ) /* content */ ); const auto task = om::qi< bl::tasks::Task >( taskImpl ); eq -> push_back( task ); if( completionResults ) { completionResults -> emplace( bl::om::copy( task ), std::make_tuple( exceptionExpected, statusCodeExpected, contentExpected ) ); return; } if( exceptionExpected ) { eq -> wait( task, false /* cancel */ ); UTF_REQUIRE( task -> isFailed() ); } else { eq -> waitForSuccess( task, false /* cancel */ ); } const auto status = taskImpl -> getHttpStatus(); const auto& response = taskImpl -> getResponse(); BL_LOG_MULTILINE( Logging::debug(), BL_MSG() << "HTTP status is " << status << "; body:\n\n" << response ); UTF_REQUIRE( status == statusCodeExpected ) if( ! contentExpected.empty() ) { UTF_REQUIRE( response.find( contentExpected ) != std::string::npos ); } } template < typename TASKIMPL = bl::tasks::SimpleHttpPutTaskImpl > static void sendAndVerifyAssortedHttpRequests( SAA_in const bl::om::ObjPtr< bl::tasks::ExecutionQueue >& eq, SAA_in_opt completion_results_map_t* completionResults = nullptr ) { using namespace utest::http; /* * Test with a valid request */ sendHttpRequestAndVerifyTheResult< TASKIMPL >( eq, g_requestUri, /* URI */ "0123456789", /* content */ false, /* exceptionExpected */ bl::http::Parameters::HTTP_SUCCESS_OK, /* statusCodeExpected */ g_desiredResult /* contentExpected */, completionResults ); /* * Test with a redirected request */ sendHttpRequestAndVerifyTheResult< TASKIMPL >( eq, g_redirectedRequestUri, /* URI */ "0123456789", /* content */ true, /* exceptionExpected */ bl::http::Parameters::HTTP_REDIRECT_PERMANENTLY, /* statusCodeExpected */ g_redirectedResult /* contentExpected */, completionResults ); /* * Test with a invalid URI path request */ sendHttpRequestAndVerifyTheResult< TASKIMPL >( eq, g_notFoundUri, /* URI */ "0123456789", /* content */ true, /* exceptionExpected */ bl::http::Parameters::HTTP_CLIENT_ERROR_NOT_FOUND, /* statusCodeExpected */ g_notFoundResult /* contentExpected */, completionResults ); /* * Test with a bad request (no URI) */ sendHttpRequestAndVerifyTheResult< TASKIMPL >( eq, std::string(), /* URI */ "0123456789", /* content */ true, /* exceptionExpected */ bl::http::Parameters::HTTP_CLIENT_ERROR_BAD_REQUEST, /* statusCodeExpected */ std::string() /* contentExpected */, completionResults ); } template < typename SERVERIMPL = bl::httpserver::HttpServer > static void startHttpServerAndExecuteCallback( SAA_in const bl::cpp::void_callback_t& callback, SAA_in_opt bl::om::ObjPtr< bl::httpserver::ServerBackendProcessing >&& backend = nullptr, SAA_in_opt const bl::om::ObjPtr< TaskControlTokenRW >& controlToken = nullptr ) { using namespace bl; using namespace bl::tasks; test::MachineGlobalTestLock lock; { if( ! backend ) { backend = ServerBackendProcessingImplTest::createInstance< httpserver::ServerBackendProcessing >(); } const auto acceptor = SERVERIMPL::template createInstance( BL_PARAM_FWD( backend ), controlToken, "0.0.0.0" /* host */, test::UtfArgsParser::port(), test::UtfCrypto::getDefaultServerKey() /* privateKeyPem */, test::UtfCrypto::getDefaultServerCertificate() /* certificatePem */ ); utest::TestTaskUtils::startAcceptorAndExecuteCallback( callback, acceptor ); } } }; typedef HttpServerHelpersT<> HttpServerHelpers; } // http } // utest #endif /* __UTEST_HTTPSERVERHELPERS_H_ */
37.735294
126
0.514561
bab8511863dcc969bc755e3d397557b637cb421b
228
h
C
kcdpg/common.h
tmbx/kas
0d4e74d0a8ec0e0f85ba574eb01d389530bdeecc
[ "BSD-3-Clause" ]
null
null
null
kcdpg/common.h
tmbx/kas
0d4e74d0a8ec0e0f85ba574eb01d389530bdeecc
[ "BSD-3-Clause" ]
null
null
null
kcdpg/common.h
tmbx/kas
0d4e74d0a8ec0e0f85ba574eb01d389530bdeecc
[ "BSD-3-Clause" ]
null
null
null
/* Copyright (C) 2006-2012 Opersys inc., All rights reserved. */ #ifndef _COMMON_H #define _COMMON_H #include "config_path.h" #include "kmod_base.h" #include "anp.h" #include "kanp_core_defs.h" #include "pg_common.h" #endif
16.285714
64
0.72807
c93c126d947925973680a326e6f87900e9630933
3,840
h
C
src/json_support.h
josephg/mime-to-jmap
870d25eb474adcb1083570454d341142a0279e6d
[ "MIT-CMU" ]
9
2020-06-13T15:04:37.000Z
2022-03-30T05:57:43.000Z
src/json_support.h
josephg/mime-to-jmap
870d25eb474adcb1083570454d341142a0279e6d
[ "MIT-CMU" ]
null
null
null
src/json_support.h
josephg/mime-to-jmap
870d25eb474adcb1083570454d341142a0279e6d
[ "MIT-CMU" ]
null
null
null
/* json_support.h -- Helper functions for jansson and JSON * * Copyright (c) 1994-2019 Carnegie Mellon University. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The name "Carnegie Mellon University" must not be used to * endorse or promote products derived from this software without * prior written permission. For permission or any legal * details, please contact * Carnegie Mellon University * Center for Technology Transfer and Enterprise Creation * 4615 Forbes Avenue * Suite 302 * Pittsburgh, PA 15213 * (412) 268-7393, fax: (412) 268-7395 * innovation@andrew.cmu.edu * * 4. Redistributions of any form whatsoever must retain the following * acknowledgment: * "This product includes software developed by Computing Services * at Carnegie Mellon University (http://www.cmu.edu/computing/)." * * CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY * AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE * FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * */ #ifndef JSON_SUPPORT_H #define JSON_SUPPORT_H // #include <config.h> #include <jansson.h> #include "util.h" #define JNOTNULL(item) ((item) ? (json_is_null(item) == 0) : 0) /* jansson replacement functions for those missing in older versions */ #ifndef json_boolean #define json_boolean(val) ((val) ? json_true() : json_false()) #endif /* json_boolean */ #ifndef json_boolean_value #define json_boolean_value(val) ((val) == json_true() ? 1 : 0) #endif /* json_boolean_value */ #ifndef json_object_foreach #define json_object_foreach(obj, key, val) \ void *_iter_; \ for (_iter_ = json_object_iter(obj); \ _iter_ \ && (key = json_object_iter_key(_iter_)) \ && (val = json_object_iter_value(_iter_)); \ _iter_ = json_object_iter_next(obj, _iter_)) #endif /* json_object_foreach */ #ifndef json_object_foreach_safe #define json_object_foreach_safe(object, n, key, value) \ for(key = json_object_iter_key(json_object_iter(object)), \ n = json_object_iter_next(object, json_object_key_to_iter(key)); \ key && (value = json_object_iter_value(json_object_key_to_iter(key))); \ key = json_object_iter_key(n), \ n = json_object_iter_next(object, json_object_key_to_iter(key))) #endif /* json_object_foreach_safe */ #ifndef json_array_foreach #define json_array_foreach(array, index, value) \ for (index = 0; \ index < json_array_size(array) \ && (value = json_array_get(array, index)); \ index++) #endif /* json_array_foreach */ EXPORTED int json_is_utcdate(json_t *json); EXPORTED int json_array_find(json_t *array, const char *needle); #endif /* JSON_SUPPORT_H */
39.587629
80
0.666927
c76cd006ada7ae9c8cdb46e2ef5b5f89fe477d59
1,280
c
C
ft_lstmap.c
BlackFrosty/libft
60950ce6ff50ef0b84f70464065b4129d5550a31
[ "MIT" ]
null
null
null
ft_lstmap.c
BlackFrosty/libft
60950ce6ff50ef0b84f70464065b4129d5550a31
[ "MIT" ]
null
null
null
ft_lstmap.c
BlackFrosty/libft
60950ce6ff50ef0b84f70464065b4129d5550a31
[ "MIT" ]
1
2020-04-24T01:24:57.000Z
2020-04-24T01:24:57.000Z
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lstmap.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: clagreou <clagreou@student.42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2015/12/05 13:34:55 by clagreou #+# #+# */ /* Updated: 2015/12/05 13:35:22 by clagreou ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" t_list *ft_lstmap(t_list *lst, t_list *(*f)(t_list *elem)) { t_list *new_lst; t_list *after; t_list *before; new_lst = NULL; if (lst && (*f)) { new_lst = (*f)(lst); before = new_lst; lst = lst->next; while (lst) { after = (*f)(lst); before->next = after; before = after; lst = lst->next; } before->next = NULL; } return (new_lst); }
33.684211
80
0.253125
e1396ff4d93ccf08890022200a715210f5928264
978
c
C
testsuite/sandbox/matlab/dgemvt__5.c
parsabee/Orio
64de0f7ee422483b60a9f02793472e20e864aa08
[ "MIT" ]
24
2015-01-26T03:14:19.000Z
2021-09-27T23:10:12.000Z
testsuite/sandbox/matlab/dgemvt__5.c
parsabee/Orio
64de0f7ee422483b60a9f02793472e20e864aa08
[ "MIT" ]
30
2015-04-17T18:14:27.000Z
2021-05-30T15:01:47.000Z
testsuite/sandbox/matlab/dgemvt__5.c
parsabee/Orio
64de0f7ee422483b60a9f02793472e20e864aa08
[ "MIT" ]
20
2015-02-11T08:20:19.000Z
2022-01-15T17:55:00.000Z
void DGEMVT (float *A, int A_nrows, int A_ncols, float a, float b, float *y, int y_nrows, float *z, int z_nrows, float *w, int w_nrows, float *x, int x_nrows) { float *t5 = new float[A_ncols]; float *t9 = new float[A_nrows]; for (int i = 0; i < A_ncols; i += 1) { float *t13 = A + i * A_nrows; float &t18 = t5[i]; float t31 = 0; for (int j = 0; j < A_nrows; j += 1) { float t30 = t13[j]; float t29 = y[j]; t31 += (t29 * t30); } t18 = (b * t31); } for (int i = 0; i < A_ncols; i += 1) { float t20 = z[i]; float t19 = t5[i]; float &t22 = x[i]; t22 = (t19 + t20); } for (int ii = 0; ii < A_nrows; ++ii) t9[ii] = 0.0; for (int i = 0; i < A_ncols; i += 1) { float t24 = x[i]; float *t23 = A + i * A_nrows; for (int j = 0; j < A_nrows; j += 1) { float t32 = t23[j]; float &t34 = t9[j]; t34 += (t24 * t32); } } for (int i = 0; i < A_nrows; i += 1) { float t26 = t9[i]; float &t28 = w[i]; t28 = (a * t26); } }
19.959184
71
0.503067
103f36e6f26c26d5ecdca92b99678a476b03ce05
1,422
h
C
src/windows/SmartCardRemoval/precompiled.h
kaidokert/old-esteid-stack
0391bbf600556dc8527c4f87eed2c95afc878ab4
[ "BSD-3-Clause" ]
null
null
null
src/windows/SmartCardRemoval/precompiled.h
kaidokert/old-esteid-stack
0391bbf600556dc8527c4f87eed2c95afc878ab4
[ "BSD-3-Clause" ]
null
null
null
src/windows/SmartCardRemoval/precompiled.h
kaidokert/old-esteid-stack
0391bbf600556dc8527c4f87eed2c95afc878ab4
[ "BSD-3-Clause" ]
null
null
null
// or project specific include files that are used frequently, // but are changed infrequently #pragma once #ifndef STRICT #define STRICT #endif // Modify the following defines if you have to target a platform prior to the ones specified below. // Refer to MSDN for the latest info on corresponding values for different platforms. #ifndef WINVER // Allow use of features specific to Windows XP or later. #define WINVER 0x0500 // Change this to the appropriate value to target other versions of Windows. #endif #ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later. #define _WIN32_WINNT 0x0500 // Change this to the appropriate value to target other versions of Windows. #endif #ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later. #define _WIN32_WINDOWS 0x0500 // Change this to the appropriate value to target Windows Me or later. #endif #ifndef _WIN32_IE // Allow use of features specific to IE 6.0 or later. #define _WIN32_IE 0x0550 // Change this to the appropriate value to target other versions of IE. #endif #define _ATL_NO_COM_SUPPORT #define _ATL_FREE_THREADED #define _ATL_NO_AUTOMATIC_NAMESPACE #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit #define NOMINMAX #include "resource.h" #include <atlbase.h> #include <atlcom.h> #include <smartcard++/common.h> using namespace ATL;
34.682927
104
0.772152
f4a73e4c3a843d67a43ae12d22fbe9736c4bea65
2,202
h
C
robot/common/Action/jhcAliaKernel.h
jconnell11/ALIA
f7a6c9dfd775fbd41239051aeed7775adb878b0a
[ "Apache-2.0" ]
1
2020-03-01T13:22:34.000Z
2020-03-01T13:22:34.000Z
robot/common/Action/jhcAliaKernel.h
jconnell11/ALIA
f7a6c9dfd775fbd41239051aeed7775adb878b0a
[ "Apache-2.0" ]
null
null
null
robot/common/Action/jhcAliaKernel.h
jconnell11/ALIA
f7a6c9dfd775fbd41239051aeed7775adb878b0a
[ "Apache-2.0" ]
1
2020-06-29T15:11:03.000Z
2020-06-29T15:11:03.000Z
// jhcAliaKernel.h : generic interface to a pool of grounding functions // // Written by Jonathan H. Connell, jconnell@alum.mit.edu // /////////////////////////////////////////////////////////////////////////// // // Copyright 2018-2019 IBM Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////////// #ifndef _JHCALIAKERNEL_ /* CPPDOC_BEGIN_EXCLUDE */ #define _JHCALIAKERNEL_ /* CPPDOC_END_EXCLUDE */ #include "jhcGlobal.h" #include "Reasoning/jhcAliaNote.h" // common audio #include "Semantic/jhcAliaDesc.h" //= Generic interface to a pool of grounding functions. // each kernel pool handles one or more named functions thru Start/Status/Stop class jhcAliaKernel { // PROTECTED MEMBER VARIABLES protected: double ver; /** Current version of functions. */ char tag[80]; /** Base name of associated files. */ jhcAliaKernel *next; /** Other pools of functions. */ // PUBLIC MEMBER FUNCTIONS public: // creation and initialization jhcAliaKernel () {ver = 1.00; *tag = '\0'; next = NULL;} double Version () {return ver;} const char *BaseTag () const {return tag;} const jhcAliaKernel *NextPool () const {return next;} virtual ~jhcAliaKernel () {}; virtual void AddFcns (jhcAliaKernel *pool) =0; virtual void Reset (jhcAliaNote *attn) =0; // main functions virtual void Volunteer () =0; virtual int Start (const jhcAliaDesc *desc, int bid) =0; virtual int Status (const jhcAliaDesc *desc, int inst) =0; virtual int Stop (const jhcAliaDesc *desc, int inst) =0; }; #endif // once
31.014085
78
0.639419
0916a20d47e2af2886cdea375e93975b2f6a9a50
275
h
C
PyzeViewController/PyzeViewController/SearchTableViewController.h
pyze/iOS-Samples
a61b4ad3748d514ff5f55962f9da734b1c0e1c5e
[ "MIT" ]
2
2016-11-15T11:03:31.000Z
2017-08-26T16:17:42.000Z
PyzeViewController/PyzeViewController/SearchTableViewController.h
pyze/iOS-Samples
a61b4ad3748d514ff5f55962f9da734b1c0e1c5e
[ "MIT" ]
1
2018-03-06T20:57:30.000Z
2018-03-06T20:57:30.000Z
PyzeViewController/PyzeViewController/SearchTableViewController.h
pyze/iOS-Samples
a61b4ad3748d514ff5f55962f9da734b1c0e1c5e
[ "MIT" ]
null
null
null
// // SearchTableViewController.h // PyzeViewController // // Created by Ramachandra Naragund on 03/12/15. // Copyright © 2015 Pyze Technologies Pvt Ltd. All rights reserved. // #import <UIKit/UIKit.h> @interface SearchTableViewController : UITableViewController @end
19.642857
68
0.752727
091a24791fa854c5ae8a21caca5cf63b90ac5c45
682
h
C
lib/src/platform/win/process_singleton_impl.h
Voxelum/DeskGap
9201f1197170385c53f0a2dbb45b6283b518b1c3
[ "MIT" ]
null
null
null
lib/src/platform/win/process_singleton_impl.h
Voxelum/DeskGap
9201f1197170385c53f0a2dbb45b6283b518b1c3
[ "MIT" ]
2
2022-03-20T13:09:11.000Z
2022-03-30T05:07:12.000Z
lib/src/platform/win/process_singleton_impl.h
Voxelum/DeskGap
9201f1197170385c53f0a2dbb45b6283b518b1c3
[ "MIT" ]
1
2022-03-24T01:33:56.000Z
2022-03-24T01:33:56.000Z
#ifndef DESKGAP_PROCESS_SINGLETON_IMPL_HPP #define DESKGAP_PROCESS_SINGLETON_IMPL_HPP #include "process_singleton.hpp" #include <Windows.h> namespace DeskGap { #ifdef WIN32 typedef const COPYDATASTRUCT *MessagePayload; #else typedef char *MessagePayload; #endif struct ProcessSingleton::Impl { // The current stub window handle HWND hwnd_; // The another instance stub window handle HWND remote_window_; HANDLE lock_file_; SecondInstanceEventCallback event_callback_; Impl(SecondInstanceEventCallback &&); bool ProcessLaunchNotification(MessagePayload payload); }; } // namespace DeskGap #endif
22.733333
63
0.725806
ade3ee6329d7154065c42f3f8f1185126db338ad
73
c
C
contrib/gnu/gdb/dist/gold/testsuite/aarch64_pr23870_foo.c
TheSledgeHammer/2.11BSD
fe61f0b9aaa273783cd027c7b5ec77e95ead2153
[ "BSD-3-Clause" ]
3
2021-05-04T17:09:06.000Z
2021-10-04T07:19:26.000Z
contrib/gnu/gdb/dist/gold/testsuite/aarch64_pr23870_foo.c
TheSledgeHammer/2.11BSD
fe61f0b9aaa273783cd027c7b5ec77e95ead2153
[ "BSD-3-Clause" ]
null
null
null
contrib/gnu/gdb/dist/gold/testsuite/aarch64_pr23870_foo.c
TheSledgeHammer/2.11BSD
fe61f0b9aaa273783cd027c7b5ec77e95ead2153
[ "BSD-3-Clause" ]
null
null
null
void foo (void (*bar)(void)); void foo (void (*bar)(void)) { bar(); }
10.428571
29
0.534247
f638b6cd4c3bb86a4514f9a90645920c27d5ec1d
3,374
c
C
srcs/lexer/sh_lexer.c
mmalekseev/21sh
9f1d07af205ff09c436947f24160668a78c11c03
[ "MIT" ]
null
null
null
srcs/lexer/sh_lexer.c
mmalekseev/21sh
9f1d07af205ff09c436947f24160668a78c11c03
[ "MIT" ]
null
null
null
srcs/lexer/sh_lexer.c
mmalekseev/21sh
9f1d07af205ff09c436947f24160668a78c11c03
[ "MIT" ]
null
null
null
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* sh_lexer.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: eboris <eboris@student.42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/09/03 17:13:46 by eboris #+# #+# */ /* Updated: 2020/11/01 19:10:43 by eboris ### ########.fr */ /* */ /* ************************************************************************** */ #include "sh_main.h" #include <signal.h> int sh_is_whitespace_or_tab(char c) { if (c == ' ' || c == '\t' || c == '\n') return (1); return (0); } int sh_find_end_of_token(int i, char *str) { while (str[i] != '\0' && str[i] != '\n' && !sh_is_whitespace_or_tab(str[i]) && !sh_is_operator(&str[i])) { if (str[i] == '\\') i++; else if (str[i] == '\'' && (i == 0 || str[i - 1] != '\\')) i = sh_find_closing_single_quotes(i, str); else if (str[i] == '"' && (i == 0 || str[i - 1] != '\\')) i = sh_find_closing_double_quotes(i, str); if (str[i] != '\0') i++; } return (i); } int sh_check_end_of_token_position(char *str, int *io_nbr_flag) { int i; i = 0; if (ft_isdigit(str[i]) == 1) { while (ft_isdigit(str[i]) == 1) i++; if (sh_is_it_io_redirect_operator(&str[i]) > 0) *io_nbr_flag = 1; else i = sh_find_end_of_token(i, str); } else if ((i = sh_is_operator(str)) > 0) return (i); else i = sh_find_end_of_token(i, str); return (i); } void sh_lexer_hub(t_main *main, t_token *token) { int i; int j; int io_nbr_flag; int fin; i = 0; j = 0; fin = main->heredoc ? main->heredoc->here_start - 1 : ft_strlen(main->ks); while (j < fin) { j += i; while (sh_is_whitespace_or_tab(main->ks[j])) j++; io_nbr_flag = 0; i = sh_check_end_of_token_position(&main->ks[j], &io_nbr_flag); token->next = sh_check_type_and_add_token(&main->ks[j], i, io_nbr_flag, main); token = token->next; } } /* ** TEMPORARY FUNC, delete it later :) */ void ft_print_test(t_token *first) { char* type[] = {"NONE", "COMPLETE_COMMAND", "LIST", "PIPELINE", "AND_OR", "COMMAND", "CMDNAME", "CMDSUFFIX", "SEPARATOR", "WORD", "NEWLINE", "IO_NUMBER", "LESS", "GREAT", "AND_IF", "OR_IF", "DSEMI", "DLESS", "DGREAT", "LESSAND", "GREATAND", "LESSGREAT", "DLESSDASH", "CLOBBER","LBRACE", "RBRACE", "BANG"}; int i = 1; t_envvar *t; while (first) { ft_printf("%2i. %s - %i: %s\n", i, first->content, first->type, type[first->type]); first = first->next; i++; } } /* ** ft_print_test(main->token); can use it before return in sh_lexer */ int sh_lexer(t_main *main) { t_token *first; first = sh_new_token(0, NULL, main); sh_lexer_hub(main, first); // if (main->prompt) // sh_remove_token_list(first); main->token = first->next; free(first); first = NULL; if (main->heredoc) sh_add_heredoc_content(main); sh_quote_remove(main, main->token); // ft_print_test(main->token); return (0); }
26.566929
85
0.466212
5542de2939195388e6bb741a52aff82794f59b48
181
h
C
IoT_BBQ_STM32/SSD1306/SSD1306_demo.h
gojimmypi/IoT_BBQ
0928f345fa53f3ebabc53c452f5f5a3e1c581e02
[ "MIT" ]
5
2016-07-10T14:49:45.000Z
2022-02-20T16:45:24.000Z
IoT_BBQ_STM32/SSD1306/SSD1306_demo.h
gojimmypi/IoT_BBQ
0928f345fa53f3ebabc53c452f5f5a3e1c581e02
[ "MIT" ]
null
null
null
IoT_BBQ_STM32/SSD1306/SSD1306_demo.h
gojimmypi/IoT_BBQ
0928f345fa53f3ebabc53c452f5f5a3e1c581e02
[ "MIT" ]
null
null
null
#pragma once #ifdef __cplusplus extern "C" { #endif // void ssd1306_TestAll(); void SSD1306_test(); void _Error_Handler(char* file, int line); #ifdef __cplusplus } #endif
13.923077
43
0.701657
71074e21f85f3d8c833c33868600cd4e5629bd17
698
h
C
longtaillib/longtail/include/lib/brotli/longtail_brotli.h
firingorder/golongtail
11c8689e75a3c449edce4b341ac3dc18f0f9e355
[ "MIT" ]
28
2019-12-26T07:51:04.000Z
2022-02-16T09:36:11.000Z
longtaillib/longtail/include/lib/brotli/longtail_brotli.h
firingorder/golongtail
11c8689e75a3c449edce4b341ac3dc18f0f9e355
[ "MIT" ]
26
2020-01-24T13:01:41.000Z
2022-02-11T12:26:11.000Z
longtaillib/longtail/include/lib/brotli/longtail_brotli.h
firingorder/golongtail
11c8689e75a3c449edce4b341ac3dc18f0f9e355
[ "MIT" ]
4
2020-01-27T08:57:07.000Z
2021-12-29T11:54:23.000Z
#pragma once #include "../../src/longtail.h" #include "../compressblockstore/longtail_compressblockstore.h" #ifdef __cplusplus extern "C" { #endif LONGTAIL_EXPORT extern struct Longtail_CompressionAPI* Longtail_CreateBrotliCompressionAPI(); LONGTAIL_EXPORT extern uint32_t Longtail_GetBrotliGenericMinQuality(); LONGTAIL_EXPORT extern uint32_t Longtail_GetBrotliGenericDefaultQuality(); LONGTAIL_EXPORT extern uint32_t Longtail_GetBrotliGenericMaxQuality(); LONGTAIL_EXPORT extern uint32_t Longtail_GetBrotliTextMinQuality(); LONGTAIL_EXPORT extern uint32_t Longtail_GetBrotliTextDefaultQuality(); LONGTAIL_EXPORT extern uint32_t Longtail_GetBrotliTextMaxQuality(); #ifdef __cplusplus } #endif
33.238095
93
0.858166
9fd0ee3ddc482302b445dc90c40cd836882a9c7f
839
h
C
src/commit.h
jaihyunp/vhe
e4ba6cb6ad752a76454eb2daba5969b46a8b08d1
[ "MIT" ]
null
null
null
src/commit.h
jaihyunp/vhe
e4ba6cb6ad752a76454eb2daba5969b46a8b08d1
[ "MIT" ]
null
null
null
src/commit.h
jaihyunp/vhe
e4ba6cb6ad752a76454eb2daba5969b46a8b08d1
[ "MIT" ]
null
null
null
#ifndef H_COMMIT #define H_COMMIT #include <time.h> #include <stdio.h> #include <stdlib.h> #include <gmp.h> #include "field.h" #include "parameters.h" void commit_keygen(mpz_t* pks, mpz_t* sks, const uint64 key_num); void commit_commit(mpz_t* commits, const mpz_t* input, const uint64 key_num, const uint64 input_row_num, const mpz_t* pks); void commit_open(mpz_t* output, const mpz_t* input, const mpz_t* evalpts, const mpz_t* commits, const uint64 key_num, const uint64 input_row_num, const mpz_t* sks); void commit_commit_binary(mpz_t* commits, const mpz_t* input, const uint64 key_num, const uint64 input_num, const mpz_t* pks); void commit_open_binary(mpz_t* output, const mpz_t* input, const mpz_t* evalpts, const mpz_t* commits, const uint64 key_num, const uint64 input_num, const mpz_t* sks); //void commit_test(); #endif
34.958333
168
0.76758
bf5572f4b6a67adb2d6094716f0f3feb4fefc509
133
h
C
src/calendar.h
DuncanCragg/OnexApp
9b682c54424876bb063f73545ce00bd4391e9d33
[ "MIT" ]
14
2018-03-23T22:45:42.000Z
2021-03-15T14:04:38.000Z
src/calendar.h
DuncanCragg/OnexApp
9b682c54424876bb063f73545ce00bd4391e9d33
[ "MIT" ]
null
null
null
src/calendar.h
DuncanCragg/OnexApp
9b682c54424876bb063f73545ce00bd4391e9d33
[ "MIT" ]
1
2020-08-05T17:08:59.000Z
2020-08-05T17:08:59.000Z
bool evaluate_event(object* o, void* d); void draw_calendar(char* path, int16_t width, int16_t height); void set_time_save_days();
22.166667
62
0.766917
bafd005c9ce213b8c8868af6f8e8ac13b82c140a
430
h
C
third_party/libusb/libusb.h
junmin-zhu/chromium-rivertrail
eb1a57aca71fe68d96e48af8998dcfbe45171ee1
[ "BSD-3-Clause" ]
5
2018-03-10T13:08:42.000Z
2021-07-26T15:02:11.000Z
third_party/libusb/libusb.h
sanyaade-mobiledev/chromium.src
d496dfeebb0f282468827654c2b3769b3378c087
[ "BSD-3-Clause" ]
1
2015-07-21T08:02:01.000Z
2015-07-21T08:02:01.000Z
third_party/libusb/libusb.h
jianglong0156/chromium.src
d496dfeebb0f282468827654c2b3769b3378c087
[ "BSD-3-Clause" ]
6
2016-11-14T10:13:35.000Z
2021-01-23T15:29:53.000Z
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef THIRD_PARTY_LIBUSB_LIBUSB_H_ #define THIRD_PARTY_LIBUSB_LIBUSB_H_ #if defined(USE_SYSTEM_LIBUSB) #include <libusb.h> #else // Relative to '.' which is in the include path. #include "src/libusb/libusb.h" #endif #endif // THIRD_PARTY_LIBUSB_LIBUSB_H_
26.875
73
0.772093
f97034e6e5d9059b01551b22dd1aa1c7f23e8688
692
c
C
How old are you.c
fakeid30/UVA-problems
2d31b8c48873d6813a341a3aa72d067174656d1c
[ "Unlicense" ]
1
2021-05-13T07:52:38.000Z
2021-05-13T07:52:38.000Z
How old are you.c
fakeid30/UVA-problems
2d31b8c48873d6813a341a3aa72d067174656d1c
[ "Unlicense" ]
null
null
null
How old are you.c
fakeid30/UVA-problems
2d31b8c48873d6813a341a3aa72d067174656d1c
[ "Unlicense" ]
2
2021-05-13T07:53:16.000Z
2021-05-13T07:54:36.000Z
#include<stdio.h> int main() { int t,i,d1,m1,y1,d2,m2,y2,age; scanf("%d",&t); for(i=1;i<=t;i++) { scanf("%d/%d/%d",&d1,&m1,&y1); scanf("%d/%d/%d",&d2,&m2,&y2); age=0; age=y1-y2; if(m2>m1) { age--; } else if(m2==m1) { if(d2>d1) { age--; } } if(age<0) { printf("Case #%d: Invalid birth date\n",i); } else if(age>130) { printf("Case #%d: Check birth date\n",i); } else { printf("Case #%d: %d\n",i,age); } } return 0; }
18.210526
55
0.323699
ba1064a0b81abb8124edc28440b13b8549449af4
208
h
C
UGCKit/Classes/Edit/Views/UGCKitVideoEffectColorPalette.h
fandongtongxue/UGCKit
90a388f523e237ac3efad4b9dd8e0b01e6065897
[ "MIT" ]
null
null
null
UGCKit/Classes/Edit/Views/UGCKitVideoEffectColorPalette.h
fandongtongxue/UGCKit
90a388f523e237ac3efad4b9dd8e0b01e6065897
[ "MIT" ]
null
null
null
UGCKit/Classes/Edit/Views/UGCKitVideoEffectColorPalette.h
fandongtongxue/UGCKit
90a388f523e237ac3efad4b9dd8e0b01e6065897
[ "MIT" ]
1
2021-03-14T03:22:16.000Z
2021-03-14T03:22:16.000Z
// Copyright (c) 2019 Tencent. All rights reserved. @import UIKit; /// @param index 第几个颜色,index相同,颜色相同 /// @return 色板中第index个颜色 extern UIColor *UGCKitVideoEffectColorPaletteColorAtIndex(NSUInteger index);
23.111111
76
0.778846
3bdbd96d9a0320f4c39a273cdddbb4cd1dfeed95
248,457
c
C
kernels/basis/basis_eval_tensor.c
ammarhakim/gkylzero
7a17fd4bec9cc546400a24d3987c0ee6e1865152
[ "MIT" ]
2
2021-04-09T21:38:06.000Z
2021-05-20T19:07:48.000Z
kernels/basis/basis_eval_tensor.c
ammarhakim/gkylzero
7a17fd4bec9cc546400a24d3987c0ee6e1865152
[ "MIT" ]
12
2021-06-06T04:03:36.000Z
2022-03-20T04:29:03.000Z
kernels/basis/basis_eval_tensor.c
ammarhakim/gkylzero
7a17fd4bec9cc546400a24d3987c0ee6e1865152
[ "MIT" ]
1
2021-06-02T16:14:50.000Z
2021-06-02T16:14:50.000Z
// Wed Oct 6 12:06:51 2021 #include <gkyl_basis_tensor_kernels.h> GKYL_CU_DH void eval_2d_tensor_p2(const double *z, double *b ) { const double z0 = z[0]; const double z1 = z[1]; b[0] = 5.0000000000000000e-01; b[1] = 8.6602540378443860e-01*z0; b[2] = 8.6602540378443860e-01*z1; b[3] = 1.5000000000000000e+00*z0*z1; b[4] = 1.6770509831248424e+00*(z0*z0)-5.5901699437494745e-01; b[5] = 1.6770509831248424e+00*(z1*z1)-5.5901699437494745e-01; b[6] = -9.6824583655185426e-01*z1+2.9047375096555625e+00*(z0*z0)*z1; b[7] = 2.9047375096555625e+00*z0*(z1*z1)+-9.6824583655185426e-01*z0; b[8] = -1.8750000000000000e+00*(z0*z0)+-1.8750000000000000e+00*(z1*z1)+5.6250000000000000e+00*(z0*z0)*(z1*z1)+6.2500000000000000e-01; } GKYL_CU_DH double eval_expand_2d_tensor_p2(const double *z, const double *f ) { const double z0 = z[0]; const double z1 = z[1]; return -5.5901699437494745e-01*f[4]+2.9047375096555625e+00*z0*f[7]*(z1*z1)+-5.5901699437494745e-01*f[5]+1.5000000000000000e+00*z0*z1*f[3]+1.6770509831248424e+00*f[5]*(z1*z1)+-1.8750000000000000e+00*(z0*z0)*f[8]+1.6770509831248424e+00*f[4]*(z0*z0)+-9.6824583655185426e-01*f[6]*z1+5.6250000000000000e+00*(z0*z0)*(z1*z1)*f[8]+6.2500000000000000e-01*f[8]+5.0000000000000000e-01*f[0]+-9.6824583655185426e-01*z0*f[7]+2.9047375096555625e+00*(z0*z0)*f[6]*z1+8.6602540378443860e-01*z1*f[2]+8.6602540378443860e-01*z0*f[1]+-1.8750000000000000e+00*(z1*z1)*f[8]; } GKYL_CU_DH double eval_grad_expand_2d_tensor_p2(int dir, const double *z, const double *f ) { const double z0 = z[0]; const double z1 = z[1]; if (dir == 0) return -3.7500000000000000e+00*z0*f[8]+2.9047375096555625e+00*f[7]*(z1*z1)+1.5000000000000000e+00*z1*f[3]+-9.6824583655185426e-01*f[7]+3.3541019662496847e+00*z0*f[4]+5.8094750193111251e+00*z0*f[6]*z1+1.1250000000000000e+01*z0*(z1*z1)*f[8]+8.6602540378443860e-01*f[1]; if (dir == 1) return -9.6824583655185426e-01*f[6]+3.3541019662496847e+00*z1*f[5]+1.1250000000000000e+01*(z0*z0)*z1*f[8]+1.5000000000000000e+00*z0*f[3]+8.6602540378443860e-01*f[2]+5.8094750193111251e+00*z0*f[7]*z1+2.9047375096555625e+00*(z0*z0)*f[6]+-3.7500000000000000e+00*z1*f[8]; } GKYL_CU_DH void eval_3d_tensor_p2(const double *z, double *b ) { const double z0 = z[0]; const double z1 = z[1]; const double z2 = z[2]; b[0] = 3.5355339059327379e-01; b[1] = 6.1237243569579447e-01*z0; b[2] = 6.1237243569579447e-01*z1; b[3] = 6.1237243569579447e-01*z2; b[4] = 1.0606601717798212e+00*z0*z1; b[5] = 1.0606601717798212e+00*z0*z2; b[6] = 1.0606601717798212e+00*z1*z2; b[7] = 1.1858541225631423e+00*(z0*z0)-3.9528470752104744e-01; b[8] = 1.1858541225631423e+00*(z1*z1)-3.9528470752104744e-01; b[9] = 1.1858541225631423e+00*(z2*z2)-3.9528470752104744e-01; b[10] = 1.8371173070873836e+00*z0*z1*z2; b[11] = -6.8465319688145765e-01*z1+2.0539595906443728e+00*(z0*z0)*z1; b[12] = 2.0539595906443728e+00*z0*(z1*z1)+-6.8465319688145765e-01*z0; b[13] = 2.0539595906443728e+00*(z0*z0)*z2+-6.8465319688145765e-01*z2; b[14] = -6.8465319688145765e-01*z2+2.0539595906443728e+00*(z1*z1)*z2; b[15] = -6.8465319688145765e-01*z0+2.0539595906443728e+00*z0*(z2*z2); b[16] = -6.8465319688145765e-01*z1+2.0539595906443728e+00*z1*(z2*z2); b[17] = -1.1858541225631423e+00*z1*z2+3.5575623676894268e+00*(z0*z0)*z1*z2; b[18] = 3.5575623676894268e+00*z0*(z1*z1)*z2+-1.1858541225631423e+00*z0*z2; b[19] = -1.1858541225631423e+00*z0*z1+3.5575623676894268e+00*z0*z1*(z2*z2); b[20] = -1.3258252147247767e+00*(z0*z0)+-1.3258252147247767e+00*(z1*z1)+3.9774756441743300e+00*(z0*z0)*(z1*z1)+4.4194173824159222e-01; b[21] = -1.3258252147247767e+00*(z2*z2)+3.9774756441743300e+00*(z0*z0)*(z2*z2)+-1.3258252147247767e+00*(z0*z0)+4.4194173824159222e-01; b[22] = -1.3258252147247767e+00*(z2*z2)+3.9774756441743300e+00*(z1*z1)*(z2*z2)+-1.3258252147247767e+00*(z1*z1)+4.4194173824159222e-01; b[23] = -2.2963966338592297e+00*(z0*z0)*z2+7.6546554461974314e-01*z2+6.8891899015776881e+00*(z0*z0)*(z1*z1)*z2+-2.2963966338592297e+00*(z1*z1)*z2; b[24] = 6.8891899015776881e+00*(z0*z0)*z1*(z2*z2)+7.6546554461974314e-01*z1+-2.2963966338592297e+00*z1*(z2*z2)+-2.2963966338592297e+00*(z0*z0)*z1; b[25] = 6.8891899015776881e+00*z0*(z1*z1)*(z2*z2)+-2.2963966338592297e+00*z0*(z1*z1)+7.6546554461974314e-01*z0+-2.2963966338592297e+00*z0*(z2*z2); b[26] = 1.4823176532039277e+00*(z2*z2)+-4.4469529596117834e+00*(z0*z0)*(z2*z2)+1.4823176532039277e+00*(z0*z0)+-4.4469529596117834e+00*(z1*z1)*(z2*z2)+1.4823176532039277e+00*(z1*z1)+1.3340858878835350e+01*(z0*z0)*(z1*z1)*(z2*z2)+-4.4469529596117834e+00*(z0*z0)*(z1*z1)-4.9410588440130926e-01; } GKYL_CU_DH double eval_expand_3d_tensor_p2(const double *z, const double *f ) { const double z0 = z[0]; const double z1 = z[1]; const double z2 = z[2]; return -3.9528470752104744e-01*f[9]+3.5575623676894268e+00*z0*z1*f[19]*(z2*z2)+-1.1858541225631423e+00*z0*z1*f[19]+1.0606601717798212e+00*z0*z2*f[5]+-1.3258252147247767e+00*(z1*z1)*f[22]+1.3340858878835350e+01*(z0*z0)*(z1*z1)*(z2*z2)*f[26]+-1.3258252147247767e+00*(z2*z2)*f[21]+-1.3258252147247767e+00*(z0*z0)*f[20]+-2.2963966338592297e+00*f[25]*z0*(z1*z1)+-6.8465319688145765e-01*f[13]*z2+-4.4469529596117834e+00*(z0*z0)*(z2*z2)*f[26]+7.6546554461974314e-01*f[24]*z1+2.0539595906443728e+00*z0*(z1*z1)*f[12]+4.4194173824159222e-01*f[20]+1.4823176532039277e+00*(z1*z1)*f[26]+-6.8465319688145765e-01*f[14]*z2+2.0539595906443728e+00*f[16]*z1*(z2*z2)+-6.8465319688145765e-01*f[11]*z1+2.0539595906443728e+00*f[11]*(z0*z0)*z1+-1.3258252147247767e+00*(z2*z2)*f[22]+1.1858541225631423e+00*(z1*z1)*f[8]+6.8891899015776881e+00*f[25]*z0*(z1*z1)*(z2*z2)+6.1237243569579447e-01*z0*f[1]+6.1237243569579447e-01*f[2]*z1+-4.4469529596117834e+00*(z0*z0)*(z1*z1)*f[26]+1.0606601717798212e+00*z0*z1*f[4]+2.0539595906443728e+00*(z0*z0)*f[13]*z2+-2.2963966338592297e+00*(z1*z1)*f[23]*z2+-2.2963966338592297e+00*f[24]*z1*(z2*z2)+3.5575623676894268e+00*(z0*z0)*z1*z2*f[17]+3.9774756441743300e+00*(z0*z0)*(z2*z2)*f[21]+-2.2963966338592297e+00*(z0*z0)*f[24]*z1+6.1237243569579447e-01*f[3]*z2+1.4823176532039277e+00*(z2*z2)*f[26]+3.5355339059327379e-01*f[0]+-3.9528470752104744e-01*f[8]+-6.8465319688145765e-01*z0*f[12]+-2.2963966338592297e+00*f[25]*z0*(z2*z2)+3.5575623676894268e+00*z0*(z1*z1)*f[18]*z2+3.9774756441743300e+00*(z1*z1)*(z2*z2)*f[22]+-1.3258252147247767e+00*f[20]*(z1*z1)+-1.3258252147247767e+00*(z0*z0)*f[21]+-4.4469529596117834e+00*(z1*z1)*(z2*z2)*f[26]+-6.8465319688145765e-01*f[16]*z1+1.8371173070873836e+00*z0*z1*f[10]*z2+1.1858541225631423e+00*(z0*z0)*f[7]+7.6546554461974314e-01*f[23]*z2+4.4194173824159222e-01*f[22]+3.9774756441743300e+00*(z0*z0)*f[20]*(z1*z1)+-4.9410588440130926e-01*f[26]+7.6546554461974314e-01*f[25]*z0+1.1858541225631423e+00*f[9]*(z2*z2)+-1.1858541225631423e+00*z1*z2*f[17]+6.8891899015776881e+00*(z0*z0)*f[24]*z1*(z2*z2)+6.8891899015776881e+00*(z0*z0)*(z1*z1)*f[23]*z2+-2.2963966338592297e+00*(z0*z0)*f[23]*z2+1.0606601717798212e+00*z1*z2*f[6]+-6.8465319688145765e-01*z0*f[15]+-1.1858541225631423e+00*z0*f[18]*z2+-3.9528470752104744e-01*f[7]+1.4823176532039277e+00*(z0*z0)*f[26]+2.0539595906443728e+00*z0*f[15]*(z2*z2)+2.0539595906443728e+00*(z1*z1)*f[14]*z2+4.4194173824159222e-01*f[21]; } GKYL_CU_DH double eval_grad_expand_3d_tensor_p2(int dir, const double *z, const double *f ) { const double z0 = z[0]; const double z1 = z[1]; const double z2 = z[2]; if (dir == 0) return -2.2963966338592297e+00*(z2*z2)*f[25]+-2.6516504294495533e+00*z0*f[20]+1.8371173070873836e+00*z1*f[10]*z2+4.1079191812887457e+00*z0*z1*f[11]+3.5575623676894268e+00*f[18]*(z1*z1)*z2+7.1151247353788536e+00*f[17]*z0*z1*z2+-8.8939059192235668e+00*z0*f[26]*(z1*z1)+4.1079191812887457e+00*z0*z2*f[13]+7.9549512883486599e+00*z0*f[21]*(z2*z2)+1.3778379803155376e+01*z0*z1*f[24]*(z2*z2)+-2.2963966338592297e+00*(z1*z1)*f[25]+1.0606601717798212e+00*f[5]*z2+2.0539595906443728e+00*(z2*z2)*f[15]+-1.1858541225631423e+00*z1*f[19]+2.0539595906443728e+00*(z1*z1)*f[12]+2.6681717757670700e+01*z0*f[26]*(z1*z1)*(z2*z2)+-6.8465319688145765e-01*f[12]+-8.8939059192235668e+00*z0*f[26]*(z2*z2)+6.1237243569579447e-01*f[1]+-2.6516504294495533e+00*z0*f[21]+1.0606601717798212e+00*f[4]*z1+1.3778379803155376e+01*z0*f[23]*(z1*z1)*z2+-4.5927932677184593e+00*z0*f[23]*z2+2.3717082451262845e+00*f[7]*z0+7.9549512883486599e+00*z0*(z1*z1)*f[20]+-4.5927932677184593e+00*z0*z1*f[24]+3.5575623676894268e+00*z1*f[19]*(z2*z2)+6.8891899015776881e+00*(z1*z1)*(z2*z2)*f[25]+-6.8465319688145765e-01*f[15]+2.9646353064078554e+00*z0*f[26]+7.6546554461974314e-01*f[25]+-1.1858541225631423e+00*f[18]*z2; if (dir == 1) return -2.2963966338592297e+00*(z0*z0)*f[24]+2.6681717757670700e+01*(z0*z0)*f[26]*z1*(z2*z2)+4.1079191812887457e+00*z0*z1*f[12]+7.9549512883486599e+00*f[22]*z1*(z2*z2)+6.8891899015776881e+00*(z0*z0)*f[24]*(z2*z2)+3.5575623676894268e+00*z0*f[19]*(z2*z2)+1.3778379803155376e+01*z0*z1*(z2*z2)*f[25]+-4.5927932677184593e+00*z0*z1*f[25]+2.3717082451262845e+00*z1*f[8]+2.0539595906443728e+00*(z2*z2)*f[16]+-2.2963966338592297e+00*f[24]*(z2*z2)+-4.5927932677184593e+00*f[23]*z1*z2+4.1079191812887457e+00*f[14]*z1*z2+-1.1858541225631423e+00*z0*f[19]+-2.6516504294495533e+00*f[22]*z1+1.0606601717798212e+00*f[6]*z2+7.9549512883486599e+00*(z0*z0)*z1*f[20]+1.8371173070873836e+00*z0*f[10]*z2+-8.8939059192235668e+00*(z0*z0)*f[26]*z1+7.6546554461974314e-01*f[24]+2.0539595906443728e+00*(z0*z0)*f[11]+-8.8939059192235668e+00*f[26]*z1*(z2*z2)+2.9646353064078554e+00*f[26]*z1+-6.8465319688145765e-01*f[16]+-2.6516504294495533e+00*z1*f[20]+7.1151247353788536e+00*z0*f[18]*z1*z2+1.3778379803155376e+01*(z0*z0)*f[23]*z1*z2+1.0606601717798212e+00*z0*f[4]+3.5575623676894268e+00*f[17]*(z0*z0)*z2+-1.1858541225631423e+00*f[17]*z2+-6.8465319688145765e-01*f[11]+6.1237243569579447e-01*f[2]; if (dir == 2) return -4.5927932677184593e+00*z1*f[24]*z2+-1.1858541225631423e+00*z0*f[18]+1.3778379803155376e+01*z0*(z1*z1)*z2*f[25]+-2.6516504294495533e+00*f[22]*z2+-8.8939059192235668e+00*f[26]*(z1*z1)*z2+1.0606601717798212e+00*f[6]*z1+1.8371173070873836e+00*z0*z1*f[10]+4.1079191812887457e+00*z0*z2*f[15]+-8.8939059192235668e+00*(z0*z0)*f[26]*z2+3.5575623676894268e+00*f[17]*(z0*z0)*z1+-6.8465319688145765e-01*f[14]+-1.1858541225631423e+00*f[17]*z1+2.0539595906443728e+00*f[14]*(z1*z1)+7.6546554461974314e-01*f[23]+2.9646353064078554e+00*f[26]*z2+-4.5927932677184593e+00*z0*z2*f[25]+7.9549512883486599e+00*(z0*z0)*f[21]*z2+2.6681717757670700e+01*(z0*z0)*f[26]*(z1*z1)*z2+-2.2963966338592297e+00*(z0*z0)*f[23]+4.1079191812887457e+00*z1*z2*f[16]+1.3778379803155376e+01*(z0*z0)*z1*f[24]*z2+6.8891899015776881e+00*(z0*z0)*f[23]*(z1*z1)+7.9549512883486599e+00*f[22]*(z1*z1)*z2+3.5575623676894268e+00*z0*f[18]*(z1*z1)+-6.8465319688145765e-01*f[13]+1.0606601717798212e+00*z0*f[5]+2.0539595906443728e+00*(z0*z0)*f[13]+-2.6516504294495533e+00*f[21]*z2+6.1237243569579447e-01*f[3]+-2.2963966338592297e+00*f[23]*(z1*z1)+7.1151247353788536e+00*z0*z1*f[19]*z2+2.3717082451262845e+00*z2*f[9]; } GKYL_CU_DH void eval_4d_tensor_p2(const double *z, double *b ) { const double z0 = z[0]; const double z1 = z[1]; const double z2 = z[2]; const double z3 = z[3]; b[0] = 2.5000000000000000e-01; b[1] = 4.3301270189221930e-01*z0; b[2] = 4.3301270189221930e-01*z1; b[3] = 4.3301270189221930e-01*z2; b[4] = 4.3301270189221930e-01*z3; b[5] = 7.5000000000000000e-01*z0*z1; b[6] = 7.5000000000000000e-01*z0*z2; b[7] = 7.5000000000000000e-01*z1*z2; b[8] = 7.5000000000000000e-01*z3*z0; b[9] = 7.5000000000000000e-01*z3*z1; b[10] = 7.5000000000000000e-01*z3*z2; b[11] = 8.3852549156242118e-01*(z0*z0)-2.7950849718747373e-01; b[12] = 8.3852549156242118e-01*(z1*z1)-2.7950849718747373e-01; b[13] = 8.3852549156242118e-01*(z2*z2)-2.7950849718747373e-01; b[14] = 8.3852549156242118e-01*(z3*z3)-2.7950849718747373e-01; b[15] = 1.2990381056766580e+00*z0*z1*z2; b[16] = 1.2990381056766580e+00*z3*z0*z1; b[17] = 1.2990381056766580e+00*z3*z0*z2; b[18] = 1.2990381056766580e+00*z3*z1*z2; b[19] = -4.8412291827592713e-01*z1+1.4523687548277813e+00*(z0*z0)*z1; b[20] = 1.4523687548277813e+00*z0*(z1*z1)+-4.8412291827592713e-01*z0; b[21] = 1.4523687548277813e+00*(z0*z0)*z2+-4.8412291827592713e-01*z2; b[22] = -4.8412291827592713e-01*z2+1.4523687548277813e+00*(z1*z1)*z2; b[23] = -4.8412291827592713e-01*z0+1.4523687548277813e+00*z0*(z2*z2); b[24] = -4.8412291827592713e-01*z1+1.4523687548277813e+00*z1*(z2*z2); b[25] = -4.8412291827592713e-01*z3+1.4523687548277813e+00*z3*(z0*z0); b[26] = -4.8412291827592713e-01*z3+1.4523687548277813e+00*z3*(z1*z1); b[27] = -4.8412291827592713e-01*z3+1.4523687548277813e+00*z3*(z2*z2); b[28] = 1.4523687548277813e+00*(z3*z3)*z0+-4.8412291827592713e-01*z0; b[29] = -4.8412291827592713e-01*z1+1.4523687548277813e+00*(z3*z3)*z1; b[30] = 1.4523687548277813e+00*(z3*z3)*z2+-4.8412291827592713e-01*z2; b[31] = 2.2500000000000000e+00*z3*z0*z1*z2; b[32] = -8.3852549156242118e-01*z1*z2+2.5155764746872635e+00*(z0*z0)*z1*z2; b[33] = 2.5155764746872635e+00*z0*(z1*z1)*z2+-8.3852549156242118e-01*z0*z2; b[34] = -8.3852549156242118e-01*z0*z1+2.5155764746872635e+00*z0*z1*(z2*z2); b[35] = -8.3852549156242118e-01*z3*z1+2.5155764746872635e+00*z3*(z0*z0)*z1; b[36] = 2.5155764746872635e+00*z3*z0*(z1*z1)+-8.3852549156242118e-01*z3*z0; b[37] = 2.5155764746872635e+00*z3*(z0*z0)*z2+-8.3852549156242118e-01*z3*z2; b[38] = 2.5155764746872635e+00*z3*(z1*z1)*z2+-8.3852549156242118e-01*z3*z2; b[39] = 2.5155764746872635e+00*z3*z0*(z2*z2)+-8.3852549156242118e-01*z3*z0; b[40] = 2.5155764746872635e+00*z3*z1*(z2*z2)+-8.3852549156242118e-01*z3*z1; b[41] = -8.3852549156242118e-01*z0*z1+2.5155764746872635e+00*(z3*z3)*z0*z1; b[42] = 2.5155764746872635e+00*(z3*z3)*z0*z2+-8.3852549156242118e-01*z0*z2; b[43] = -8.3852549156242118e-01*z1*z2+2.5155764746872635e+00*(z3*z3)*z1*z2; b[44] = -9.3750000000000000e-01*(z0*z0)+-9.3750000000000000e-01*(z1*z1)+2.8125000000000000e+00*(z0*z0)*(z1*z1)+3.1250000000000000e-01; b[45] = -9.3750000000000000e-01*(z2*z2)+2.8125000000000000e+00*(z0*z0)*(z2*z2)+-9.3750000000000000e-01*(z0*z0)+3.1250000000000000e-01; b[46] = -9.3750000000000000e-01*(z2*z2)+2.8125000000000000e+00*(z1*z1)*(z2*z2)+-9.3750000000000000e-01*(z1*z1)+3.1250000000000000e-01; b[47] = -9.3750000000000000e-01*(z0*z0)+-9.3750000000000000e-01*(z3*z3)+2.8125000000000000e+00*(z3*z3)*(z0*z0)+3.1250000000000000e-01; b[48] = -9.3750000000000000e-01*(z3*z3)+2.8125000000000000e+00*(z3*z3)*(z1*z1)+-9.3750000000000000e-01*(z1*z1)+3.1250000000000000e-01; b[49] = -9.3750000000000000e-01*(z2*z2)+2.8125000000000000e+00*(z3*z3)*(z2*z2)+-9.3750000000000000e-01*(z3*z3)+3.1250000000000000e-01; b[50] = -1.4523687548277813e+00*z3*z1*z2+4.3571062644833436e+00*z3*(z0*z0)*z1*z2; b[51] = 4.3571062644833436e+00*z3*z0*(z1*z1)*z2+-1.4523687548277813e+00*z3*z0*z2; b[52] = 4.3571062644833436e+00*z3*z0*z1*(z2*z2)+-1.4523687548277813e+00*z3*z0*z1; b[53] = -1.4523687548277813e+00*z0*z1*z2+4.3571062644833436e+00*(z3*z3)*z0*z1*z2; b[54] = -1.6237976320958225e+00*(z0*z0)*z2+5.4126587736527421e-01*z2+4.8713928962874675e+00*(z0*z0)*(z1*z1)*z2+-1.6237976320958225e+00*(z1*z1)*z2; b[55] = 4.8713928962874675e+00*(z0*z0)*z1*(z2*z2)+5.4126587736527421e-01*z1+-1.6237976320958225e+00*z1*(z2*z2)+-1.6237976320958225e+00*(z0*z0)*z1; b[56] = 4.8713928962874675e+00*z0*(z1*z1)*(z2*z2)+-1.6237976320958225e+00*z0*(z1*z1)+5.4126587736527421e-01*z0+-1.6237976320958225e+00*z0*(z2*z2); b[57] = 5.4126587736527421e-01*z3+-1.6237976320958225e+00*z3*(z1*z1)+4.8713928962874675e+00*z3*(z0*z0)*(z1*z1)+-1.6237976320958225e+00*z3*(z0*z0); b[58] = 5.4126587736527421e-01*z3+4.8713928962874675e+00*z3*(z0*z0)*(z2*z2)+-1.6237976320958225e+00*z3*(z0*z0)+-1.6237976320958225e+00*z3*(z2*z2); b[59] = 5.4126587736527421e-01*z3+-1.6237976320958225e+00*z3*(z1*z1)+-1.6237976320958225e+00*z3*(z2*z2)+4.8713928962874675e+00*z3*(z1*z1)*(z2*z2); b[60] = 4.8713928962874675e+00*(z3*z3)*(z0*z0)*z1+5.4126587736527421e-01*z1+-1.6237976320958225e+00*(z0*z0)*z1+-1.6237976320958225e+00*(z3*z3)*z1; b[61] = -1.6237976320958225e+00*(z3*z3)*z0+-1.6237976320958225e+00*z0*(z1*z1)+5.4126587736527421e-01*z0+4.8713928962874675e+00*(z3*z3)*z0*(z1*z1); b[62] = -1.6237976320958225e+00*(z0*z0)*z2+-1.6237976320958225e+00*(z3*z3)*z2+4.8713928962874675e+00*(z3*z3)*(z0*z0)*z2+5.4126587736527421e-01*z2; b[63] = 4.8713928962874675e+00*(z3*z3)*(z1*z1)*z2+-1.6237976320958225e+00*(z3*z3)*z2+5.4126587736527421e-01*z2+-1.6237976320958225e+00*(z1*z1)*z2; b[64] = 4.8713928962874675e+00*(z3*z3)*z0*(z2*z2)+-1.6237976320958225e+00*(z3*z3)*z0+5.4126587736527421e-01*z0+-1.6237976320958225e+00*z0*(z2*z2); b[65] = 5.4126587736527421e-01*z1+-1.6237976320958225e+00*z1*(z2*z2)+4.8713928962874675e+00*(z3*z3)*z1*(z2*z2)+-1.6237976320958225e+00*(z3*z3)*z1; b[66] = 8.4375000000000000e+00*z3*(z0*z0)*(z1*z1)*z2+-2.8125000000000000e+00*z3*(z0*z0)*z2+-2.8125000000000000e+00*z3*(z1*z1)*z2+9.3750000000000000e-01*z3*z2; b[67] = -2.8125000000000000e+00*z3*z1*(z2*z2)+9.3750000000000000e-01*z3*z1+8.4375000000000000e+00*z3*(z0*z0)*z1*(z2*z2)+-2.8125000000000000e+00*z3*(z0*z0)*z1; b[68] = -2.8125000000000000e+00*z3*z0*(z1*z1)+-2.8125000000000000e+00*z3*z0*(z2*z2)+8.4375000000000000e+00*z3*z0*(z1*z1)*(z2*z2)+9.3750000000000000e-01*z3*z0; b[69] = 9.3750000000000000e-01*z1*z2+8.4375000000000000e+00*(z3*z3)*(z0*z0)*z1*z2+-2.8125000000000000e+00*(z0*z0)*z1*z2+-2.8125000000000000e+00*(z3*z3)*z1*z2; b[70] = 8.4375000000000000e+00*(z3*z3)*z0*(z1*z1)*z2+-2.8125000000000000e+00*z0*(z1*z1)*z2+-2.8125000000000000e+00*(z3*z3)*z0*z2+9.3750000000000000e-01*z0*z2; b[71] = 9.3750000000000000e-01*z0*z1+8.4375000000000000e+00*(z3*z3)*z0*z1*(z2*z2)+-2.8125000000000000e+00*(z3*z3)*z0*z1+-2.8125000000000000e+00*z0*z1*(z2*z2); b[72] = 1.0481568644530264e+00*(z2*z2)+-3.1444705933590793e+00*(z0*z0)*(z2*z2)+1.0481568644530264e+00*(z0*z0)+-3.1444705933590793e+00*(z1*z1)*(z2*z2)+1.0481568644530264e+00*(z1*z1)+9.4334117800772379e+00*(z0*z0)*(z1*z1)*(z2*z2)+-3.1444705933590793e+00*(z0*z0)*(z1*z1)-3.4938562148434216e-01; b[73] = 9.4334117800772379e+00*(z3*z3)*(z0*z0)*(z1*z1)+1.0481568644530264e+00*(z0*z0)+1.0481568644530264e+00*(z3*z3)+-3.1444705933590793e+00*(z3*z3)*(z0*z0)+-3.1444705933590793e+00*(z3*z3)*(z1*z1)+1.0481568644530264e+00*(z1*z1)+-3.1444705933590793e+00*(z0*z0)*(z1*z1)-3.4938562148434216e-01; b[74] = 1.0481568644530264e+00*(z2*z2)+-3.1444705933590793e+00*(z3*z3)*(z2*z2)+-3.1444705933590793e+00*(z0*z0)*(z2*z2)+1.0481568644530264e+00*(z0*z0)+1.0481568644530264e+00*(z3*z3)+-3.1444705933590793e+00*(z3*z3)*(z0*z0)+9.4334117800772379e+00*(z3*z3)*(z0*z0)*(z2*z2)-3.4938562148434216e-01; b[75] = 1.0481568644530264e+00*(z2*z2)+-3.1444705933590793e+00*(z3*z3)*(z2*z2)+9.4334117800772379e+00*(z3*z3)*(z1*z1)*(z2*z2)+1.0481568644530264e+00*(z3*z3)+-3.1444705933590793e+00*(z3*z3)*(z1*z1)+-3.1444705933590793e+00*(z1*z1)*(z2*z2)+1.0481568644530264e+00*(z1*z1)-3.4938562148434216e-01; b[76] = -6.0515364784490888e-01*z3+-5.4463828306041799e+00*z3*(z0*z0)*(z2*z2)+1.6339148491812541e+01*z3*(z0*z0)*(z1*z1)*(z2*z2)+1.8154609435347266e+00*z3*(z1*z1)+-5.4463828306041799e+00*z3*(z0*z0)*(z1*z1)+1.8154609435347266e+00*z3*(z0*z0)+1.8154609435347266e+00*z3*(z2*z2)+-5.4463828306041799e+00*z3*(z1*z1)*(z2*z2); b[77] = 1.8154609435347266e+00*(z0*z0)*z2+-5.4463828306041799e+00*(z3*z3)*(z1*z1)*z2+1.8154609435347266e+00*(z3*z3)*z2+-5.4463828306041799e+00*(z3*z3)*(z0*z0)*z2+-6.0515364784490888e-01*z2+-5.4463828306041799e+00*(z0*z0)*(z1*z1)*z2+1.6339148491812541e+01*(z3*z3)*(z0*z0)*(z1*z1)*z2+1.8154609435347266e+00*(z1*z1)*z2; b[78] = -5.4463828306041799e+00*(z0*z0)*z1*(z2*z2)+-5.4463828306041799e+00*(z3*z3)*(z0*z0)*z1+1.6339148491812541e+01*(z3*z3)*(z0*z0)*z1*(z2*z2)+-6.0515364784490888e-01*z1+1.8154609435347266e+00*z1*(z2*z2)+1.8154609435347266e+00*(z0*z0)*z1+-5.4463828306041799e+00*(z3*z3)*z1*(z2*z2)+1.8154609435347266e+00*(z3*z3)*z1; b[79] = -5.4463828306041799e+00*z0*(z1*z1)*(z2*z2)+-5.4463828306041799e+00*(z3*z3)*z0*(z2*z2)+1.8154609435347266e+00*(z3*z3)*z0+1.8154609435347266e+00*z0*(z1*z1)+-6.0515364784490888e-01*z0+1.6339148491812541e+01*(z3*z3)*z0*(z1*z1)*(z2*z2)+-5.4463828306041799e+00*(z3*z3)*z0*(z1*z1)+1.8154609435347266e+00*z0*(z2*z2); b[80] = -1.1718750000000000e+00*(z2*z2)+3.5156250000000000e+00*(z3*z3)*(z2*z2)+-1.0546875000000000e+01*(z3*z3)*(z1*z1)*(z2*z2)+-1.0546875000000000e+01*(z3*z3)*(z0*z0)*(z1*z1)+3.5156250000000000e+00*(z0*z0)*(z2*z2)+-1.1718750000000000e+00*(z0*z0)+-1.1718750000000000e+00*(z3*z3)+3.5156250000000000e+00*(z3*z3)*(z0*z0)+3.5156250000000000e+00*(z3*z3)*(z1*z1)+3.5156250000000000e+00*(z1*z1)*(z2*z2)+-1.1718750000000000e+00*(z1*z1)+3.1640625000000000e+01*(z3*z3)*(z0*z0)*(z1*z1)*(z2*z2)+-1.0546875000000000e+01*(z0*z0)*(z1*z1)*(z2*z2)+-1.0546875000000000e+01*(z3*z3)*(z0*z0)*(z2*z2)+3.5156250000000000e+00*(z0*z0)*(z1*z1)+3.9062500000000000e-01; } GKYL_CU_DH double eval_expand_4d_tensor_p2(const double *z, const double *f ) { const double z0 = z[0]; const double z1 = z[1]; const double z2 = z[2]; const double z3 = z[3]; return 4.8713928962874675e+00*(z3*z3)*(z0*z0)*f[62]*z2+1.8154609435347266e+00*z3*f[76]*(z2*z2)+-1.6237976320958225e+00*(z3*z3)*f[63]*z2+-5.4463828306041799e+00*z0*f[79]*(z1*z1)*(z2*z2)+-3.1444705933590793e+00*(z0*z0)*(z1*z1)*f[72]+-1.6237976320958225e+00*(z0*z0)*f[55]*z1+-8.3852549156242118e-01*z3*f[37]*z2+1.6339148491812541e+01*(z3*z3)*(z0*z0)*z1*(z2*z2)*f[78]+-4.8412291827592713e-01*z3*f[27]+3.1250000000000000e-01*f[48]+-1.0546875000000000e+01*(z0*z0)*(z1*z1)*f[80]*(z2*z2)+-8.3852549156242118e-01*z3*f[40]*z1+-4.8412291827592713e-01*z1*f[24]+-9.3750000000000000e-01*(z1*z1)*f[46]+-4.8412291827592713e-01*f[30]*z2+4.8713928962874675e+00*z3*(z0*z0)*(z1*z1)*f[57]+-1.6237976320958225e+00*z3*(z0*z0)*f[57]+-1.6237976320958225e+00*z3*(z2*z2)*f[59]+1.8154609435347266e+00*(z0*z0)*f[77]*z2+3.5156250000000000e+00*(z0*z0)*(z1*z1)*f[80]+1.4523687548277813e+00*f[21]*(z0*z0)*z2+1.4523687548277813e+00*(z3*z3)*z1*f[29]+1.0481568644530264e+00*(z2*z2)*f[72]+-9.3750000000000000e-01*(z0*z0)*f[45]+5.4126587736527421e-01*z1*f[65]+4.8713928962874675e+00*(z0*z0)*(z1*z1)*f[54]*z2+-3.1444705933590793e+00*(z3*z3)*f[73]*(z1*z1)+4.8713928962874675e+00*f[61]*(z3*z3)*z0*(z1*z1)+-1.6237976320958225e+00*z1*f[65]*(z2*z2)+-2.8125000000000000e+00*f[66]*z3*(z1*z1)*z2+2.8125000000000000e+00*(z0*z0)*f[45]*(z2*z2)+5.4126587736527421e-01*f[62]*z2+-2.8125000000000000e+00*z3*z0*f[68]*(z2*z2)+-4.8412291827592713e-01*z0*f[20]+-5.4463828306041799e+00*(z0*z0)*(z1*z1)*f[77]*z2+2.5155764746872635e+00*z3*(z0*z0)*z1*f[35]+9.3750000000000000e-01*z0*f[70]*z2+4.8713928962874675e+00*(z0*z0)*f[55]*z1*(z2*z2)+3.1250000000000000e-01*f[45]+-1.6237976320958225e+00*(z0*z0)*f[54]*z2+1.0481568644530264e+00*(z1*z1)*f[75]+-9.3750000000000000e-01*(z3*z3)*f[48]+7.5000000000000000e-01*z3*f[10]*z2+-8.3852549156242118e-01*f[32]*z1*z2+3.5156250000000000e+00*(z3*z3)*(z0*z0)*f[80]+1.4523687548277813e+00*f[22]*(z1*z1)*z2+-1.6237976320958225e+00*(z3*z3)*f[60]*z1+1.2990381056766580e+00*f[17]*z3*z0*z2+2.2500000000000000e+00*z3*z0*f[31]*z1*z2+1.0481568644530264e+00*(z3*z3)*f[74]+-8.3852549156242118e-01*z3*z0*f[39]+-8.3852549156242118e-01*z0*f[42]*z2+1.8154609435347266e+00*(z3*z3)*z0*f[79]+-3.4938562148434216e-01*f[73]+1.8154609435347266e+00*z0*f[79]*(z2*z2)+-5.4463828306041799e+00*(z3*z3)*z1*(z2*z2)*f[78]+-4.8412291827592713e-01*z3*f[25]+2.5155764746872635e+00*z3*f[40]*z1*(z2*z2)+-1.4523687548277813e+00*f[53]*z0*z1*z2+1.4523687548277813e+00*z3*f[27]*(z2*z2)+2.8125000000000000e+00*(z3*z3)*(z0*z0)*f[47]+7.5000000000000000e-01*z0*f[5]*z1+1.0481568644530264e+00*(z0*z0)*f[73]+9.3750000000000000e-01*z3*f[67]*z1+1.4523687548277813e+00*(z0*z0)*z1*f[19]+3.5156250000000000e+00*(z0*z0)*f[80]*(z2*z2)+4.3571062644833436e+00*z3*(z0*z0)*f[50]*z1*z2+-3.1444705933590793e+00*(z0*z0)*(z2*z2)*f[72]+-5.4463828306041799e+00*(z3*z3)*z0*f[79]*(z2*z2)+2.5155764746872635e+00*z3*z0*f[39]*(z2*z2)+1.0481568644530264e+00*(z0*z0)*f[74]+2.5155764746872635e+00*(z3*z3)*z0*f[42]*z2+-3.1444705933590793e+00*(z3*z3)*f[74]*(z2*z2)+-1.1718750000000000e+00*(z1*z1)*f[80]+-6.0515364784490888e-01*f[77]*z2+5.4126587736527421e-01*z0*f[56]+4.8713928962874675e+00*z3*(z1*z1)*(z2*z2)*f[59]+-9.3750000000000000e-01*f[45]*(z2*z2)+-1.0546875000000000e+01*(z3*z3)*(z0*z0)*f[80]*(z2*z2)+-1.6237976320958225e+00*f[61]*(z3*z3)*z0+1.0481568644530264e+00*(z3*z3)*f[73]+5.4126587736527421e-01*z0*f[64]+7.5000000000000000e-01*f[6]*z0*z2+1.8154609435347266e+00*z1*(z2*z2)*f[78]+-1.6237976320958225e+00*f[61]*z0*(z1*z1)+-2.8125000000000000e+00*(z3*z3)*z0*f[70]*z2+1.0481568644530264e+00*(z1*z1)*f[72]+5.4126587736527421e-01*f[55]*z1+-2.8125000000000000e+00*z3*f[67]*z1*(z2*z2)+8.4375000000000000e+00*(z3*z3)*z0*z1*f[71]*(z2*z2)+-9.3750000000000000e-01*(z0*z0)*f[44]+-9.3750000000000000e-01*(z2*z2)*f[46]+-1.6237976320958225e+00*z3*(z1*z1)*f[59]+1.8154609435347266e+00*(z3*z3)*z1*f[78]+-2.7950849718747373e-01*f[14]+-9.3750000000000000e-01*f[48]*(z1*z1)+8.4375000000000000e+00*f[66]*z3*(z0*z0)*(z1*z1)*z2+-4.8412291827592713e-01*z0*f[23]+-1.6237976320958225e+00*z3*f[58]*(z2*z2)+8.4375000000000000e+00*(z3*z3)*z0*f[70]*(z1*z1)*z2+-1.6237976320958225e+00*z3*(z0*z0)*f[58]+1.4523687548277813e+00*(z3*z3)*z0*f[28]+-5.4463828306041799e+00*(z3*z3)*(z0*z0)*f[77]*z2+-4.8412291827592713e-01*f[22]*z2+-1.0546875000000000e+01*(z3*z3)*(z0*z0)*(z1*z1)*f[80]+1.0481568644530264e+00*(z2*z2)*f[75]+-1.1718750000000000e+00*f[80]*(z2*z2)+-4.8412291827592713e-01*z1*f[19]+-2.7950849718747373e-01*f[12]+3.1250000000000000e-01*f[47]+-5.4463828306041799e+00*z3*f[76]*(z1*z1)*(z2*z2)+4.8713928962874675e+00*(z3*z3)*z1*f[65]*(z2*z2)+-9.3750000000000000e-01*f[49]*(z2*z2)+3.9062500000000000e-01*f[80]+-5.4463828306041799e+00*z3*(z0*z0)*f[76]*(z1*z1)+1.8154609435347266e+00*z3*(z0*z0)*f[76]+9.4334117800772379e+00*(z0*z0)*(z1*z1)*(z2*z2)*f[72]+-1.6237976320958225e+00*(z0*z0)*f[62]*z2+-2.8125000000000000e+00*(z0*z0)*z1*z2*f[69]+8.4375000000000000e+00*z3*z0*(z1*z1)*f[68]*(z2*z2)+7.5000000000000000e-01*f[7]*z1*z2+8.3852549156242118e-01*(z2*z2)*f[13]+5.4126587736527421e-01*f[54]*z2+-9.3750000000000000e-01*(z3*z3)*f[49]+5.4126587736527421e-01*z3*f[59]+-9.3750000000000000e-01*(z0*z0)*f[47]+-4.8412291827592713e-01*z3*f[26]+9.4334117800772379e+00*(z3*z3)*(z0*z0)*f[73]*(z1*z1)+3.1250000000000000e-01*f[44]+4.3301270189221930e-01*z0*f[1]+9.3750000000000000e-01*z3*z0*f[68]+-3.1444705933590793e+00*(z3*z3)*(z0*z0)*f[73]+-3.4938562148434216e-01*f[74]+-1.1718750000000000e+00*(z0*z0)*f[80]+-1.6237976320958225e+00*f[63]*(z1*z1)*z2+2.5155764746872635e+00*z0*f[34]*z1*(z2*z2)+1.2990381056766580e+00*z3*f[18]*z1*z2+1.8154609435347266e+00*(z1*z1)*f[77]*z2+8.3852549156242118e-01*(z3*z3)*f[14]+-1.6237976320958225e+00*f[55]*z1*(z2*z2)+-6.0515364784490888e-01*z0*f[79]+2.5155764746872635e+00*(z3*z3)*z1*z2*f[43]+1.4523687548277813e+00*z3*f[26]*(z1*z1)+5.4126587736527421e-01*f[60]*z1+2.5000000000000000e-01*f[0]+-4.8412291827592713e-01*f[21]*z2+1.4523687548277813e+00*z0*(z1*z1)*f[20]+1.8154609435347266e+00*z0*f[79]*(z1*z1)+2.5155764746872635e+00*z0*(z1*z1)*f[33]*z2+-3.1444705933590793e+00*(z3*z3)*(z1*z1)*f[75]+4.8713928962874675e+00*z3*(z0*z0)*f[58]*(z2*z2)+8.3852549156242118e-01*(z0*z0)*f[11]+-6.0515364784490888e-01*z3*f[76]+1.0481568644530264e+00*(z3*z3)*f[75]+2.8125000000000000e+00*(z1*z1)*(z2*z2)*f[46]+-1.6237976320958225e+00*(z3*z3)*f[62]*z2+-9.3750000000000000e-01*(z1*z1)*f[44]+1.4523687548277813e+00*z0*f[23]*(z2*z2)+2.5155764746872635e+00*(z0*z0)*f[32]*z1*z2+8.4375000000000000e+00*(z3*z3)*(z0*z0)*z1*z2*f[69]+-8.3852549156242118e-01*z0*z1*f[41]+1.0481568644530264e+00*(z0*z0)*f[72]+1.0481568644530264e+00*f[73]*(z1*z1)+-1.6237976320958225e+00*(z3*z3)*z1*f[65]+1.8154609435347266e+00*z3*f[76]*(z1*z1)+3.5156250000000000e+00*(z1*z1)*f[80]*(z2*z2)+-3.1444705933590793e+00*(z1*z1)*(z2*z2)*f[75]+-3.1444705933590793e+00*(z0*z0)*f[74]*(z2*z2)+1.4523687548277813e+00*(z3*z3)*f[30]*z2+4.8713928962874675e+00*(z3*z3)*(z0*z0)*f[60]*z1+-2.8125000000000000e+00*z3*z0*(z1*z1)*f[68]+3.1250000000000000e-01*f[49]+4.3301270189221930e-01*z1*f[2]+-2.8125000000000000e+00*(z3*z3)*z1*z2*f[69]+2.5155764746872635e+00*z3*(z1*z1)*z2*f[38]+1.4523687548277813e+00*z1*(z2*z2)*f[24]+-4.8412291827592713e-01*z1*f[29]+4.3301270189221930e-01*z2*f[3]+-1.6237976320958225e+00*z0*(z2*z2)*f[56]+1.2990381056766580e+00*z3*z0*z1*f[16]+4.3301270189221930e-01*z3*f[4]+1.2990381056766580e+00*z0*z1*z2*f[15]+-2.8125000000000000e+00*z0*f[70]*(z1*z1)*z2+-1.6237976320958225e+00*(z1*z1)*f[54]*z2+-1.6237976320958225e+00*z0*f[64]*(z2*z2)+1.8154609435347266e+00*(z0*z0)*z1*f[78]+5.4126587736527421e-01*z3*f[58]+5.4126587736527421e-01*f[63]*z2+-2.8125000000000000e+00*(z3*z3)*z0*z1*f[71]+4.3571062644833436e+00*z3*z0*(z1*z1)*z2*f[51]+-2.8125000000000000e+00*z0*z1*f[71]*(z2*z2)+2.5155764746872635e+00*z3*z0*(z1*z1)*f[36]+3.1250000000000000e-01*f[46]+8.4375000000000000e+00*z3*(z0*z0)*f[67]*z1*(z2*z2)+9.3750000000000000e-01*z0*z1*f[71]+2.5155764746872635e+00*z3*(z0*z0)*f[37]*z2+-5.4463828306041799e+00*z3*(z0*z0)*f[76]*(z2*z2)+4.8713928962874675e+00*(z3*z3)*z0*f[64]*(z2*z2)+-5.4463828306041799e+00*(z3*z3)*(z0*z0)*z1*f[78]+2.8125000000000000e+00*(z0*z0)*(z1*z1)*f[44]+1.6339148491812541e+01*(z3*z3)*(z0*z0)*(z1*z1)*f[77]*z2+-2.7950849718747373e-01*f[13]+9.4334117800772379e+00*(z3*z3)*(z1*z1)*(z2*z2)*f[75]+-1.0546875000000000e+01*(z3*z3)*(z1*z1)*f[80]*(z2*z2)+3.5156250000000000e+00*(z3*z3)*f[80]*(z2*z2)+-3.1444705933590793e+00*(z3*z3)*(z2*z2)*f[75]+4.3571062644833436e+00*(z3*z3)*f[53]*z0*z1*z2+4.8713928962874675e+00*z0*(z1*z1)*(z2*z2)*f[56]+-2.8125000000000000e+00*f[66]*z3*(z0*z0)*z2+-8.3852549156242118e-01*z0*f[34]*z1+2.8125000000000000e+00*(z3*z3)*f[49]*(z2*z2)+8.3852549156242118e-01*f[12]*(z1*z1)+-3.4938562148434216e-01*f[75]+-1.6237976320958225e+00*(z0*z0)*f[60]*z1+-3.1444705933590793e+00*(z1*z1)*(z2*z2)*f[72]+7.5000000000000000e-01*z3*z0*f[8]+-1.4523687548277813e+00*z3*f[50]*z1*z2+9.3750000000000000e-01*z1*z2*f[69]+9.4334117800772379e+00*(z3*z3)*(z0*z0)*f[74]*(z2*z2)+-1.6237976320958225e+00*z3*(z1*z1)*f[57]+1.4523687548277813e+00*z3*(z0*z0)*f[25]+-5.4463828306041799e+00*(z3*z3)*z0*f[79]*(z1*z1)+5.4126587736527421e-01*f[61]*z0+3.1640625000000000e+01*(z3*z3)*(z0*z0)*(z1*z1)*f[80]*(z2*z2)+-2.7950849718747373e-01*f[11]+-5.4463828306041799e+00*(z0*z0)*z1*(z2*z2)*f[78]+-4.8412291827592713e-01*z0*f[28]+-3.4938562148434216e-01*f[72]+-8.3852549156242118e-01*z3*z0*f[36]+7.5000000000000000e-01*z3*z1*f[9]+-8.3852549156242118e-01*z3*z1*f[35]+2.5155764746872635e+00*(z3*z3)*z0*z1*f[41]+-1.4523687548277813e+00*z3*z0*z1*f[52]+-1.4523687548277813e+00*z3*z0*z2*f[51]+2.8125000000000000e+00*(z3*z3)*f[48]*(z1*z1)+-6.0515364784490888e-01*z1*f[78]+1.6339148491812541e+01*(z3*z3)*z0*f[79]*(z1*z1)*(z2*z2)+9.3750000000000000e-01*f[66]*z3*z2+-1.6237976320958225e+00*(z3*z3)*z0*f[64]+1.6339148491812541e+01*z3*(z0*z0)*f[76]*(z1*z1)*(z2*z2)+-2.8125000000000000e+00*z3*(z0*z0)*f[67]*z1+5.4126587736527421e-01*z3*f[57]+-3.1444705933590793e+00*(z0*z0)*f[73]*(z1*z1)+-8.3852549156242118e-01*z0*f[33]*z2+-1.6237976320958225e+00*z0*(z1*z1)*f[56]+-9.3750000000000000e-01*(z3*z3)*f[47]+-8.3852549156242118e-01*z1*z2*f[43]+-8.3852549156242118e-01*z3*z2*f[38]+4.3571062644833436e+00*z3*z0*z1*f[52]*(z2*z2)+-3.1444705933590793e+00*(z3*z3)*(z0*z0)*f[74]+1.8154609435347266e+00*(z3*z3)*f[77]*z2+4.8713928962874675e+00*(z3*z3)*f[63]*(z1*z1)*z2+1.0481568644530264e+00*f[74]*(z2*z2)+-1.1718750000000000e+00*(z3*z3)*f[80]+3.5156250000000000e+00*(z3*z3)*(z1*z1)*f[80]+-5.4463828306041799e+00*(z3*z3)*(z1*z1)*f[77]*z2; } GKYL_CU_DH double eval_grad_expand_4d_tensor_p2(int dir, const double *z, const double *f ) { const double z0 = z[0]; const double z1 = z[1]; const double z2 = z[2]; const double z3 = z[3]; if (dir == 0) return -3.2475952641916450e+00*z0*z1*f[55]+-1.6237976320958225e+00*f[56]*(z1*z1)+-1.4523687548277813e+00*z3*f[51]*z2+8.7142125289666872e+00*z3*z0*z1*z2*f[50]+-2.8125000000000000e+00*f[68]*z3*(z1*z1)+4.3571062644833436e+00*(z3*z3)*z1*f[53]*z2+-4.8412291827592713e-01*f[28]+9.7427857925749350e+00*z0*z1*(z2*z2)*f[55]+-3.2475952641916450e+00*f[54]*z0*z2+1.6875000000000000e+01*z3*z0*(z1*z1)*f[66]*z2+-5.4463828306041799e+00*(z3*z3)*(z2*z2)*f[79]+2.5155764746872635e+00*z3*(z2*z2)*f[39]+2.5155764746872635e+00*f[33]*(z1*z1)*z2+1.6339148491812541e+01*(z3*z3)*(z1*z1)*(z2*z2)*f[79]+9.7427857925749350e+00*(z3*z3)*z0*z1*f[60]+3.6309218870694533e+00*z0*z2*f[77]+-2.3437500000000000e+00*z0*f[80]+-6.2889411867181586e+00*z0*(z1*z1)*f[73]+-1.8750000000000000e+00*z0*f[47]+4.8713928962874675e+00*f[56]*(z1*z1)*(z2*z2)+-6.2889411867181586e+00*(z3*z3)*z0*f[73]+2.9047375096555625e+00*z0*f[19]*z1+5.0311529493745271e+00*z3*z0*f[35]*z1+1.6875000000000000e+01*(z3*z3)*z0*f[69]*z1*z2+2.5155764746872635e+00*z1*(z2*z2)*f[34]+2.0963137289060527e+00*z0*f[72]+-2.8125000000000000e+00*(z1*z1)*z2*f[70]+8.4375000000000000e+00*f[68]*z3*(z1*z1)*(z2*z2)+3.6309218870694533e+00*z0*z1*f[78]+1.4523687548277813e+00*(z3*z3)*f[28]+2.2500000000000000e+00*z3*z1*z2*f[31]+1.6770509831248424e+00*z0*f[11]+4.3301270189221930e-01*f[1]+7.5000000000000000e-01*z2*f[6]+8.4375000000000000e+00*(z3*z3)*(z1*z1)*z2*f[70]+-2.8125000000000000e+00*(z3*z3)*z2*f[70]+1.4523687548277813e+00*(z1*z1)*f[20]+-6.2889411867181586e+00*z0*f[72]*(z2*z2)+1.2990381056766580e+00*z3*f[17]*z2+-5.6250000000000000e+00*z3*z0*f[66]*z2+2.5155764746872635e+00*(z3*z3)*z2*f[42]+5.6250000000000000e+00*z0*f[45]*(z2*z2)+-1.0892765661208360e+01*(z3*z3)*z0*z1*f[78]+1.2990381056766580e+00*z1*f[15]*z2+1.8154609435347266e+00*(z3*z3)*f[79]+-5.4463828306041799e+00*(z3*z3)*(z1*z1)*f[79]+1.8866823560154476e+01*(z3*z3)*z0*(z1*z1)*f[73]+-6.2889411867181586e+00*(z3*z3)*z0*f[74]+4.3571062644833436e+00*z3*(z1*z1)*f[51]*z2+6.3281250000000000e+01*(z3*z3)*z0*(z1*z1)*(z2*z2)*f[80]+5.4126587736527421e-01*f[56]+-1.0892765661208360e+01*z0*z1*f[78]*(z2*z2)+7.5000000000000000e-01*z1*f[5]+-5.4463828306041799e+00*(z1*z1)*(z2*z2)*f[79]+-1.6237976320958225e+00*(z2*z2)*f[64]+-1.0892765661208360e+01*(z3*z3)*z0*z2*f[77]+4.8713928962874675e+00*(z3*z3)*(z1*z1)*f[61]+-1.6237976320958225e+00*(z3*z3)*f[61]+-4.8412291827592713e-01*f[20]+-3.2475952641916450e+00*z0*z1*f[60]+-8.3852549156242118e-01*f[41]*z1+5.6250000000000000e+00*z0*f[44]*(z1*z1)+2.9047375096555625e+00*z3*z0*f[25]+1.4523687548277813e+00*(z2*z2)*f[23]+-2.8125000000000000e+00*(z3*z3)*f[71]*z1+-8.3852549156242118e-01*z3*f[39]+-1.4523687548277813e+00*z1*f[53]*z2+-1.0892765661208360e+01*z0*(z1*z1)*z2*f[77]+1.8866823560154476e+01*(z3*z3)*z0*f[74]*(z2*z2)+5.6250000000000000e+00*(z3*z3)*z0*f[47]+2.9047375096555625e+00*z0*f[21]*z2+7.0312500000000000e+00*z0*(z1*z1)*f[80]+3.2678296983625081e+01*(z3*z3)*z0*(z1*z1)*z2*f[77]+7.5000000000000000e-01*z3*f[8]+2.0963137289060527e+00*z0*f[73]+-1.6237976320958225e+00*(z3*z3)*f[64]+-8.3852549156242118e-01*z1*f[34]+7.0312500000000000e+00*(z3*z3)*z0*f[80]+-1.0892765661208360e+01*z3*z0*f[76]*(z2*z2)+4.3571062644833436e+00*z3*z1*(z2*z2)*f[52]+5.0311529493745271e+00*z3*z0*f[37]*z2+-1.6237976320958225e+00*f[56]*(z2*z2)+-3.2475952641916450e+00*f[62]*z0*z2+-2.1093750000000000e+01*(z3*z3)*z0*(z2*z2)*f[80]+-8.3852549156242118e-01*z3*f[36]+5.4126587736527421e-01*f[61]+-1.4523687548277813e+00*z3*z1*f[52]+-2.8125000000000000e+00*f[71]*z1*(z2*z2)+-2.8125000000000000e+00*f[68]*z3*(z2*z2)+1.8154609435347266e+00*(z2*z2)*f[79]+-1.8750000000000000e+00*z0*f[45]+9.7427857925749350e+00*f[62]*(z3*z3)*z0*z2+3.2678296983625081e+01*(z3*z3)*z0*z1*f[78]*(z2*z2)+-2.1093750000000000e+01*z0*(z1*z1)*(z2*z2)*f[80]+-3.2475952641916450e+00*z3*z0*f[57]+-6.0515364784490888e-01*f[79]+5.0311529493745271e+00*z0*z1*f[32]*z2+9.3750000000000000e-01*f[68]*z3+9.3750000000000000e-01*f[71]*z1+9.7427857925749350e+00*z3*z0*f[58]*(z2*z2)+2.5155764746872635e+00*z3*f[36]*(z1*z1)+3.2678296983625081e+01*z3*z0*(z1*z1)*f[76]*(z2*z2)+-4.8412291827592713e-01*f[23]+4.8713928962874675e+00*(z3*z3)*(z2*z2)*f[64]+2.5155764746872635e+00*(z3*z3)*f[41]*z1+-1.6237976320958225e+00*(z1*z1)*f[61]+7.0312500000000000e+00*z0*(z2*z2)*f[80]+-5.6250000000000000e+00*z0*f[69]*z1*z2+5.4126587736527421e-01*f[64]+8.4375000000000000e+00*(z3*z3)*f[71]*z1*(z2*z2)+1.6875000000000000e+01*z3*z0*z1*(z2*z2)*f[67]+3.6309218870694533e+00*z3*z0*f[76]+9.7427857925749350e+00*f[54]*z0*(z1*z1)*z2+-5.6250000000000000e+00*z3*z0*z1*f[67]+1.8866823560154476e+01*z0*f[72]*(z1*z1)*(z2*z2)+-2.1093750000000000e+01*(z3*z3)*z0*(z1*z1)*f[80]+-6.2889411867181586e+00*z0*f[72]*(z1*z1)+2.0963137289060527e+00*z0*f[74]+1.8154609435347266e+00*(z1*z1)*f[79]+-8.3852549156242118e-01*z2*f[42]+-1.0892765661208360e+01*z3*z0*(z1*z1)*f[76]+-8.3852549156242118e-01*f[33]*z2+-3.2475952641916450e+00*z3*z0*f[58]+9.7427857925749350e+00*z3*z0*f[57]*(z1*z1)+1.2990381056766580e+00*z3*z1*f[16]+9.3750000000000000e-01*z2*f[70]+-6.2889411867181586e+00*z0*f[74]*(z2*z2)+-1.8750000000000000e+00*z0*f[44]; if (dir == 1) return 2.9047375096555625e+00*z3*z1*f[26]+-1.0892765661208360e+01*z3*z1*f[76]*(z2*z2)+4.3571062644833436e+00*z3*z0*(z2*z2)*f[52]+2.5155764746872635e+00*(z3*z3)*f[43]*z2+6.3281250000000000e+01*(z3*z3)*(z0*z0)*z1*(z2*z2)*f[80]+-1.6237976320958225e+00*(z3*z3)*f[65]+-6.2889411867181586e+00*(z0*z0)*z1*f[73]+2.0963137289060527e+00*f[72]*z1+1.4523687548277813e+00*(z0*z0)*f[19]+5.4126587736527421e-01*f[65]+3.6309218870694533e+00*z3*z1*f[76]+-4.8412291827592713e-01*f[24]+-1.8750000000000000e+00*z1*f[48]+-6.2889411867181586e+00*z1*f[75]*(z2*z2)+1.6875000000000000e+01*(z3*z3)*z0*z1*z2*f[70]+-1.0892765661208360e+01*(z0*z0)*z1*z2*f[77]+9.3750000000000000e-01*z3*f[67]+-4.8412291827592713e-01*f[19]+7.5000000000000000e-01*f[7]*z2+-6.2889411867181586e+00*f[72]*z1*(z2*z2)+-5.4463828306041799e+00*(z3*z3)*(z0*z0)*f[78]+2.5155764746872635e+00*(z3*z3)*f[41]*z0+1.2990381056766580e+00*z3*z0*f[16]+-1.6237976320958225e+00*(z2*z2)*f[55]+2.9047375096555625e+00*z0*z1*f[20]+-2.1093750000000000e+01*(z3*z3)*z1*(z2*z2)*f[80]+5.6250000000000000e+00*f[46]*z1*(z2*z2)+-6.2889411867181586e+00*(z3*z3)*z1*f[75]+4.8713928962874675e+00*(z3*z3)*f[65]*(z2*z2)+-5.4463828306041799e+00*(z0*z0)*f[78]*(z2*z2)+-2.8125000000000000e+00*(z3*z3)*f[69]*z2+-2.8125000000000000e+00*z3*(z2*z2)*f[67]+9.7427857925749350e+00*z3*(z0*z0)*f[57]*z1+1.6875000000000000e+01*z3*(z0*z0)*z1*f[66]*z2+1.6339148491812541e+01*(z3*z3)*(z0*z0)*f[78]*(z2*z2)+4.3301270189221930e-01*f[2]+-4.8412291827592713e-01*f[29]+7.0312500000000000e+00*z1*(z2*z2)*f[80]+7.0312500000000000e+00*(z3*z3)*z1*f[80]+1.8866823560154476e+01*(z3*z3)*z1*f[75]*(z2*z2)+4.3571062644833436e+00*z3*(z0*z0)*z2*f[50]+-6.2889411867181586e+00*(z0*z0)*f[72]*z1+-8.3852549156242118e-01*z0*f[34]+2.0963137289060527e+00*z1*f[73]+5.0311529493745271e+00*f[33]*z0*z1*z2+4.8713928962874675e+00*(z3*z3)*(z0*z0)*f[60]+-2.8125000000000000e+00*(z3*z3)*z0*f[71]+7.5000000000000000e-01*z3*f[9]+-8.3852549156242118e-01*z3*f[35]+1.8154609435347266e+00*f[78]*(z2*z2)+-1.4523687548277813e+00*z3*z0*f[52]+-6.0515364784490888e-01*f[78]+4.8713928962874675e+00*(z0*z0)*(z2*z2)*f[55]+3.2678296983625081e+01*(z3*z3)*z0*z1*(z2*z2)*f[79]+1.8866823560154476e+01*(z3*z3)*(z0*z0)*z1*f[73]+3.6309218870694533e+00*z1*z2*f[77]+2.0963137289060527e+00*z1*f[75]+-1.6237976320958225e+00*f[65]*(z2*z2)+1.8154609435347266e+00*(z0*z0)*f[78]+-8.3852549156242118e-01*f[41]*z0+-2.8125000000000000e+00*z0*f[71]*(z2*z2)+-1.8750000000000000e+00*f[46]*z1+-3.2475952641916450e+00*z3*f[57]*z1+-8.3852549156242118e-01*f[32]*z2+9.7427857925749350e+00*(z3*z3)*z1*z2*f[63]+2.5155764746872635e+00*z3*(z0*z0)*f[35]+8.4375000000000000e+00*z3*(z0*z0)*(z2*z2)*f[67]+1.2990381056766580e+00*z3*z2*f[18]+4.3571062644833436e+00*(z3*z3)*z0*f[53]*z2+3.6309218870694533e+00*z0*z1*f[79]+-1.0892765661208360e+01*z0*z1*(z2*z2)*f[79]+3.2678296983625081e+01*z3*(z0*z0)*z1*f[76]*(z2*z2)+-1.8750000000000000e+00*f[44]*z1+5.6250000000000000e+00*(z3*z3)*z1*f[48]+8.7142125289666872e+00*z3*z0*z1*f[51]*z2+-1.4523687548277813e+00*z3*z2*f[50]+1.8866823560154476e+01*(z0*z0)*f[72]*z1*(z2*z2)+2.2500000000000000e+00*z3*z0*z2*f[31]+-1.6237976320958225e+00*(z3*z3)*f[60]+-3.2475952641916450e+00*z0*z1*f[61]+-2.8125000000000000e+00*(z0*z0)*f[69]*z2+7.5000000000000000e-01*z0*f[5]+2.5155764746872635e+00*z0*(z2*z2)*f[34]+1.4523687548277813e+00*f[24]*(z2*z2)+1.6875000000000000e+01*f[68]*z3*z0*z1*(z2*z2)+-1.6237976320958225e+00*(z0*z0)*f[55]+-8.3852549156242118e-01*z3*f[40]+5.0311529493745271e+00*z3*z0*f[36]*z1+7.0312500000000000e+00*(z0*z0)*z1*f[80]+5.0311529493745271e+00*z3*z1*f[38]*z2+-8.3852549156242118e-01*f[43]*z2+1.4523687548277813e+00*(z3*z3)*f[29]+3.2678296983625081e+01*(z3*z3)*(z0*z0)*z1*z2*f[77]+5.4126587736527421e-01*f[60]+-2.8125000000000000e+00*z3*(z0*z0)*f[67]+-2.1093750000000000e+01*(z3*z3)*(z0*z0)*z1*f[80]+-5.6250000000000000e+00*z0*z1*z2*f[70]+5.6250000000000000e+00*(z0*z0)*f[44]*z1+-5.6250000000000000e+00*f[68]*z3*z0*z1+9.7427857925749350e+00*z3*z1*f[59]*(z2*z2)+-5.4463828306041799e+00*(z3*z3)*f[78]*(z2*z2)+9.3750000000000000e-01*z0*f[71]+1.2990381056766580e+00*z0*f[15]*z2+8.4375000000000000e+00*(z3*z3)*(z0*z0)*f[69]*z2+2.5155764746872635e+00*z3*(z2*z2)*f[40]+2.5155764746872635e+00*(z0*z0)*f[32]*z2+-1.0892765661208360e+01*z3*(z0*z0)*z1*f[76]+-5.6250000000000000e+00*z3*z1*f[66]*z2+-3.2475952641916450e+00*f[54]*z1*z2+9.7427857925749350e+00*(z3*z3)*z0*z1*f[61]+-1.6237976320958225e+00*(z0*z0)*f[60]+-1.4523687548277813e+00*z0*f[53]*z2+-6.2889411867181586e+00*(z3*z3)*z1*f[73]+-1.0892765661208360e+01*(z3*z3)*z0*z1*f[79]+-2.1093750000000000e+01*(z0*z0)*z1*(z2*z2)*f[80]+1.6770509831248424e+00*z1*f[12]+-3.2475952641916450e+00*z0*f[56]*z1+-2.3437500000000000e+00*z1*f[80]+-1.0892765661208360e+01*(z3*z3)*z1*z2*f[77]+5.4126587736527421e-01*f[55]+9.7427857925749350e+00*f[54]*(z0*z0)*z1*z2+-3.2475952641916450e+00*z1*z2*f[63]+9.3750000000000000e-01*f[69]*z2+9.7427857925749350e+00*z0*f[56]*z1*(z2*z2)+1.8154609435347266e+00*(z3*z3)*f[78]+-3.2475952641916450e+00*z3*z1*f[59]+2.9047375096555625e+00*z1*f[22]*z2+8.4375000000000000e+00*(z3*z3)*z0*f[71]*(z2*z2); if (dir == 2) return 1.4523687548277813e+00*(z0*z0)*f[21]+1.6875000000000000e+01*(z3*z3)*z0*f[71]*z1*z2+4.8713928962874675e+00*f[62]*(z3*z3)*(z0*z0)+1.6339148491812541e+01*(z3*z3)*(z0*z0)*(z1*z1)*f[77]+5.4126587736527421e-01*f[62]+4.3571062644833436e+00*z3*z0*(z1*z1)*f[51]+2.5155764746872635e+00*z3*(z0*z0)*f[37]+2.9047375096555625e+00*z0*z2*f[23]+1.8866823560154476e+01*(z0*z0)*f[72]*(z1*z1)*z2+-2.8125000000000000e+00*(z0*z0)*f[69]*z1+7.0312500000000000e+00*(z3*z3)*z2*f[80]+4.3571062644833436e+00*z3*(z0*z0)*z1*f[50]+-2.1093750000000000e+01*(z3*z3)*(z1*z1)*z2*f[80]+1.2990381056766580e+00*z0*z1*f[15]+5.4126587736527421e-01*f[54]+2.0963137289060527e+00*f[74]*z2+-3.2475952641916450e+00*z0*z2*f[64]+2.5155764746872635e+00*z3*(z1*z1)*f[38]+3.6309218870694533e+00*z1*f[78]*z2+-8.3852549156242118e-01*f[43]*z1+6.3281250000000000e+01*(z3*z3)*(z0*z0)*(z1*z1)*z2*f[80]+1.6875000000000000e+01*f[68]*z3*z0*(z1*z1)*z2+4.8713928962874675e+00*f[54]*(z0*z0)*(z1*z1)+-1.0892765661208360e+01*z3*(z0*z0)*f[76]*z2+3.2678296983625081e+01*z3*(z0*z0)*(z1*z1)*f[76]*z2+1.8154609435347266e+00*(z1*z1)*f[77]+-1.8750000000000000e+00*f[46]*z2+-1.4523687548277813e+00*z3*z0*f[51]+-1.6237976320958225e+00*f[54]*(z1*z1)+1.8866823560154476e+01*(z3*z3)*(z0*z0)*f[74]*z2+1.4523687548277813e+00*(z3*z3)*f[30]+-3.2475952641916450e+00*z3*f[59]*z2+7.5000000000000000e-01*z1*f[7]+5.6250000000000000e+00*(z3*z3)*f[49]*z2+-8.3852549156242118e-01*z3*f[38]+-5.6250000000000000e+00*z3*z1*z2*f[67]+2.5155764746872635e+00*(z0*z0)*z1*f[32]+-6.2889411867181586e+00*(z0*z0)*f[74]*z2+-3.2475952641916450e+00*z0*f[56]*z2+2.0963137289060527e+00*f[75]*z2+-5.4463828306041799e+00*(z3*z3)*(z0*z0)*f[77]+-1.6237976320958225e+00*(z1*z1)*f[63]+9.3750000000000000e-01*f[69]*z1+3.2678296983625081e+01*(z3*z3)*z0*(z1*z1)*z2*f[79]+3.2678296983625081e+01*(z3*z3)*(z0*z0)*z1*f[78]*z2+9.7427857925749350e+00*(z3*z3)*z0*z2*f[64]+4.3301270189221930e-01*f[3]+7.0312500000000000e+00*(z1*z1)*z2*f[80]+-8.3852549156242118e-01*z1*f[32]+9.7427857925749350e+00*z0*f[56]*(z1*z1)*z2+8.4375000000000000e+00*z3*(z0*z0)*(z1*z1)*f[66]+-2.8125000000000000e+00*z3*(z0*z0)*f[66]+-5.6250000000000000e+00*f[68]*z3*z0*z2+-1.0892765661208360e+01*(z3*z3)*z1*f[78]*z2+9.7427857925749350e+00*z3*(z1*z1)*f[59]*z2+9.3750000000000000e-01*z0*f[70]+9.7427857925749350e+00*(z0*z0)*z1*z2*f[55]+-5.4463828306041799e+00*(z0*z0)*(z1*z1)*f[77]+1.6770509831248424e+00*f[13]*z2+-8.3852549156242118e-01*z0*f[42]+7.5000000000000000e-01*z3*f[10]+8.7142125289666872e+00*z3*z0*z1*z2*f[52]+8.4375000000000000e+00*(z3*z3)*(z0*z0)*f[69]*z1+9.7427857925749350e+00*z3*(z0*z0)*f[58]*z2+9.7427857925749350e+00*(z3*z3)*f[65]*z1*z2+-1.8750000000000000e+00*f[49]*z2+-1.4523687548277813e+00*z0*z1*f[53]+-4.8412291827592713e-01*f[30]+-2.1093750000000000e+01*(z3*z3)*(z0*z0)*z2*f[80]+-1.6237976320958225e+00*f[62]*(z0*z0)+9.3750000000000000e-01*z3*f[66]+1.2990381056766580e+00*z3*z0*f[17]+-4.8412291827592713e-01*f[22]+-6.2889411867181586e+00*(z1*z1)*f[75]*z2+1.8154609435347266e+00*(z3*z3)*f[77]+-5.4463828306041799e+00*(z3*z3)*(z1*z1)*f[77]+2.9047375096555625e+00*f[24]*z1*z2+-1.8750000000000000e+00*f[45]*z2+1.6875000000000000e+01*z3*(z0*z0)*z1*z2*f[67]+2.5155764746872635e+00*(z3*z3)*f[43]*z1+-6.2889411867181586e+00*f[72]*(z1*z1)*z2+5.0311529493745271e+00*z3*z1*z2*f[40]+-2.8125000000000000e+00*z3*(z1*z1)*f[66]+-1.0892765661208360e+01*(z3*z3)*z0*z2*f[79]+-4.8412291827592713e-01*f[21]+-2.3437500000000000e+00*z2*f[80]+5.6250000000000000e+00*f[46]*(z1*z1)*z2+2.0963137289060527e+00*f[72]*z2+-6.2889411867181586e+00*(z3*z3)*f[74]*z2+-8.3852549156242118e-01*f[33]*z0+-3.2475952641916450e+00*z3*f[58]*z2+-1.0892765661208360e+01*z0*(z1*z1)*z2*f[79]+-1.0892765661208360e+01*(z0*z0)*z1*f[78]*z2+8.4375000000000000e+00*(z3*z3)*z0*(z1*z1)*f[70]+1.4523687548277813e+00*(z1*z1)*f[22]+-1.6237976320958225e+00*f[62]*(z3*z3)+-1.0892765661208360e+01*z3*(z1*z1)*f[76]*z2+-2.8125000000000000e+00*z0*(z1*z1)*f[70]+2.5155764746872635e+00*(z3*z3)*z0*f[42]+7.5000000000000000e-01*z0*f[6]+-2.1093750000000000e+01*(z0*z0)*(z1*z1)*z2*f[80]+-2.8125000000000000e+00*(z3*z3)*z0*f[70]+1.2990381056766580e+00*z3*z1*f[18]+2.9047375096555625e+00*z3*z2*f[27]+3.6309218870694533e+00*z0*z2*f[79]+-1.6237976320958225e+00*f[54]*(z0*z0)+-6.0515364784490888e-01*f[77]+-3.2475952641916450e+00*z1*z2*f[55]+-1.4523687548277813e+00*z3*z1*f[50]+-8.3852549156242118e-01*z3*f[37]+-1.6237976320958225e+00*(z3*z3)*f[63]+-2.8125000000000000e+00*(z3*z3)*f[69]*z1+5.4126587736527421e-01*f[63]+4.8713928962874675e+00*(z3*z3)*(z1*z1)*f[63]+5.0311529493745271e+00*z0*z1*z2*f[34]+2.2500000000000000e+00*z3*z0*z1*f[31]+1.8866823560154476e+01*(z3*z3)*(z1*z1)*f[75]*z2+-5.6250000000000000e+00*z0*f[71]*z1*z2+-6.2889411867181586e+00*(z3*z3)*f[75]*z2+1.8154609435347266e+00*(z0*z0)*f[77]+3.6309218870694533e+00*z3*f[76]*z2+2.5155764746872635e+00*f[33]*z0*(z1*z1)+-3.2475952641916450e+00*f[65]*z1*z2+5.0311529493745271e+00*z3*z0*z2*f[39]+5.6250000000000000e+00*(z0*z0)*f[45]*z2+-6.2889411867181586e+00*(z0*z0)*f[72]*z2+7.0312500000000000e+00*(z0*z0)*z2*f[80]+4.3571062644833436e+00*(z3*z3)*z0*z1*f[53]; if (dir == 3) return 5.0311529493745271e+00*z3*f[41]*z0*z1+-5.6250000000000000e+00*z3*f[69]*z1*z2+1.8866823560154476e+01*z3*(z1*z1)*f[75]*(z2*z2)+1.8866823560154476e+01*z3*(z0*z0)*(z1*z1)*f[73]+-6.2889411867181586e+00*z3*(z0*z0)*f[73]+-8.3852549156242118e-01*z0*f[39]+-8.3852549156242118e-01*z1*f[40]+2.5155764746872635e+00*(z0*z0)*f[35]*z1+-6.2889411867181586e+00*z3*f[74]*(z2*z2)+1.2990381056766580e+00*z0*z1*f[16]+-6.2889411867181586e+00*z3*(z1*z1)*f[75]+-1.0892765661208360e+01*z3*(z0*z0)*z1*f[78]+9.7427857925749350e+00*z3*z0*(z2*z2)*f[64]+3.2678296983625081e+01*z3*(z0*z0)*z1*f[78]*(z2*z2)+-3.2475952641916450e+00*z3*f[65]*z1+1.6770509831248424e+00*z3*f[14]+-5.4463828306041799e+00*(z1*z1)*f[76]*(z2*z2)+2.5155764746872635e+00*z0*f[36]*(z1*z1)+-1.6237976320958225e+00*(z0*z0)*f[57]+9.3750000000000000e-01*f[66]*z2+-2.8125000000000000e+00*z1*(z2*z2)*f[67]+7.0312500000000000e+00*z3*(z2*z2)*f[80]+5.4126587736527421e-01*f[57]+2.0963137289060527e+00*z3*f[75]+-1.6237976320958225e+00*f[59]*(z2*z2)+3.2678296983625081e+01*z3*(z0*z0)*(z1*z1)*z2*f[77]+-1.0892765661208360e+01*z3*(z0*z0)*z2*f[77]+1.6875000000000000e+01*z3*z0*f[71]*z1*(z2*z2)+4.3571062644833436e+00*(z0*z0)*z1*z2*f[50]+4.3571062644833436e+00*z0*z1*(z2*z2)*f[52]+1.8154609435347266e+00*(z0*z0)*f[76]+-1.4523687548277813e+00*z0*z1*f[52]+9.7427857925749350e+00*z3*(z0*z0)*z1*f[60]+2.9047375096555625e+00*z3*f[29]*z1+-8.3852549156242118e-01*f[38]*z2+8.4375000000000000e+00*(z0*z0)*(z1*z1)*f[66]*z2+-2.3437500000000000e+00*z3*f[80]+-6.2889411867181586e+00*z3*f[75]*(z2*z2)+7.5000000000000000e-01*f[9]*z1+-8.3852549156242118e-01*f[35]*z1+-4.8412291827592713e-01*f[25]+-1.8750000000000000e+00*z3*f[47]+1.4523687548277813e+00*(z2*z2)*f[27]+-1.6237976320958225e+00*(z0*z0)*f[58]+-2.8125000000000000e+00*(z0*z0)*f[66]*z2+-2.1093750000000000e+01*z3*(z1*z1)*(z2*z2)*f[80]+-1.6237976320958225e+00*(z1*z1)*f[59]+9.7427857925749350e+00*z3*f[65]*z1*(z2*z2)+-3.2475952641916450e+00*z3*z0*f[64]+5.4126587736527421e-01*f[59]+-6.2889411867181586e+00*z3*(z0*z0)*f[74]+-2.8125000000000000e+00*f[68]*z0*(z1*z1)+7.0312500000000000e+00*z3*(z1*z1)*f[80]+-3.2475952641916450e+00*z3*z1*f[60]+5.6250000000000000e+00*z3*f[49]*(z2*z2)+-1.0892765661208360e+01*z3*z1*f[78]*(z2*z2)+7.5000000000000000e-01*z2*f[10]+1.8154609435347266e+00*(z1*z1)*f[76]+-4.8412291827592713e-01*f[26]+5.0311529493745271e+00*z3*z0*z2*f[42]+-3.2475952641916450e+00*z3*z0*f[61]+-6.0515364784490888e-01*f[76]+5.0311529493745271e+00*z3*f[43]*z1*z2+3.2678296983625081e+01*z3*z0*(z1*z1)*(z2*z2)*f[79]+1.6339148491812541e+01*(z0*z0)*(z1*z1)*f[76]*(z2*z2)+-3.2475952641916450e+00*z3*z2*f[63]+-1.6237976320958225e+00*f[57]*(z1*z1)+-5.6250000000000000e+00*z3*z0*z2*f[70]+4.3571062644833436e+00*z0*(z1*z1)*f[51]*z2+1.4523687548277813e+00*(z1*z1)*f[26]+8.7142125289666872e+00*z3*z0*z1*f[53]*z2+9.3750000000000000e-01*z1*f[67]+9.7427857925749350e+00*f[62]*z3*(z0*z0)*z2+1.6875000000000000e+01*z3*(z0*z0)*f[69]*z1*z2+5.4126587736527421e-01*f[58]+-1.8750000000000000e+00*z3*f[48]+8.4375000000000000e+00*(z0*z0)*z1*(z2*z2)*f[67]+2.5155764746872635e+00*(z1*z1)*f[38]*z2+-1.0892765661208360e+01*z3*z0*(z1*z1)*f[79]+4.3301270189221930e-01*f[4]+2.0963137289060527e+00*z3*f[74]+9.7427857925749350e+00*z3*z0*(z1*z1)*f[61]+-1.0892765661208360e+01*z3*(z1*z1)*z2*f[77]+2.9047375096555625e+00*z3*f[28]*z0+1.2990381056766580e+00*z0*f[17]*z2+2.5155764746872635e+00*z1*(z2*z2)*f[40]+5.6250000000000000e+00*z3*(z1*z1)*f[48]+7.0312500000000000e+00*z3*(z0*z0)*f[80]+-2.1093750000000000e+01*z3*(z0*z0)*(z1*z1)*f[80]+-1.6237976320958225e+00*f[58]*(z2*z2)+3.6309218870694533e+00*z3*z0*f[79]+-5.6250000000000000e+00*z3*z0*f[71]*z1+-5.4463828306041799e+00*(z0*z0)*f[76]*(z2*z2)+5.6250000000000000e+00*z3*(z0*z0)*f[47]+2.5155764746872635e+00*(z0*z0)*f[37]*z2+-2.8125000000000000e+00*(z0*z0)*z1*f[67]+-4.8412291827592713e-01*f[27]+-6.2889411867181586e+00*z3*(z1*z1)*f[73]+-5.4463828306041799e+00*(z0*z0)*(z1*z1)*f[76]+-8.3852549156242118e-01*z0*f[36]+3.6309218870694533e+00*z3*z1*f[78]+-3.2475952641916450e+00*f[62]*z3*z2+-1.8750000000000000e+00*z3*f[49]+8.4375000000000000e+00*f[68]*z0*(z1*z1)*(z2*z2)+-1.0892765661208360e+01*z3*z0*(z2*z2)*f[79]+4.8713928962874675e+00*(z0*z0)*f[57]*(z1*z1)+-2.8125000000000000e+00*f[68]*z0*(z2*z2)+1.6875000000000000e+01*z3*z0*(z1*z1)*z2*f[70]+9.7427857925749350e+00*z3*(z1*z1)*z2*f[63]+1.8866823560154476e+01*z3*(z0*z0)*f[74]*(z2*z2)+7.5000000000000000e-01*z0*f[8]+2.2500000000000000e+00*z0*z1*z2*f[31]+2.0963137289060527e+00*z3*f[73]+4.8713928962874675e+00*(z0*z0)*f[58]*(z2*z2)+1.4523687548277813e+00*(z0*z0)*f[25]+-8.3852549156242118e-01*f[37]*z2+-1.4523687548277813e+00*z1*z2*f[50]+-1.4523687548277813e+00*z0*f[51]*z2+1.8154609435347266e+00*f[76]*(z2*z2)+4.8713928962874675e+00*(z1*z1)*f[59]*(z2*z2)+3.6309218870694533e+00*z3*z2*f[77]+-2.1093750000000000e+01*z3*(z0*z0)*(z2*z2)*f[80]+6.3281250000000000e+01*z3*(z0*z0)*(z1*z1)*(z2*z2)*f[80]+2.5155764746872635e+00*z0*(z2*z2)*f[39]+1.2990381056766580e+00*z1*z2*f[18]+9.3750000000000000e-01*f[68]*z0+-2.8125000000000000e+00*(z1*z1)*f[66]*z2+2.9047375096555625e+00*z3*f[30]*z2; } GKYL_CU_DH void eval_5d_tensor_p2(const double *z, double *b ) { const double z0 = z[0]; const double z1 = z[1]; const double z2 = z[2]; const double z3 = z[3]; const double z4 = z[4]; b[0] = 1.7677669529663689e-01; b[1] = 3.0618621784789724e-01*z0; b[2] = 3.0618621784789724e-01*z1; b[3] = 3.0618621784789724e-01*z2; b[4] = 3.0618621784789724e-01*z3; b[5] = 3.0618621784789724e-01*z4; b[6] = 5.3033008588991060e-01*z0*z1; b[7] = 5.3033008588991060e-01*z0*z2; b[8] = 5.3033008588991060e-01*z1*z2; b[9] = 5.3033008588991060e-01*z3*z0; b[10] = 5.3033008588991060e-01*z3*z1; b[11] = 5.3033008588991060e-01*z3*z2; b[12] = 5.3033008588991060e-01*z0*z4; b[13] = 5.3033008588991060e-01*z4*z1; b[14] = 5.3033008588991060e-01*z4*z2; b[15] = 5.3033008588991060e-01*z3*z4; b[16] = 5.9292706128157113e-01*(z0*z0)-1.9764235376052372e-01; b[17] = 5.9292706128157113e-01*(z1*z1)-1.9764235376052372e-01; b[18] = 5.9292706128157113e-01*(z2*z2)-1.9764235376052372e-01; b[19] = 5.9292706128157113e-01*(z3*z3)-1.9764235376052372e-01; b[20] = 5.9292706128157113e-01*(z4*z4)-1.9764235376052372e-01; b[21] = 9.1855865354369182e-01*z0*z1*z2; b[22] = 9.1855865354369182e-01*z3*z0*z1; b[23] = 9.1855865354369182e-01*z3*z0*z2; b[24] = 9.1855865354369182e-01*z3*z1*z2; b[25] = 9.1855865354369182e-01*z0*z4*z1; b[26] = 9.1855865354369182e-01*z0*z4*z2; b[27] = 9.1855865354369182e-01*z4*z1*z2; b[28] = 9.1855865354369182e-01*z3*z0*z4; b[29] = 9.1855865354369182e-01*z3*z4*z1; b[30] = 9.1855865354369182e-01*z3*z4*z2; b[31] = -3.4232659844072882e-01*z1+1.0269797953221864e+00*(z0*z0)*z1; b[32] = 1.0269797953221864e+00*z0*(z1*z1)+-3.4232659844072882e-01*z0; b[33] = 1.0269797953221864e+00*(z0*z0)*z2+-3.4232659844072882e-01*z2; b[34] = -3.4232659844072882e-01*z2+1.0269797953221864e+00*(z1*z1)*z2; b[35] = -3.4232659844072882e-01*z0+1.0269797953221864e+00*z0*(z2*z2); b[36] = -3.4232659844072882e-01*z1+1.0269797953221864e+00*z1*(z2*z2); b[37] = -3.4232659844072882e-01*z3+1.0269797953221864e+00*z3*(z0*z0); b[38] = -3.4232659844072882e-01*z3+1.0269797953221864e+00*z3*(z1*z1); b[39] = -3.4232659844072882e-01*z3+1.0269797953221864e+00*z3*(z2*z2); b[40] = 1.0269797953221864e+00*(z3*z3)*z0+-3.4232659844072882e-01*z0; b[41] = -3.4232659844072882e-01*z1+1.0269797953221864e+00*(z3*z3)*z1; b[42] = 1.0269797953221864e+00*(z3*z3)*z2+-3.4232659844072882e-01*z2; b[43] = -3.4232659844072882e-01*z4+1.0269797953221864e+00*(z0*z0)*z4; b[44] = 1.0269797953221864e+00*z4*(z1*z1)+-3.4232659844072882e-01*z4; b[45] = -3.4232659844072882e-01*z4+1.0269797953221864e+00*z4*(z2*z2); b[46] = -3.4232659844072882e-01*z4+1.0269797953221864e+00*(z3*z3)*z4; b[47] = -3.4232659844072882e-01*z0+1.0269797953221864e+00*z0*(z4*z4); b[48] = -3.4232659844072882e-01*z1+1.0269797953221864e+00*(z4*z4)*z1; b[49] = 1.0269797953221864e+00*(z4*z4)*z2+-3.4232659844072882e-01*z2; b[50] = -3.4232659844072882e-01*z3+1.0269797953221864e+00*z3*(z4*z4); b[51] = 1.5909902576697319e+00*z3*z0*z1*z2; b[52] = 1.5909902576697319e+00*z0*z4*z1*z2; b[53] = 1.5909902576697319e+00*z3*z0*z4*z1; b[54] = 1.5909902576697319e+00*z3*z0*z4*z2; b[55] = 1.5909902576697319e+00*z3*z4*z1*z2; b[56] = -5.9292706128157113e-01*z1*z2+1.7787811838447134e+00*(z0*z0)*z1*z2; b[57] = 1.7787811838447134e+00*z0*(z1*z1)*z2+-5.9292706128157113e-01*z0*z2; b[58] = -5.9292706128157113e-01*z0*z1+1.7787811838447134e+00*z0*z1*(z2*z2); b[59] = -5.9292706128157113e-01*z3*z1+1.7787811838447134e+00*z3*(z0*z0)*z1; b[60] = 1.7787811838447134e+00*z3*z0*(z1*z1)+-5.9292706128157113e-01*z3*z0; b[61] = 1.7787811838447134e+00*z3*(z0*z0)*z2+-5.9292706128157113e-01*z3*z2; b[62] = 1.7787811838447134e+00*z3*(z1*z1)*z2+-5.9292706128157113e-01*z3*z2; b[63] = 1.7787811838447134e+00*z3*z0*(z2*z2)+-5.9292706128157113e-01*z3*z0; b[64] = 1.7787811838447134e+00*z3*z1*(z2*z2)+-5.9292706128157113e-01*z3*z1; b[65] = -5.9292706128157113e-01*z0*z1+1.7787811838447134e+00*(z3*z3)*z0*z1; b[66] = 1.7787811838447134e+00*(z3*z3)*z0*z2+-5.9292706128157113e-01*z0*z2; b[67] = -5.9292706128157113e-01*z1*z2+1.7787811838447134e+00*(z3*z3)*z1*z2; b[68] = 1.7787811838447134e+00*(z0*z0)*z4*z1+-5.9292706128157113e-01*z4*z1; b[69] = -5.9292706128157113e-01*z0*z4+1.7787811838447134e+00*z0*z4*(z1*z1); b[70] = 1.7787811838447134e+00*(z0*z0)*z4*z2+-5.9292706128157113e-01*z4*z2; b[71] = 1.7787811838447134e+00*z4*(z1*z1)*z2+-5.9292706128157113e-01*z4*z2; b[72] = -5.9292706128157113e-01*z0*z4+1.7787811838447134e+00*z0*z4*(z2*z2); b[73] = -5.9292706128157113e-01*z4*z1+1.7787811838447134e+00*z4*z1*(z2*z2); b[74] = -5.9292706128157113e-01*z3*z4+1.7787811838447134e+00*z3*(z0*z0)*z4; b[75] = 1.7787811838447134e+00*z3*z4*(z1*z1)+-5.9292706128157113e-01*z3*z4; b[76] = -5.9292706128157113e-01*z3*z4+1.7787811838447134e+00*z3*z4*(z2*z2); b[77] = -5.9292706128157113e-01*z0*z4+1.7787811838447134e+00*(z3*z3)*z0*z4; b[78] = -5.9292706128157113e-01*z4*z1+1.7787811838447134e+00*(z3*z3)*z4*z1; b[79] = 1.7787811838447134e+00*(z3*z3)*z4*z2+-5.9292706128157113e-01*z4*z2; b[80] = 1.7787811838447134e+00*z0*(z4*z4)*z1+-5.9292706128157113e-01*z0*z1; b[81] = 1.7787811838447134e+00*z0*(z4*z4)*z2+-5.9292706128157113e-01*z0*z2; b[82] = -5.9292706128157113e-01*z1*z2+1.7787811838447134e+00*(z4*z4)*z1*z2; b[83] = 1.7787811838447134e+00*z3*z0*(z4*z4)+-5.9292706128157113e-01*z3*z0; b[84] = -5.9292706128157113e-01*z3*z1+1.7787811838447134e+00*z3*(z4*z4)*z1; b[85] = 1.7787811838447134e+00*z3*(z4*z4)*z2+-5.9292706128157113e-01*z3*z2; b[86] = -6.6291260736238833e-01*(z0*z0)+-6.6291260736238833e-01*(z1*z1)+1.9887378220871650e+00*(z0*z0)*(z1*z1)+2.2097086912079611e-01; b[87] = -6.6291260736238833e-01*(z2*z2)+1.9887378220871650e+00*(z0*z0)*(z2*z2)+-6.6291260736238833e-01*(z0*z0)+2.2097086912079611e-01; b[88] = -6.6291260736238833e-01*(z2*z2)+1.9887378220871650e+00*(z1*z1)*(z2*z2)+-6.6291260736238833e-01*(z1*z1)+2.2097086912079611e-01; b[89] = -6.6291260736238833e-01*(z0*z0)+-6.6291260736238833e-01*(z3*z3)+1.9887378220871650e+00*(z3*z3)*(z0*z0)+2.2097086912079611e-01; b[90] = -6.6291260736238833e-01*(z3*z3)+1.9887378220871650e+00*(z3*z3)*(z1*z1)+-6.6291260736238833e-01*(z1*z1)+2.2097086912079611e-01; b[91] = -6.6291260736238833e-01*(z2*z2)+1.9887378220871650e+00*(z3*z3)*(z2*z2)+-6.6291260736238833e-01*(z3*z3)+2.2097086912079611e-01; b[92] = -6.6291260736238833e-01*(z0*z0)+1.9887378220871650e+00*(z0*z0)*(z4*z4)+-6.6291260736238833e-01*(z4*z4)+2.2097086912079611e-01; b[93] = -6.6291260736238833e-01*(z1*z1)+1.9887378220871650e+00*(z4*z4)*(z1*z1)+-6.6291260736238833e-01*(z4*z4)+2.2097086912079611e-01; b[94] = -6.6291260736238833e-01*(z2*z2)+1.9887378220871650e+00*(z4*z4)*(z2*z2)+-6.6291260736238833e-01*(z4*z4)+2.2097086912079611e-01; b[95] = -6.6291260736238833e-01*(z3*z3)+-6.6291260736238833e-01*(z4*z4)+1.9887378220871650e+00*(z3*z3)*(z4*z4)+2.2097086912079611e-01; b[96] = 2.7556759606310752e+00*z3*z0*z4*z1*z2; b[97] = -1.0269797953221864e+00*z3*z1*z2+3.0809393859665595e+00*z3*(z0*z0)*z1*z2; b[98] = 3.0809393859665595e+00*z3*z0*(z1*z1)*z2+-1.0269797953221864e+00*z3*z0*z2; b[99] = 3.0809393859665595e+00*z3*z0*z1*(z2*z2)+-1.0269797953221864e+00*z3*z0*z1; b[100] = -1.0269797953221864e+00*z0*z1*z2+3.0809393859665595e+00*(z3*z3)*z0*z1*z2; b[101] = 3.0809393859665595e+00*(z0*z0)*z4*z1*z2+-1.0269797953221864e+00*z4*z1*z2; b[102] = 3.0809393859665595e+00*z0*z4*(z1*z1)*z2+-1.0269797953221864e+00*z0*z4*z2; b[103] = 3.0809393859665595e+00*z0*z4*z1*(z2*z2)+-1.0269797953221864e+00*z0*z4*z1; b[104] = -1.0269797953221864e+00*z3*z4*z1+3.0809393859665595e+00*z3*(z0*z0)*z4*z1; b[105] = 3.0809393859665595e+00*z3*z0*z4*(z1*z1)+-1.0269797953221864e+00*z3*z0*z4; b[106] = 3.0809393859665595e+00*z3*(z0*z0)*z4*z2+-1.0269797953221864e+00*z3*z4*z2; b[107] = -1.0269797953221864e+00*z3*z4*z2+3.0809393859665595e+00*z3*z4*(z1*z1)*z2; b[108] = -1.0269797953221864e+00*z3*z0*z4+3.0809393859665595e+00*z3*z0*z4*(z2*z2); b[109] = -1.0269797953221864e+00*z3*z4*z1+3.0809393859665595e+00*z3*z4*z1*(z2*z2); b[110] = 3.0809393859665595e+00*(z3*z3)*z0*z4*z1+-1.0269797953221864e+00*z0*z4*z1; b[111] = 3.0809393859665595e+00*(z3*z3)*z0*z4*z2+-1.0269797953221864e+00*z0*z4*z2; b[112] = 3.0809393859665595e+00*(z3*z3)*z4*z1*z2+-1.0269797953221864e+00*z4*z1*z2; b[113] = 3.0809393859665595e+00*z0*(z4*z4)*z1*z2+-1.0269797953221864e+00*z0*z1*z2; b[114] = -1.0269797953221864e+00*z3*z0*z1+3.0809393859665595e+00*z3*z0*(z4*z4)*z1; b[115] = 3.0809393859665595e+00*z3*z0*(z4*z4)*z2+-1.0269797953221864e+00*z3*z0*z2; b[116] = -1.0269797953221864e+00*z3*z1*z2+3.0809393859665595e+00*z3*(z4*z4)*z1*z2; b[117] = -1.1481983169296148e+00*(z0*z0)*z2+3.8273277230987157e-01*z2+3.4445949507888440e+00*(z0*z0)*(z1*z1)*z2+-1.1481983169296148e+00*(z1*z1)*z2; b[118] = 3.4445949507888440e+00*(z0*z0)*z1*(z2*z2)+3.8273277230987157e-01*z1+-1.1481983169296148e+00*z1*(z2*z2)+-1.1481983169296148e+00*(z0*z0)*z1; b[119] = 3.4445949507888440e+00*z0*(z1*z1)*(z2*z2)+-1.1481983169296148e+00*z0*(z1*z1)+3.8273277230987157e-01*z0+-1.1481983169296148e+00*z0*(z2*z2); b[120] = 3.8273277230987157e-01*z3+-1.1481983169296148e+00*z3*(z1*z1)+3.4445949507888440e+00*z3*(z0*z0)*(z1*z1)+-1.1481983169296148e+00*z3*(z0*z0); b[121] = 3.8273277230987157e-01*z3+3.4445949507888440e+00*z3*(z0*z0)*(z2*z2)+-1.1481983169296148e+00*z3*(z0*z0)+-1.1481983169296148e+00*z3*(z2*z2); b[122] = 3.8273277230987157e-01*z3+-1.1481983169296148e+00*z3*(z1*z1)+-1.1481983169296148e+00*z3*(z2*z2)+3.4445949507888440e+00*z3*(z1*z1)*(z2*z2); b[123] = 3.4445949507888440e+00*(z3*z3)*(z0*z0)*z1+3.8273277230987157e-01*z1+-1.1481983169296148e+00*(z0*z0)*z1+-1.1481983169296148e+00*(z3*z3)*z1; b[124] = -1.1481983169296148e+00*(z3*z3)*z0+-1.1481983169296148e+00*z0*(z1*z1)+3.8273277230987157e-01*z0+3.4445949507888440e+00*(z3*z3)*z0*(z1*z1); b[125] = -1.1481983169296148e+00*(z0*z0)*z2+-1.1481983169296148e+00*(z3*z3)*z2+3.4445949507888440e+00*(z3*z3)*(z0*z0)*z2+3.8273277230987157e-01*z2; b[126] = 3.4445949507888440e+00*(z3*z3)*(z1*z1)*z2+-1.1481983169296148e+00*(z3*z3)*z2+3.8273277230987157e-01*z2+-1.1481983169296148e+00*(z1*z1)*z2; b[127] = 3.4445949507888440e+00*(z3*z3)*z0*(z2*z2)+-1.1481983169296148e+00*(z3*z3)*z0+3.8273277230987157e-01*z0+-1.1481983169296148e+00*z0*(z2*z2); b[128] = 3.8273277230987157e-01*z1+-1.1481983169296148e+00*z1*(z2*z2)+3.4445949507888440e+00*(z3*z3)*z1*(z2*z2)+-1.1481983169296148e+00*(z3*z3)*z1; b[129] = -1.1481983169296148e+00*z4*(z1*z1)+3.8273277230987157e-01*z4+3.4445949507888440e+00*(z0*z0)*z4*(z1*z1)+-1.1481983169296148e+00*(z0*z0)*z4; b[130] = 3.8273277230987157e-01*z4+-1.1481983169296148e+00*z4*(z2*z2)+3.4445949507888440e+00*(z0*z0)*z4*(z2*z2)+-1.1481983169296148e+00*(z0*z0)*z4; b[131] = -1.1481983169296148e+00*z4*(z1*z1)+3.8273277230987157e-01*z4+3.4445949507888440e+00*z4*(z1*z1)*(z2*z2)+-1.1481983169296148e+00*z4*(z2*z2); b[132] = 3.4445949507888440e+00*(z3*z3)*(z0*z0)*z4+3.8273277230987157e-01*z4+-1.1481983169296148e+00*(z3*z3)*z4+-1.1481983169296148e+00*(z0*z0)*z4; b[133] = -1.1481983169296148e+00*z4*(z1*z1)+3.8273277230987157e-01*z4+-1.1481983169296148e+00*(z3*z3)*z4+3.4445949507888440e+00*(z3*z3)*z4*(z1*z1); b[134] = 3.4445949507888440e+00*(z3*z3)*z4*(z2*z2)+3.8273277230987157e-01*z4+-1.1481983169296148e+00*z4*(z2*z2)+-1.1481983169296148e+00*(z3*z3)*z4; b[135] = 3.8273277230987157e-01*z1+-1.1481983169296148e+00*(z0*z0)*z1+-1.1481983169296148e+00*(z4*z4)*z1+3.4445949507888440e+00*(z0*z0)*(z4*z4)*z1; b[136] = -1.1481983169296148e+00*z0*(z1*z1)+3.8273277230987157e-01*z0+3.4445949507888440e+00*z0*(z4*z4)*(z1*z1)+-1.1481983169296148e+00*z0*(z4*z4); b[137] = -1.1481983169296148e+00*(z4*z4)*z2+-1.1481983169296148e+00*(z0*z0)*z2+3.4445949507888440e+00*(z0*z0)*(z4*z4)*z2+3.8273277230987157e-01*z2; b[138] = -1.1481983169296148e+00*(z4*z4)*z2+3.8273277230987157e-01*z2+3.4445949507888440e+00*(z4*z4)*(z1*z1)*z2+-1.1481983169296148e+00*(z1*z1)*z2; b[139] = 3.8273277230987157e-01*z0+-1.1481983169296148e+00*z0*(z4*z4)+-1.1481983169296148e+00*z0*(z2*z2)+3.4445949507888440e+00*z0*(z4*z4)*(z2*z2); b[140] = 3.4445949507888440e+00*(z4*z4)*z1*(z2*z2)+3.8273277230987157e-01*z1+-1.1481983169296148e+00*z1*(z2*z2)+-1.1481983169296148e+00*(z4*z4)*z1; b[141] = 3.8273277230987157e-01*z3+-1.1481983169296148e+00*z3*(z4*z4)+-1.1481983169296148e+00*z3*(z0*z0)+3.4445949507888440e+00*z3*(z0*z0)*(z4*z4); b[142] = 3.8273277230987157e-01*z3+-1.1481983169296148e+00*z3*(z4*z4)+-1.1481983169296148e+00*z3*(z1*z1)+3.4445949507888440e+00*z3*(z4*z4)*(z1*z1); b[143] = 3.8273277230987157e-01*z3+3.4445949507888440e+00*z3*(z4*z4)*(z2*z2)+-1.1481983169296148e+00*z3*(z4*z4)+-1.1481983169296148e+00*z3*(z2*z2); b[144] = -1.1481983169296148e+00*(z3*z3)*z0+3.8273277230987157e-01*z0+-1.1481983169296148e+00*z0*(z4*z4)+3.4445949507888440e+00*(z3*z3)*z0*(z4*z4); b[145] = 3.4445949507888440e+00*(z3*z3)*(z4*z4)*z1+3.8273277230987157e-01*z1+-1.1481983169296148e+00*(z4*z4)*z1+-1.1481983169296148e+00*(z3*z3)*z1; b[146] = -1.1481983169296148e+00*(z4*z4)*z2+-1.1481983169296148e+00*(z3*z3)*z2+3.4445949507888440e+00*(z3*z3)*(z4*z4)*z2+3.8273277230987157e-01*z2; b[147] = -1.7787811838447134e+00*z3*z4*z1*z2+5.3363435515341404e+00*z3*(z0*z0)*z4*z1*z2; b[148] = -1.7787811838447134e+00*z3*z0*z4*z2+5.3363435515341404e+00*z3*z0*z4*(z1*z1)*z2; b[149] = -1.7787811838447134e+00*z3*z0*z4*z1+5.3363435515341404e+00*z3*z0*z4*z1*(z2*z2); b[150] = 5.3363435515341404e+00*(z3*z3)*z0*z4*z1*z2+-1.7787811838447134e+00*z0*z4*z1*z2; b[151] = -1.7787811838447134e+00*z3*z0*z1*z2+5.3363435515341404e+00*z3*z0*(z4*z4)*z1*z2; b[152] = 5.9662134662614950e+00*z3*(z0*z0)*(z1*z1)*z2+-1.9887378220871650e+00*z3*(z0*z0)*z2+-1.9887378220871650e+00*z3*(z1*z1)*z2+6.6291260736238833e-01*z3*z2; b[153] = -1.9887378220871650e+00*z3*z1*(z2*z2)+6.6291260736238833e-01*z3*z1+5.9662134662614950e+00*z3*(z0*z0)*z1*(z2*z2)+-1.9887378220871650e+00*z3*(z0*z0)*z1; b[154] = -1.9887378220871650e+00*z3*z0*(z1*z1)+-1.9887378220871650e+00*z3*z0*(z2*z2)+5.9662134662614950e+00*z3*z0*(z1*z1)*(z2*z2)+6.6291260736238833e-01*z3*z0; b[155] = 6.6291260736238833e-01*z1*z2+5.9662134662614950e+00*(z3*z3)*(z0*z0)*z1*z2+-1.9887378220871650e+00*(z0*z0)*z1*z2+-1.9887378220871650e+00*(z3*z3)*z1*z2; b[156] = 5.9662134662614950e+00*(z3*z3)*z0*(z1*z1)*z2+-1.9887378220871650e+00*z0*(z1*z1)*z2+-1.9887378220871650e+00*(z3*z3)*z0*z2+6.6291260736238833e-01*z0*z2; b[157] = 6.6291260736238833e-01*z0*z1+5.9662134662614950e+00*(z3*z3)*z0*z1*(z2*z2)+-1.9887378220871650e+00*(z3*z3)*z0*z1+-1.9887378220871650e+00*z0*z1*(z2*z2); b[158] = -1.9887378220871650e+00*z4*(z1*z1)*z2+-1.9887378220871650e+00*(z0*z0)*z4*z2+5.9662134662614950e+00*(z0*z0)*z4*(z1*z1)*z2+6.6291260736238833e-01*z4*z2; b[159] = -1.9887378220871650e+00*(z0*z0)*z4*z1+5.9662134662614950e+00*(z0*z0)*z4*z1*(z2*z2)+6.6291260736238833e-01*z4*z1+-1.9887378220871650e+00*z4*z1*(z2*z2); b[160] = 6.6291260736238833e-01*z0*z4+-1.9887378220871650e+00*z0*z4*(z2*z2)+5.9662134662614950e+00*z0*z4*(z1*z1)*(z2*z2)+-1.9887378220871650e+00*z0*z4*(z1*z1); b[161] = -1.9887378220871650e+00*z3*z4*(z1*z1)+6.6291260736238833e-01*z3*z4+-1.9887378220871650e+00*z3*(z0*z0)*z4+5.9662134662614950e+00*z3*(z0*z0)*z4*(z1*z1); b[162] = 5.9662134662614950e+00*z3*(z0*z0)*z4*(z2*z2)+6.6291260736238833e-01*z3*z4+-1.9887378220871650e+00*z3*(z0*z0)*z4+-1.9887378220871650e+00*z3*z4*(z2*z2); b[163] = -1.9887378220871650e+00*z3*z4*(z1*z1)+6.6291260736238833e-01*z3*z4+5.9662134662614950e+00*z3*z4*(z1*z1)*(z2*z2)+-1.9887378220871650e+00*z3*z4*(z2*z2); b[164] = -1.9887378220871650e+00*(z0*z0)*z4*z1+6.6291260736238833e-01*z4*z1+5.9662134662614950e+00*(z3*z3)*(z0*z0)*z4*z1+-1.9887378220871650e+00*(z3*z3)*z4*z1; b[165] = 6.6291260736238833e-01*z0*z4+-1.9887378220871650e+00*(z3*z3)*z0*z4+-1.9887378220871650e+00*z0*z4*(z1*z1)+5.9662134662614950e+00*(z3*z3)*z0*z4*(z1*z1); b[166] = -1.9887378220871650e+00*(z3*z3)*z4*z2+-1.9887378220871650e+00*(z0*z0)*z4*z2+5.9662134662614950e+00*(z3*z3)*(z0*z0)*z4*z2+6.6291260736238833e-01*z4*z2; b[167] = -1.9887378220871650e+00*z4*(z1*z1)*z2+-1.9887378220871650e+00*(z3*z3)*z4*z2+5.9662134662614950e+00*(z3*z3)*z4*(z1*z1)*z2+6.6291260736238833e-01*z4*z2; b[168] = 6.6291260736238833e-01*z0*z4+-1.9887378220871650e+00*z0*z4*(z2*z2)+5.9662134662614950e+00*(z3*z3)*z0*z4*(z2*z2)+-1.9887378220871650e+00*(z3*z3)*z0*z4; b[169] = 6.6291260736238833e-01*z4*z1+-1.9887378220871650e+00*z4*z1*(z2*z2)+-1.9887378220871650e+00*(z3*z3)*z4*z1+5.9662134662614950e+00*(z3*z3)*z4*z1*(z2*z2); b[170] = 6.6291260736238833e-01*z1*z2+-1.9887378220871650e+00*(z4*z4)*z1*z2+-1.9887378220871650e+00*(z0*z0)*z1*z2+5.9662134662614950e+00*(z0*z0)*(z4*z4)*z1*z2; b[171] = -1.9887378220871650e+00*z0*(z1*z1)*z2+-1.9887378220871650e+00*z0*(z4*z4)*z2+6.6291260736238833e-01*z0*z2+5.9662134662614950e+00*z0*(z4*z4)*(z1*z1)*z2; b[172] = -1.9887378220871650e+00*z0*(z4*z4)*z1+6.6291260736238833e-01*z0*z1+5.9662134662614950e+00*z0*(z4*z4)*z1*(z2*z2)+-1.9887378220871650e+00*z0*z1*(z2*z2); b[173] = 5.9662134662614950e+00*z3*(z0*z0)*(z4*z4)*z1+6.6291260736238833e-01*z3*z1+-1.9887378220871650e+00*z3*(z4*z4)*z1+-1.9887378220871650e+00*z3*(z0*z0)*z1; b[174] = -1.9887378220871650e+00*z3*z0*(z4*z4)+-1.9887378220871650e+00*z3*z0*(z1*z1)+5.9662134662614950e+00*z3*z0*(z4*z4)*(z1*z1)+6.6291260736238833e-01*z3*z0; b[175] = -1.9887378220871650e+00*z3*(z0*z0)*z2+-1.9887378220871650e+00*z3*(z4*z4)*z2+5.9662134662614950e+00*z3*(z0*z0)*(z4*z4)*z2+6.6291260736238833e-01*z3*z2; b[176] = 5.9662134662614950e+00*z3*(z4*z4)*(z1*z1)*z2+-1.9887378220871650e+00*z3*(z4*z4)*z2+-1.9887378220871650e+00*z3*(z1*z1)*z2+6.6291260736238833e-01*z3*z2; b[177] = 5.9662134662614950e+00*z3*z0*(z4*z4)*(z2*z2)+-1.9887378220871650e+00*z3*z0*(z4*z4)+-1.9887378220871650e+00*z3*z0*(z2*z2)+6.6291260736238833e-01*z3*z0; b[178] = -1.9887378220871650e+00*z3*z1*(z2*z2)+6.6291260736238833e-01*z3*z1+5.9662134662614950e+00*z3*(z4*z4)*z1*(z2*z2)+-1.9887378220871650e+00*z3*(z4*z4)*z1; b[179] = -1.9887378220871650e+00*z0*(z4*z4)*z1+5.9662134662614950e+00*(z3*z3)*z0*(z4*z4)*z1+6.6291260736238833e-01*z0*z1+-1.9887378220871650e+00*(z3*z3)*z0*z1; b[180] = -1.9887378220871650e+00*(z3*z3)*z0*z2+-1.9887378220871650e+00*z0*(z4*z4)*z2+6.6291260736238833e-01*z0*z2+5.9662134662614950e+00*(z3*z3)*z0*(z4*z4)*z2; b[181] = 6.6291260736238833e-01*z1*z2+-1.9887378220871650e+00*(z4*z4)*z1*z2+5.9662134662614950e+00*(z3*z3)*(z4*z4)*z1*z2+-1.9887378220871650e+00*(z3*z3)*z1*z2; b[182] = 7.4115882660196386e-01*(z2*z2)+-2.2234764798058917e+00*(z0*z0)*(z2*z2)+7.4115882660196386e-01*(z0*z0)+-2.2234764798058917e+00*(z1*z1)*(z2*z2)+7.4115882660196386e-01*(z1*z1)+6.6704294394176751e+00*(z0*z0)*(z1*z1)*(z2*z2)+-2.2234764798058917e+00*(z0*z0)*(z1*z1)-2.4705294220065463e-01; b[183] = 6.6704294394176751e+00*(z3*z3)*(z0*z0)*(z1*z1)+7.4115882660196386e-01*(z0*z0)+7.4115882660196386e-01*(z3*z3)+-2.2234764798058917e+00*(z3*z3)*(z0*z0)+-2.2234764798058917e+00*(z3*z3)*(z1*z1)+7.4115882660196386e-01*(z1*z1)+-2.2234764798058917e+00*(z0*z0)*(z1*z1)-2.4705294220065463e-01; b[184] = 7.4115882660196386e-01*(z2*z2)+-2.2234764798058917e+00*(z3*z3)*(z2*z2)+-2.2234764798058917e+00*(z0*z0)*(z2*z2)+7.4115882660196386e-01*(z0*z0)+7.4115882660196386e-01*(z3*z3)+-2.2234764798058917e+00*(z3*z3)*(z0*z0)+6.6704294394176751e+00*(z3*z3)*(z0*z0)*(z2*z2)-2.4705294220065463e-01; b[185] = 7.4115882660196386e-01*(z2*z2)+-2.2234764798058917e+00*(z3*z3)*(z2*z2)+6.6704294394176751e+00*(z3*z3)*(z1*z1)*(z2*z2)+7.4115882660196386e-01*(z3*z3)+-2.2234764798058917e+00*(z3*z3)*(z1*z1)+-2.2234764798058917e+00*(z1*z1)*(z2*z2)+7.4115882660196386e-01*(z1*z1)-2.4705294220065463e-01; b[186] = 7.4115882660196386e-01*(z0*z0)+-2.2234764798058917e+00*(z0*z0)*(z4*z4)+6.6704294394176751e+00*(z0*z0)*(z4*z4)*(z1*z1)+7.4115882660196386e-01*(z1*z1)+-2.2234764798058917e+00*(z4*z4)*(z1*z1)+7.4115882660196386e-01*(z4*z4)+-2.2234764798058917e+00*(z0*z0)*(z1*z1)-2.4705294220065463e-01; b[187] = 7.4115882660196386e-01*(z2*z2)+6.6704294394176751e+00*(z0*z0)*(z4*z4)*(z2*z2)+-2.2234764798058917e+00*(z0*z0)*(z2*z2)+7.4115882660196386e-01*(z0*z0)+-2.2234764798058917e+00*(z4*z4)*(z2*z2)+-2.2234764798058917e+00*(z0*z0)*(z4*z4)+7.4115882660196386e-01*(z4*z4)-2.4705294220065463e-01; b[188] = 7.4115882660196386e-01*(z2*z2)+-2.2234764798058917e+00*(z4*z4)*(z2*z2)+-2.2234764798058917e+00*(z1*z1)*(z2*z2)+6.6704294394176751e+00*(z4*z4)*(z1*z1)*(z2*z2)+7.4115882660196386e-01*(z1*z1)+-2.2234764798058917e+00*(z4*z4)*(z1*z1)+7.4115882660196386e-01*(z4*z4)-2.4705294220065463e-01; b[189] = 6.6704294394176751e+00*(z3*z3)*(z0*z0)*(z4*z4)+7.4115882660196386e-01*(z0*z0)+7.4115882660196386e-01*(z3*z3)+-2.2234764798058917e+00*(z3*z3)*(z0*z0)+-2.2234764798058917e+00*(z0*z0)*(z4*z4)+7.4115882660196386e-01*(z4*z4)+-2.2234764798058917e+00*(z3*z3)*(z4*z4)-2.4705294220065463e-01; b[190] = 7.4115882660196386e-01*(z3*z3)+6.6704294394176751e+00*(z3*z3)*(z4*z4)*(z1*z1)+-2.2234764798058917e+00*(z3*z3)*(z1*z1)+7.4115882660196386e-01*(z1*z1)+-2.2234764798058917e+00*(z4*z4)*(z1*z1)+7.4115882660196386e-01*(z4*z4)+-2.2234764798058917e+00*(z3*z3)*(z4*z4)-2.4705294220065463e-01; b[191] = 7.4115882660196386e-01*(z2*z2)+-2.2234764798058917e+00*(z3*z3)*(z2*z2)+7.4115882660196386e-01*(z3*z3)+-2.2234764798058917e+00*(z4*z4)*(z2*z2)+7.4115882660196386e-01*(z4*z4)+6.6704294394176751e+00*(z3*z3)*(z4*z4)*(z2*z2)+-2.2234764798058917e+00*(z3*z3)*(z4*z4)-2.4705294220065463e-01; b[192] = -3.4445949507888440e+00*z3*(z0*z0)*z4*z2+1.0333784852366533e+01*z3*(z0*z0)*z4*(z1*z1)*z2+1.1481983169296148e+00*z3*z4*z2+-3.4445949507888440e+00*z3*z4*(z1*z1)*z2; b[193] = 1.1481983169296148e+00*z3*z4*z1+-3.4445949507888440e+00*z3*z4*z1*(z2*z2)+-3.4445949507888440e+00*z3*(z0*z0)*z4*z1+1.0333784852366533e+01*z3*(z0*z0)*z4*z1*(z2*z2); b[194] = -3.4445949507888440e+00*z3*z0*z4*(z1*z1)+1.1481983169296148e+00*z3*z0*z4+1.0333784852366533e+01*z3*z0*z4*(z1*z1)*(z2*z2)+-3.4445949507888440e+00*z3*z0*z4*(z2*z2); b[195] = -3.4445949507888440e+00*(z0*z0)*z4*z1*z2+-3.4445949507888440e+00*(z3*z3)*z4*z1*z2+1.0333784852366533e+01*(z3*z3)*(z0*z0)*z4*z1*z2+1.1481983169296148e+00*z4*z1*z2; b[196] = -3.4445949507888440e+00*(z3*z3)*z0*z4*z2+-3.4445949507888440e+00*z0*z4*(z1*z1)*z2+1.1481983169296148e+00*z0*z4*z2+1.0333784852366533e+01*(z3*z3)*z0*z4*(z1*z1)*z2; b[197] = 1.0333784852366533e+01*(z3*z3)*z0*z4*z1*(z2*z2)+-3.4445949507888440e+00*z0*z4*z1*(z2*z2)+-3.4445949507888440e+00*(z3*z3)*z0*z4*z1+1.1481983169296148e+00*z0*z4*z1; b[198] = 1.0333784852366533e+01*z3*(z0*z0)*(z4*z4)*z1*z2+1.1481983169296148e+00*z3*z1*z2+-3.4445949507888440e+00*z3*(z0*z0)*z1*z2+-3.4445949507888440e+00*z3*(z4*z4)*z1*z2; b[199] = 1.0333784852366533e+01*z3*z0*(z4*z4)*(z1*z1)*z2+-3.4445949507888440e+00*z3*z0*(z4*z4)*z2+-3.4445949507888440e+00*z3*z0*(z1*z1)*z2+1.1481983169296148e+00*z3*z0*z2; b[200] = -3.4445949507888440e+00*z3*z0*z1*(z2*z2)+1.1481983169296148e+00*z3*z0*z1+1.0333784852366533e+01*z3*z0*(z4*z4)*z1*(z2*z2)+-3.4445949507888440e+00*z3*z0*(z4*z4)*z1; b[201] = -3.4445949507888440e+00*z0*(z4*z4)*z1*z2+1.1481983169296148e+00*z0*z1*z2+-3.4445949507888440e+00*(z3*z3)*z0*z1*z2+1.0333784852366533e+01*(z3*z3)*z0*(z4*z4)*z1*z2; b[202] = -4.2790824805091104e-01*z3+-3.8511742324581992e+00*z3*(z0*z0)*(z2*z2)+1.1553522697374598e+01*z3*(z0*z0)*(z1*z1)*(z2*z2)+1.2837247441527331e+00*z3*(z1*z1)+-3.8511742324581992e+00*z3*(z0*z0)*(z1*z1)+1.2837247441527331e+00*z3*(z0*z0)+1.2837247441527331e+00*z3*(z2*z2)+-3.8511742324581992e+00*z3*(z1*z1)*(z2*z2); b[203] = 1.2837247441527331e+00*(z0*z0)*z2+-3.8511742324581992e+00*(z3*z3)*(z1*z1)*z2+1.2837247441527331e+00*(z3*z3)*z2+-3.8511742324581992e+00*(z3*z3)*(z0*z0)*z2+-4.2790824805091104e-01*z2+-3.8511742324581992e+00*(z0*z0)*(z1*z1)*z2+1.1553522697374598e+01*(z3*z3)*(z0*z0)*(z1*z1)*z2+1.2837247441527331e+00*(z1*z1)*z2; b[204] = -3.8511742324581992e+00*(z0*z0)*z1*(z2*z2)+-3.8511742324581992e+00*(z3*z3)*(z0*z0)*z1+1.1553522697374598e+01*(z3*z3)*(z0*z0)*z1*(z2*z2)+-4.2790824805091104e-01*z1+1.2837247441527331e+00*z1*(z2*z2)+1.2837247441527331e+00*(z0*z0)*z1+-3.8511742324581992e+00*(z3*z3)*z1*(z2*z2)+1.2837247441527331e+00*(z3*z3)*z1; b[205] = -3.8511742324581992e+00*z0*(z1*z1)*(z2*z2)+-3.8511742324581992e+00*(z3*z3)*z0*(z2*z2)+1.2837247441527331e+00*(z3*z3)*z0+1.2837247441527331e+00*z0*(z1*z1)+-4.2790824805091104e-01*z0+1.1553522697374598e+01*(z3*z3)*z0*(z1*z1)*(z2*z2)+-3.8511742324581992e+00*(z3*z3)*z0*(z1*z1)+1.2837247441527331e+00*z0*(z2*z2); b[206] = 1.2837247441527331e+00*z4*(z1*z1)+-4.2790824805091104e-01*z4+-3.8511742324581992e+00*z4*(z1*z1)*(z2*z2)+-3.8511742324581992e+00*(z0*z0)*z4*(z1*z1)+1.2837247441527331e+00*z4*(z2*z2)+1.1553522697374598e+01*(z0*z0)*z4*(z1*z1)*(z2*z2)+-3.8511742324581992e+00*(z0*z0)*z4*(z2*z2)+1.2837247441527331e+00*(z0*z0)*z4; b[207] = 1.1553522697374598e+01*(z3*z3)*(z0*z0)*z4*(z1*z1)+1.2837247441527331e+00*z4*(z1*z1)+-3.8511742324581992e+00*(z3*z3)*(z0*z0)*z4+-4.2790824805091104e-01*z4+-3.8511742324581992e+00*(z0*z0)*z4*(z1*z1)+1.2837247441527331e+00*(z3*z3)*z4+-3.8511742324581992e+00*(z3*z3)*z4*(z1*z1)+1.2837247441527331e+00*(z0*z0)*z4; b[208] = -3.8511742324581992e+00*(z3*z3)*z4*(z2*z2)+-3.8511742324581992e+00*(z3*z3)*(z0*z0)*z4+-4.2790824805091104e-01*z4+1.2837247441527331e+00*z4*(z2*z2)+1.2837247441527331e+00*(z3*z3)*z4+1.1553522697374598e+01*(z3*z3)*(z0*z0)*z4*(z2*z2)+-3.8511742324581992e+00*(z0*z0)*z4*(z2*z2)+1.2837247441527331e+00*(z0*z0)*z4; b[209] = 1.1553522697374598e+01*(z3*z3)*z4*(z1*z1)*(z2*z2)+1.2837247441527331e+00*z4*(z1*z1)+-3.8511742324581992e+00*(z3*z3)*z4*(z2*z2)+-4.2790824805091104e-01*z4+-3.8511742324581992e+00*z4*(z1*z1)*(z2*z2)+1.2837247441527331e+00*z4*(z2*z2)+1.2837247441527331e+00*(z3*z3)*z4+-3.8511742324581992e+00*(z3*z3)*z4*(z1*z1); b[210] = 1.2837247441527331e+00*(z4*z4)*z2+1.2837247441527331e+00*(z0*z0)*z2+-3.8511742324581992e+00*(z0*z0)*(z4*z4)*z2+1.1553522697374598e+01*(z0*z0)*(z4*z4)*(z1*z1)*z2+-4.2790824805091104e-01*z2+-3.8511742324581992e+00*(z0*z0)*(z1*z1)*z2+-3.8511742324581992e+00*(z4*z4)*(z1*z1)*z2+1.2837247441527331e+00*(z1*z1)*z2; b[211] = -3.8511742324581992e+00*(z0*z0)*z1*(z2*z2)+-3.8511742324581992e+00*(z4*z4)*z1*(z2*z2)+-4.2790824805091104e-01*z1+1.2837247441527331e+00*z1*(z2*z2)+1.2837247441527331e+00*(z0*z0)*z1+1.2837247441527331e+00*(z4*z4)*z1+-3.8511742324581992e+00*(z0*z0)*(z4*z4)*z1+1.1553522697374598e+01*(z0*z0)*(z4*z4)*z1*(z2*z2); b[212] = -3.8511742324581992e+00*z0*(z1*z1)*(z2*z2)+1.2837247441527331e+00*z0*(z1*z1)+-4.2790824805091104e-01*z0+-3.8511742324581992e+00*z0*(z4*z4)*(z1*z1)+1.2837247441527331e+00*z0*(z4*z4)+1.1553522697374598e+01*z0*(z4*z4)*(z1*z1)*(z2*z2)+1.2837247441527331e+00*z0*(z2*z2)+-3.8511742324581992e+00*z0*(z4*z4)*(z2*z2); b[213] = -4.2790824805091104e-01*z3+1.2837247441527331e+00*z3*(z4*z4)+1.2837247441527331e+00*z3*(z1*z1)+1.1553522697374598e+01*z3*(z0*z0)*(z4*z4)*(z1*z1)+-3.8511742324581992e+00*z3*(z0*z0)*(z1*z1)+1.2837247441527331e+00*z3*(z0*z0)+-3.8511742324581992e+00*z3*(z4*z4)*(z1*z1)+-3.8511742324581992e+00*z3*(z0*z0)*(z4*z4); b[214] = -4.2790824805091104e-01*z3+-3.8511742324581992e+00*z3*(z4*z4)*(z2*z2)+1.2837247441527331e+00*z3*(z4*z4)+-3.8511742324581992e+00*z3*(z0*z0)*(z2*z2)+1.2837247441527331e+00*z3*(z0*z0)+1.2837247441527331e+00*z3*(z2*z2)+1.1553522697374598e+01*z3*(z0*z0)*(z4*z4)*(z2*z2)+-3.8511742324581992e+00*z3*(z0*z0)*(z4*z4); b[215] = -4.2790824805091104e-01*z3+-3.8511742324581992e+00*z3*(z4*z4)*(z2*z2)+1.2837247441527331e+00*z3*(z4*z4)+1.1553522697374598e+01*z3*(z4*z4)*(z1*z1)*(z2*z2)+1.2837247441527331e+00*z3*(z1*z1)+-3.8511742324581992e+00*z3*(z4*z4)*(z1*z1)+1.2837247441527331e+00*z3*(z2*z2)+-3.8511742324581992e+00*z3*(z1*z1)*(z2*z2); b[216] = -3.8511742324581992e+00*(z3*z3)*(z4*z4)*z1+-3.8511742324581992e+00*(z3*z3)*(z0*z0)*z1+-4.2790824805091104e-01*z1+1.2837247441527331e+00*(z0*z0)*z1+1.1553522697374598e+01*(z3*z3)*(z0*z0)*(z4*z4)*z1+1.2837247441527331e+00*(z4*z4)*z1+-3.8511742324581992e+00*(z0*z0)*(z4*z4)*z1+1.2837247441527331e+00*(z3*z3)*z1; b[217] = 1.2837247441527331e+00*(z3*z3)*z0+1.2837247441527331e+00*z0*(z1*z1)+-4.2790824805091104e-01*z0+1.1553522697374598e+01*(z3*z3)*z0*(z4*z4)*(z1*z1)+-3.8511742324581992e+00*z0*(z4*z4)*(z1*z1)+1.2837247441527331e+00*z0*(z4*z4)+-3.8511742324581992e+00*(z3*z3)*z0*(z1*z1)+-3.8511742324581992e+00*(z3*z3)*z0*(z4*z4); b[218] = 1.2837247441527331e+00*(z4*z4)*z2+1.2837247441527331e+00*(z0*z0)*z2+1.1553522697374598e+01*(z3*z3)*(z0*z0)*(z4*z4)*z2+-3.8511742324581992e+00*(z0*z0)*(z4*z4)*z2+1.2837247441527331e+00*(z3*z3)*z2+-3.8511742324581992e+00*(z3*z3)*(z0*z0)*z2+-3.8511742324581992e+00*(z3*z3)*(z4*z4)*z2+-4.2790824805091104e-01*z2; b[219] = 1.2837247441527331e+00*(z4*z4)*z2+-3.8511742324581992e+00*(z3*z3)*(z1*z1)*z2+1.2837247441527331e+00*(z3*z3)*z2+1.1553522697374598e+01*(z3*z3)*(z4*z4)*(z1*z1)*z2+-3.8511742324581992e+00*(z3*z3)*(z4*z4)*z2+-4.2790824805091104e-01*z2+-3.8511742324581992e+00*(z4*z4)*(z1*z1)*z2+1.2837247441527331e+00*(z1*z1)*z2; b[220] = -3.8511742324581992e+00*(z3*z3)*z0*(z2*z2)+1.2837247441527331e+00*(z3*z3)*z0+-4.2790824805091104e-01*z0+1.2837247441527331e+00*z0*(z4*z4)+1.1553522697374598e+01*(z3*z3)*z0*(z4*z4)*(z2*z2)+1.2837247441527331e+00*z0*(z2*z2)+-3.8511742324581992e+00*(z3*z3)*z0*(z4*z4)+-3.8511742324581992e+00*z0*(z4*z4)*(z2*z2); b[221] = -3.8511742324581992e+00*(z3*z3)*(z4*z4)*z1+1.1553522697374598e+01*(z3*z3)*(z4*z4)*z1*(z2*z2)+-3.8511742324581992e+00*(z4*z4)*z1*(z2*z2)+-4.2790824805091104e-01*z1+1.2837247441527331e+00*z1*(z2*z2)+1.2837247441527331e+00*(z4*z4)*z1+-3.8511742324581992e+00*(z3*z3)*z1*(z2*z2)+1.2837247441527331e+00*(z3*z3)*z1; b[222] = 2.0011288318253026e+01*z3*(z0*z0)*z4*(z1*z1)*(z2*z2)+-6.6704294394176751e+00*z3*(z0*z0)*z4*(z2*z2)+2.2234764798058917e+00*z3*z4*(z1*z1)+-7.4115882660196386e-01*z3*z4+2.2234764798058917e+00*z3*(z0*z0)*z4+-6.6704294394176751e+00*z3*z4*(z1*z1)*(z2*z2)+-6.6704294394176751e+00*z3*(z0*z0)*z4*(z1*z1)+2.2234764798058917e+00*z3*z4*(z2*z2); b[223] = 2.2234764798058917e+00*z4*(z1*z1)*z2+2.2234764798058917e+00*(z3*z3)*z4*z2+2.0011288318253026e+01*(z3*z3)*(z0*z0)*z4*(z1*z1)*z2+-6.6704294394176751e+00*(z3*z3)*z4*(z1*z1)*z2+2.2234764798058917e+00*(z0*z0)*z4*z2+-6.6704294394176751e+00*(z0*z0)*z4*(z1*z1)*z2+-6.6704294394176751e+00*(z3*z3)*(z0*z0)*z4*z2+-7.4115882660196386e-01*z4*z2; b[224] = 2.2234764798058917e+00*(z0*z0)*z4*z1+-6.6704294394176751e+00*(z0*z0)*z4*z1*(z2*z2)+-7.4115882660196386e-01*z4*z1+-6.6704294394176751e+00*(z3*z3)*(z0*z0)*z4*z1+2.2234764798058917e+00*z4*z1*(z2*z2)+2.0011288318253026e+01*(z3*z3)*(z0*z0)*z4*z1*(z2*z2)+2.2234764798058917e+00*(z3*z3)*z4*z1+-6.6704294394176751e+00*(z3*z3)*z4*z1*(z2*z2); b[225] = -7.4115882660196386e-01*z0*z4+2.2234764798058917e+00*z0*z4*(z2*z2)+-6.6704294394176751e+00*z0*z4*(z1*z1)*(z2*z2)+-6.6704294394176751e+00*(z3*z3)*z0*z4*(z2*z2)+2.2234764798058917e+00*(z3*z3)*z0*z4+2.2234764798058917e+00*z0*z4*(z1*z1)+2.0011288318253026e+01*(z3*z3)*z0*z4*(z1*z1)*(z2*z2)+-6.6704294394176751e+00*(z3*z3)*z0*z4*(z1*z1); b[226] = -6.6704294394176751e+00*z3*(z4*z4)*(z1*z1)*z2+-6.6704294394176751e+00*z3*(z0*z0)*(z1*z1)*z2+2.2234764798058917e+00*z3*(z0*z0)*z2+2.2234764798058917e+00*z3*(z4*z4)*z2+2.2234764798058917e+00*z3*(z1*z1)*z2+-6.6704294394176751e+00*z3*(z0*z0)*(z4*z4)*z2+2.0011288318253026e+01*z3*(z0*z0)*(z4*z4)*(z1*z1)*z2+-7.4115882660196386e-01*z3*z2; b[227] = -6.6704294394176751e+00*z3*(z0*z0)*(z4*z4)*z1+2.2234764798058917e+00*z3*z1*(z2*z2)+-7.4115882660196386e-01*z3*z1+2.0011288318253026e+01*z3*(z0*z0)*(z4*z4)*z1*(z2*z2)+-6.6704294394176751e+00*z3*(z4*z4)*z1*(z2*z2)+-6.6704294394176751e+00*z3*(z0*z0)*z1*(z2*z2)+2.2234764798058917e+00*z3*(z4*z4)*z1+2.2234764798058917e+00*z3*(z0*z0)*z1; b[228] = -6.6704294394176751e+00*z3*z0*(z4*z4)*(z2*z2)+2.2234764798058917e+00*z3*z0*(z4*z4)+2.0011288318253026e+01*z3*z0*(z4*z4)*(z1*z1)*(z2*z2)+2.2234764798058917e+00*z3*z0*(z1*z1)+-6.6704294394176751e+00*z3*z0*(z4*z4)*(z1*z1)+2.2234764798058917e+00*z3*z0*(z2*z2)+-6.6704294394176751e+00*z3*z0*(z1*z1)*(z2*z2)+-7.4115882660196386e-01*z3*z0; b[229] = -7.4115882660196386e-01*z1*z2+-6.6704294394176751e+00*(z3*z3)*(z0*z0)*z1*z2+2.2234764798058917e+00*(z4*z4)*z1*z2+-6.6704294394176751e+00*(z3*z3)*(z4*z4)*z1*z2+2.2234764798058917e+00*(z0*z0)*z1*z2+2.0011288318253026e+01*(z3*z3)*(z0*z0)*(z4*z4)*z1*z2+-6.6704294394176751e+00*(z0*z0)*(z4*z4)*z1*z2+2.2234764798058917e+00*(z3*z3)*z1*z2; b[230] = -6.6704294394176751e+00*(z3*z3)*z0*(z1*z1)*z2+2.0011288318253026e+01*(z3*z3)*z0*(z4*z4)*(z1*z1)*z2+2.2234764798058917e+00*z0*(z1*z1)*z2+2.2234764798058917e+00*(z3*z3)*z0*z2+2.2234764798058917e+00*z0*(z4*z4)*z2+-7.4115882660196386e-01*z0*z2+-6.6704294394176751e+00*z0*(z4*z4)*(z1*z1)*z2+-6.6704294394176751e+00*(z3*z3)*z0*(z4*z4)*z2; b[231] = 2.2234764798058917e+00*z0*(z4*z4)*z1+-6.6704294394176751e+00*(z3*z3)*z0*(z4*z4)*z1+-7.4115882660196386e-01*z0*z1+-6.6704294394176751e+00*z0*(z4*z4)*z1*(z2*z2)+-6.6704294394176751e+00*(z3*z3)*z0*z1*(z2*z2)+2.0011288318253026e+01*(z3*z3)*z0*(z4*z4)*z1*(z2*z2)+2.2234764798058917e+00*(z3*z3)*z0*z1+2.2234764798058917e+00*z0*z1*(z2*z2); b[232] = -8.2864075920298541e-01*(z2*z2)+2.4859222776089562e+00*(z3*z3)*(z2*z2)+-7.4577668328268683e+00*(z3*z3)*(z1*z1)*(z2*z2)+-7.4577668328268683e+00*(z3*z3)*(z0*z0)*(z1*z1)+2.4859222776089562e+00*(z0*z0)*(z2*z2)+-8.2864075920298541e-01*(z0*z0)+-8.2864075920298541e-01*(z3*z3)+2.4859222776089562e+00*(z3*z3)*(z0*z0)+2.4859222776089562e+00*(z3*z3)*(z1*z1)+2.4859222776089562e+00*(z1*z1)*(z2*z2)+-8.2864075920298541e-01*(z1*z1)+2.2373300498480607e+01*(z3*z3)*(z0*z0)*(z1*z1)*(z2*z2)+-7.4577668328268683e+00*(z0*z0)*(z1*z1)*(z2*z2)+-7.4577668328268683e+00*(z3*z3)*(z0*z0)*(z2*z2)+2.4859222776089562e+00*(z0*z0)*(z1*z1)+2.7621358640099514e-01; b[233] = 2.2373300498480607e+01*(z0*z0)*(z4*z4)*(z1*z1)*(z2*z2)+-8.2864075920298541e-01*(z2*z2)+-7.4577668328268683e+00*(z0*z0)*(z4*z4)*(z2*z2)+2.4859222776089562e+00*(z0*z0)*(z2*z2)+-8.2864075920298541e-01*(z0*z0)+2.4859222776089562e+00*(z4*z4)*(z2*z2)+2.4859222776089562e+00*(z0*z0)*(z4*z4)+-7.4577668328268683e+00*(z0*z0)*(z4*z4)*(z1*z1)+2.4859222776089562e+00*(z1*z1)*(z2*z2)+-7.4577668328268683e+00*(z4*z4)*(z1*z1)*(z2*z2)+-8.2864075920298541e-01*(z1*z1)+2.4859222776089562e+00*(z4*z4)*(z1*z1)+-8.2864075920298541e-01*(z4*z4)+-7.4577668328268683e+00*(z0*z0)*(z1*z1)*(z2*z2)+2.4859222776089562e+00*(z0*z0)*(z1*z1)+2.7621358640099514e-01; b[234] = -7.4577668328268683e+00*(z3*z3)*(z0*z0)*(z4*z4)+-7.4577668328268683e+00*(z3*z3)*(z0*z0)*(z1*z1)+-8.2864075920298541e-01*(z0*z0)+-8.2864075920298541e-01*(z3*z3)+2.4859222776089562e+00*(z3*z3)*(z0*z0)+-7.4577668328268683e+00*(z3*z3)*(z4*z4)*(z1*z1)+2.4859222776089562e+00*(z3*z3)*(z1*z1)+2.4859222776089562e+00*(z0*z0)*(z4*z4)+-7.4577668328268683e+00*(z0*z0)*(z4*z4)*(z1*z1)+-8.2864075920298541e-01*(z1*z1)+2.4859222776089562e+00*(z4*z4)*(z1*z1)+-8.2864075920298541e-01*(z4*z4)+2.2373300498480607e+01*(z3*z3)*(z0*z0)*(z4*z4)*(z1*z1)+2.4859222776089562e+00*(z0*z0)*(z1*z1)+2.4859222776089562e+00*(z3*z3)*(z4*z4)+2.7621358640099514e-01; b[235] = -8.2864075920298541e-01*(z2*z2)+2.4859222776089562e+00*(z3*z3)*(z2*z2)+-7.4577668328268683e+00*(z0*z0)*(z4*z4)*(z2*z2)+-7.4577668328268683e+00*(z3*z3)*(z0*z0)*(z4*z4)+2.2373300498480607e+01*(z3*z3)*(z0*z0)*(z4*z4)*(z2*z2)+2.4859222776089562e+00*(z0*z0)*(z2*z2)+-8.2864075920298541e-01*(z0*z0)+-8.2864075920298541e-01*(z3*z3)+2.4859222776089562e+00*(z4*z4)*(z2*z2)+2.4859222776089562e+00*(z3*z3)*(z0*z0)+2.4859222776089562e+00*(z0*z0)*(z4*z4)+-8.2864075920298541e-01*(z4*z4)+-7.4577668328268683e+00*(z3*z3)*(z4*z4)*(z2*z2)+-7.4577668328268683e+00*(z3*z3)*(z0*z0)*(z2*z2)+2.4859222776089562e+00*(z3*z3)*(z4*z4)+2.7621358640099514e-01; b[236] = -8.2864075920298541e-01*(z2*z2)+2.4859222776089562e+00*(z3*z3)*(z2*z2)+-7.4577668328268683e+00*(z3*z3)*(z1*z1)*(z2*z2)+-8.2864075920298541e-01*(z3*z3)+2.4859222776089562e+00*(z4*z4)*(z2*z2)+-7.4577668328268683e+00*(z3*z3)*(z4*z4)*(z1*z1)+2.4859222776089562e+00*(z3*z3)*(z1*z1)+2.4859222776089562e+00*(z1*z1)*(z2*z2)+-7.4577668328268683e+00*(z4*z4)*(z1*z1)*(z2*z2)+-8.2864075920298541e-01*(z1*z1)+2.4859222776089562e+00*(z4*z4)*(z1*z1)+-8.2864075920298541e-01*(z4*z4)+-7.4577668328268683e+00*(z3*z3)*(z4*z4)*(z2*z2)+2.2373300498480607e+01*(z3*z3)*(z4*z4)*(z1*z1)*(z2*z2)+2.4859222776089562e+00*(z3*z3)*(z4*z4)+2.7621358640099514e-01; b[237] = -1.2917231065458166e+01*(z3*z3)*(z0*z0)*z4*(z1*z1)+-1.2917231065458166e+01*(z3*z3)*z4*(z1*z1)*(z2*z2)+-1.4352478961620183e+00*z4*(z1*z1)+3.8751693196374497e+01*(z3*z3)*(z0*z0)*z4*(z1*z1)*(z2*z2)+4.3057436884860554e+00*(z3*z3)*z4*(z2*z2)+4.3057436884860554e+00*(z3*z3)*(z0*z0)*z4+4.7841596538733949e-01*z4+4.3057436884860554e+00*z4*(z1*z1)*(z2*z2)+4.3057436884860554e+00*(z0*z0)*z4*(z1*z1)+-1.4352478961620183e+00*z4*(z2*z2)+-1.4352478961620183e+00*(z3*z3)*z4+4.3057436884860554e+00*(z3*z3)*z4*(z1*z1)+-1.2917231065458166e+01*(z3*z3)*(z0*z0)*z4*(z2*z2)+-1.2917231065458166e+01*(z0*z0)*z4*(z1*z1)*(z2*z2)+4.3057436884860554e+00*(z0*z0)*z4*(z2*z2)+-1.4352478961620183e+00*(z0*z0)*z4; b[238] = 4.7841596538733949e-01*z3+4.3057436884860554e+00*z3*(z4*z4)*(z2*z2)+-1.4352478961620183e+00*z3*(z4*z4)+4.3057436884860554e+00*z3*(z0*z0)*(z2*z2)+-1.2917231065458166e+01*z3*(z0*z0)*(z1*z1)*(z2*z2)+-1.2917231065458166e+01*z3*(z4*z4)*(z1*z1)*(z2*z2)+-1.4352478961620183e+00*z3*(z1*z1)+-1.2917231065458166e+01*z3*(z0*z0)*(z4*z4)*(z1*z1)+4.3057436884860554e+00*z3*(z0*z0)*(z1*z1)+-1.4352478961620183e+00*z3*(z0*z0)+4.3057436884860554e+00*z3*(z4*z4)*(z1*z1)+-1.4352478961620183e+00*z3*(z2*z2)+3.8751693196374497e+01*z3*(z0*z0)*(z4*z4)*(z1*z1)*(z2*z2)+-1.2917231065458166e+01*z3*(z0*z0)*(z4*z4)*(z2*z2)+4.3057436884860554e+00*z3*(z1*z1)*(z2*z2)+4.3057436884860554e+00*z3*(z0*z0)*(z4*z4); b[239] = -1.4352478961620183e+00*(z4*z4)*z2+-1.4352478961620183e+00*(z0*z0)*z2+-1.2917231065458166e+01*(z3*z3)*(z0*z0)*(z4*z4)*z2+4.3057436884860554e+00*(z0*z0)*(z4*z4)*z2+4.3057436884860554e+00*(z3*z3)*(z1*z1)*z2+-1.4352478961620183e+00*(z3*z3)*z2+-1.2917231065458166e+01*(z0*z0)*(z4*z4)*(z1*z1)*z2+4.3057436884860554e+00*(z3*z3)*(z0*z0)*z2+3.8751693196374497e+01*(z3*z3)*(z0*z0)*(z4*z4)*(z1*z1)*z2+-1.2917231065458166e+01*(z3*z3)*(z4*z4)*(z1*z1)*z2+4.3057436884860554e+00*(z3*z3)*(z4*z4)*z2+4.7841596538733949e-01*z2+4.3057436884860554e+00*(z0*z0)*(z1*z1)*z2+-1.2917231065458166e+01*(z3*z3)*(z0*z0)*(z1*z1)*z2+4.3057436884860554e+00*(z4*z4)*(z1*z1)*z2+-1.4352478961620183e+00*(z1*z1)*z2; b[240] = 4.3057436884860554e+00*(z3*z3)*(z4*z4)*z1+3.8751693196374497e+01*(z3*z3)*(z0*z0)*(z4*z4)*z1*(z2*z2)+4.3057436884860554e+00*(z0*z0)*z1*(z2*z2)+4.3057436884860554e+00*(z3*z3)*(z0*z0)*z1+-1.2917231065458166e+01*(z3*z3)*(z4*z4)*z1*(z2*z2)+4.3057436884860554e+00*(z4*z4)*z1*(z2*z2)+-1.2917231065458166e+01*(z3*z3)*(z0*z0)*z1*(z2*z2)+4.7841596538733949e-01*z1+-1.4352478961620183e+00*z1*(z2*z2)+-1.4352478961620183e+00*(z0*z0)*z1+-1.2917231065458166e+01*(z3*z3)*(z0*z0)*(z4*z4)*z1+-1.4352478961620183e+00*(z4*z4)*z1+4.3057436884860554e+00*(z3*z3)*z1*(z2*z2)+4.3057436884860554e+00*(z0*z0)*(z4*z4)*z1+-1.2917231065458166e+01*(z0*z0)*(z4*z4)*z1*(z2*z2)+-1.4352478961620183e+00*(z3*z3)*z1; b[241] = 4.3057436884860554e+00*z0*(z1*z1)*(z2*z2)+4.3057436884860554e+00*(z3*z3)*z0*(z2*z2)+-1.4352478961620183e+00*(z3*z3)*z0+-1.4352478961620183e+00*z0*(z1*z1)+4.7841596538733949e-01*z0+-1.2917231065458166e+01*(z3*z3)*z0*(z4*z4)*(z1*z1)+4.3057436884860554e+00*z0*(z4*z4)*(z1*z1)+-1.4352478961620183e+00*z0*(z4*z4)+-1.2917231065458166e+01*(z3*z3)*z0*(z1*z1)*(z2*z2)+3.8751693196374497e+01*(z3*z3)*z0*(z4*z4)*(z1*z1)*(z2*z2)+-1.2917231065458166e+01*(z3*z3)*z0*(z4*z4)*(z2*z2)+-1.2917231065458166e+01*z0*(z4*z4)*(z1*z1)*(z2*z2)+4.3057436884860554e+00*(z3*z3)*z0*(z1*z1)+-1.4352478961620183e+00*z0*(z2*z2)+4.3057436884860554e+00*(z3*z3)*z0*(z4*z4)+4.3057436884860554e+00*z0*(z4*z4)*(z2*z2); b[242] = -2.5014110397816282e+01*(z0*z0)*(z4*z4)*(z1*z1)*(z2*z2)+9.2644853325245491e-01*(z2*z2)+-2.7793455997573648e+00*(z3*z3)*(z2*z2)+8.3380367992720945e+00*(z3*z3)*(z1*z1)*(z2*z2)+8.3380367992720945e+00*(z0*z0)*(z4*z4)*(z2*z2)+8.3380367992720945e+00*(z3*z3)*(z0*z0)*(z4*z4)+-2.5014110397816282e+01*(z3*z3)*(z0*z0)*(z4*z4)*(z2*z2)+8.3380367992720945e+00*(z3*z3)*(z0*z0)*(z1*z1)+-2.7793455997573648e+00*(z0*z0)*(z2*z2)+9.2644853325245491e-01*(z0*z0)+9.2644853325245491e-01*(z3*z3)+-2.7793455997573648e+00*(z4*z4)*(z2*z2)+-2.7793455997573648e+00*(z3*z3)*(z0*z0)+8.3380367992720945e+00*(z3*z3)*(z4*z4)*(z1*z1)+-2.7793455997573648e+00*(z3*z3)*(z1*z1)+-2.7793455997573648e+00*(z0*z0)*(z4*z4)+8.3380367992720945e+00*(z0*z0)*(z4*z4)*(z1*z1)+-2.7793455997573648e+00*(z1*z1)*(z2*z2)+8.3380367992720945e+00*(z4*z4)*(z1*z1)*(z2*z2)+9.2644853325245491e-01*(z1*z1)+-2.5014110397816282e+01*(z3*z3)*(z0*z0)*(z1*z1)*(z2*z2)+-2.7793455997573648e+00*(z4*z4)*(z1*z1)+9.2644853325245491e-01*(z4*z4)+8.3380367992720945e+00*(z0*z0)*(z1*z1)*(z2*z2)+8.3380367992720945e+00*(z3*z3)*(z4*z4)*(z2*z2)+-2.5014110397816282e+01*(z3*z3)*(z4*z4)*(z1*z1)*(z2*z2)+-2.5014110397816282e+01*(z3*z3)*(z0*z0)*(z4*z4)*(z1*z1)+8.3380367992720945e+00*(z3*z3)*(z0*z0)*(z2*z2)+7.5042331193448845e+01*(z3*z3)*(z0*z0)*(z4*z4)*(z1*z1)*(z2*z2)+-2.7793455997573648e+00*(z0*z0)*(z1*z1)+-2.7793455997573648e+00*(z3*z3)*(z4*z4)-3.0881617775081832e-01; } GKYL_CU_DH double eval_expand_5d_tensor_p2(const double *z, const double *f ) { const double z0 = z[0]; const double z1 = z[1]; const double z2 = z[2]; const double z3 = z[3]; const double z4 = z[4]; return 7.4115882660196386e-01*(z1*z1)*f[188]+1.2837247441527331e+00*z1*f[204]*(z2*z2)+-1.9887378220871650e+00*(z3*z3)*z0*f[168]*z4+2.4859222776089562e+00*(z0*z0)*(z4*z4)*f[233]+-3.4445949507888440e+00*(z3*z3)*f[197]*z0*z4*z1+3.4445949507888440e+00*(z4*z4)*(z1*z1)*f[138]*z2+1.0269797953221864e+00*(z3*z3)*f[42]*z2+-4.2790824805091104e-01*z1*f[221]+1.0269797953221864e+00*z3*(z4*z4)*f[50]+-1.1481983169296148e+00*z3*(z1*z1)*f[120]+-1.4352478961620183e+00*z3*(z1*z1)*f[238]+2.2373300498480607e+01*(z3*z3)*(z0*z0)*(z4*z4)*f[235]*(z2*z2)+-6.6704294394176751e+00*(z3*z3)*z0*z4*(z1*z1)*f[225]+1.0269797953221864e+00*(z0*z0)*z1*f[31]+2.2097086912079611e-01*f[91]+6.6291260736238833e-01*z3*z0*f[177]+3.4445949507888440e+00*(z0*z0)*z4*(z2*z2)*f[130]+6.6704294394176751e+00*(z0*z0)*(z1*z1)*(z2*z2)*f[182]+1.7787811838447134e+00*(z3*z3)*z4*z2*f[79]+5.9662134662614950e+00*z3*f[174]*z0*(z4*z4)*(z1*z1)+-6.6704294394176751e+00*(z3*z3)*z0*(z4*z4)*z1*f[231]+6.6291260736238833e-01*z3*z4*f[161]+1.2837247441527331e+00*z3*f[215]*(z1*z1)+2.2234764798058917e+00*(z3*z3)*z0*z1*f[231]+-3.4232659844072882e-01*z0*f[40]+-1.2917231065458166e+01*(z3*z3)*(z0*z0)*f[237]*z4*(z1*z1)+-6.6704294394176751e+00*z3*(z0*z0)*z4*(z1*z1)*f[222]+-6.6704294394176751e+00*z3*z4*(z1*z1)*f[222]*(z2*z2)+-5.9292706128157113e-01*z0*z1*f[65]+9.2644853325245491e-01*(z3*z3)*f[242]+1.2837247441527331e+00*z3*(z1*z1)*f[213]+2.4859222776089562e+00*(z3*z3)*f[232]*(z2*z2)+1.7787811838447134e+00*z3*(z0*z0)*z2*f[61]+-1.1481983169296148e+00*z1*f[128]*(z2*z2)+1.7787811838447134e+00*(z0*z0)*f[56]*z1*z2+-3.8511742324581992e+00*(z3*z3)*f[209]*z4*(z2*z2)+-2.7793455997573648e+00*(z3*z3)*(z1*z1)*f[242]+1.0333784852366533e+01*(z3*z3)*z0*z4*(z1*z1)*f[196]*z2+-3.4232659844072882e-01*f[49]*z2+-3.8511742324581992e+00*(z3*z3)*(z0*z0)*z4*f[208]+7.4115882660196386e-01*(z0*z0)*f[184]+-6.6704294394176751e+00*z3*z0*(z1*z1)*(z2*z2)*f[228]+1.2837247441527331e+00*(z0*z0)*z1*f[216]+-4.2790824805091104e-01*z3*f[202]+1.1553522697374598e+01*(z3*z3)*f[217]*z0*(z4*z4)*(z1*z1)+2.2373300498480607e+01*(z3*z3)*(z4*z4)*(z1*z1)*f[236]*(z2*z2)+5.3033008588991060e-01*f[8]*z1*z2+7.4115882660196386e-01*f[183]*(z1*z1)+1.1553522697374598e+01*f[206]*(z0*z0)*z4*(z1*z1)*(z2*z2)+-7.4577668328268683e+00*(z3*z3)*(z4*z4)*(z1*z1)*f[234]+-2.5014110397816282e+01*(z3*z3)*(z0*z0)*(z1*z1)*f[242]*(z2*z2)+3.0618621784789724e-01*z0*f[1]+-6.6704294394176751e+00*(z3*z3)*(z0*z0)*z1*f[229]*z2+-1.9764235376052372e-01*f[20]+3.8273277230987157e-01*z4*f[130]+2.4859222776089562e+00*(z3*z3)*(z4*z4)*f[234]+2.4859222776089562e+00*(z3*z3)*(z4*z4)*f[235]+-7.4577668328268683e+00*(z3*z3)*(z4*z4)*f[236]*(z2*z2)+3.4445949507888440e+00*z0*f[136]*(z4*z4)*(z1*z1)+2.4859222776089562e+00*f[232]*(z1*z1)*(z2*z2)+-1.1481983169296148e+00*z1*(z2*z2)*f[118]+-8.2864075920298541e-01*f[232]*(z1*z1)+-6.6704294394176751e+00*z3*(z0*z0)*z1*f[227]*(z2*z2)+-1.2917231065458166e+01*(z3*z3)*(z0*z0)*z1*(z2*z2)*f[240]+2.2097086912079611e-01*f[88]+1.1553522697374598e+01*(z3*z3)*z0*f[220]*(z4*z4)*(z2*z2)+-5.9292706128157113e-01*z0*z1*f[58]+1.9887378220871650e+00*(z4*z4)*f[94]*(z2*z2)+3.0809393859665595e+00*z3*z0*(z4*z4)*z2*f[115]+-8.2864075920298541e-01*(z3*z3)*f[232]+-5.9292706128157113e-01*z3*f[59]*z1+-1.1481983169296148e+00*(z3*z3)*z4*f[132]+9.1855865354369182e-01*z3*z0*f[23]*z2+6.6291260736238833e-01*z0*z2*f[156]+-7.4115882660196386e-01*z0*f[230]*z2+-1.1481983169296148e+00*(z3*z3)*f[125]*z2+1.7787811838447134e+00*(z3*z3)*z0*z4*f[77]+-2.2234764798058917e+00*(z4*z4)*(z2*z2)*f[187]+1.7787811838447134e+00*z3*z4*(z2*z2)*f[76]+5.9292706128157113e-01*(z1*z1)*f[17]+-4.2790824805091104e-01*z1*f[204]+-1.9764235376052372e-01*f[16]+6.6291260736238833e-01*f[166]*z4*z2+5.3033008588991060e-01*z4*f[14]*z2+1.7787811838447134e+00*(z3*z3)*f[78]*z4*z1+1.2837247441527331e+00*(z3*z3)*f[217]*z0+-2.2234764798058917e+00*(z3*z3)*(z1*z1)*f[190]+8.3380367992720945e+00*(z0*z0)*(z4*z4)*f[242]*(z2*z2)+1.1553522697374598e+01*z3*(z0*z0)*(z4*z4)*(z2*z2)*f[214]+7.4115882660196386e-01*(z3*z3)*f[191]+7.4115882660196386e-01*(z3*z3)*f[190]+-1.4352478961620183e+00*(z1*z1)*z2*f[239]+-1.0269797953221864e+00*z3*z0*z1*f[99]+1.2837247441527331e+00*(z4*z4)*f[210]*z2+-4.2790824805091104e-01*f[218]*z2+1.2837247441527331e+00*z0*(z4*z4)*f[212]+-3.8511742324581992e+00*(z3*z3)*(z4*z4)*z1*f[216]+-7.4577668328268683e+00*(z4*z4)*(z1*z1)*f[233]*(z2*z2)+-3.8511742324581992e+00*z0*(z4*z4)*f[212]*(z2*z2)+1.0333784852366533e+01*z3*(z0*z0)*z4*z1*(z2*z2)*f[193]+2.2234764798058917e+00*z3*z0*(z1*z1)*f[228]+2.7621358640099514e-01*f[232]+-3.8511742324581992e+00*(z3*z3)*z4*(z1*z1)*f[207]+-2.7793455997573648e+00*(z0*z0)*(z4*z4)*f[242]+1.1481983169296148e+00*z3*z4*f[192]*z2+2.4859222776089562e+00*(z0*z0)*(z1*z1)*f[234]+3.0809393859665595e+00*z3*z0*z1*f[99]*(z2*z2)+6.6704294394176751e+00*(z3*z3)*(z0*z0)*f[189]*(z4*z4)+-3.8511742324581992e+00*(z3*z3)*(z0*z0)*f[203]*z2+1.7787811838447134e+00*z3*z0*(z4*z4)*f[83]+-2.2234764798058917e+00*(z3*z3)*f[191]*(z2*z2)+-1.9887378220871650e+00*(z3*z3)*z4*z2*f[167]+-2.4705294220065463e-01*f[191]+1.0333784852366533e+01*z3*(z0*z0)*(z4*z4)*f[198]*z1*z2+1.7787811838447134e+00*z0*z1*(z2*z2)*f[58]+-3.8511742324581992e+00*(z3*z3)*z0*f[220]*(z4*z4)+-1.1481983169296148e+00*z0*(z4*z4)*f[144]+-6.6291260736238833e-01*f[94]*(z2*z2)+-1.2917231065458166e+01*(z0*z0)*(z4*z4)*(z1*z1)*z2*f[239]+4.3057436884860554e+00*(z3*z3)*z1*(z2*z2)*f[240]+3.8273277230987157e-01*f[133]*z4+3.8751693196374497e+01*(z3*z3)*(z0*z0)*f[237]*z4*(z1*z1)*(z2*z2)+-1.1481983169296148e+00*(z3*z3)*f[146]*z2+5.3033008588991060e-01*z0*z2*f[7]+1.2837247441527331e+00*z3*(z1*z1)*f[202]+-1.1481983169296148e+00*z0*f[124]*(z1*z1)+2.4859222776089562e+00*(z0*z0)*f[235]*(z2*z2)+-1.9887378220871650e+00*z3*(z4*z4)*z2*f[176]+3.0809393859665595e+00*z3*z0*z4*(z1*z1)*f[105]+4.3057436884860554e+00*z0*f[241]*(z4*z4)*(z2*z2)+2.2234764798058917e+00*(z0*z0)*z4*f[224]*z1+-1.1481983169296148e+00*z3*(z2*z2)*f[121]+2.2234764798058917e+00*z3*(z0*z0)*z4*f[222]+-3.4445949507888440e+00*z3*(z0*z0)*z4*z1*f[193]+-1.1481983169296148e+00*(z0*z0)*f[137]*z2+-3.8511742324581992e+00*z3*f[215]*(z1*z1)*(z2*z2)+-4.2790824805091104e-01*z3*f[213]+-1.9887378220871650e+00*(z0*z0)*z4*z1*f[164]+5.9662134662614950e+00*(z3*z3)*z0*f[157]*z1*(z2*z2)+7.4115882660196386e-01*(z2*z2)*f[187]+7.4115882660196386e-01*(z1*z1)*f[182]+3.4445949507888440e+00*(z0*z0)*z4*(z1*z1)*f[129]+-6.6704294394176751e+00*(z3*z3)*f[223]*(z0*z0)*z4*z2+-3.4232659844072882e-01*z3*f[37]+-1.9887378220871650e+00*z3*f[153]*z1*(z2*z2)+-3.4445949507888440e+00*(z3*z3)*z0*z1*f[201]*z2+-3.8511742324581992e+00*(z0*z0)*z4*(z2*z2)*f[208]+1.9887378220871650e+00*(z0*z0)*(z1*z1)*f[86]+1.0333784852366533e+01*(z3*z3)*z0*(z4*z4)*z1*f[201]*z2+-1.1481983169296148e+00*(z3*z3)*z1*f[145]+-1.1481983169296148e+00*z3*f[143]*(z2*z2)+3.0809393859665595e+00*f[104]*z3*(z0*z0)*z4*z1+-4.2790824805091104e-01*f[210]*z2+-1.1481983169296148e+00*f[139]*z0*(z4*z4)+1.2837247441527331e+00*(z4*z4)*f[218]*z2+-3.4445949507888440e+00*z3*(z4*z4)*f[198]*z1*z2+-1.1481983169296148e+00*(z3*z3)*z1*f[128]+-1.9887378220871650e+00*z3*z0*f[177]*(z2*z2)+-4.2790824805091104e-01*f[209]*z4+5.9662134662614950e+00*(z3*z3)*(z4*z4)*z1*f[181]*z2+6.6704294394176751e+00*(z3*z3)*(z0*z0)*f[183]*(z1*z1)+1.9887378220871650e+00*(z3*z3)*(z0*z0)*f[89]+1.2837247441527331e+00*z3*(z2*z2)*f[214]+-8.2864075920298541e-01*(z4*z4)*f[236]+3.4445949507888440e+00*(z0*z0)*(z4*z4)*z1*f[135]+3.8273277230987157e-01*z3*f[120]+4.7841596538733949e-01*z3*f[238]+-1.9887378220871650e+00*z3*(z4*z4)*z1*f[173]+1.1553522697374598e+01*(z3*z3)*(z0*z0)*(z4*z4)*z1*f[216]+-4.2790824805091104e-01*z4*f[208]+1.1553522697374598e+01*(z3*z3)*(z0*z0)*z4*(z1*z1)*f[207]+9.1855865354369182e-01*z3*z0*z4*f[28]+1.2837247441527331e+00*(z1*z1)*z2*f[219]+-5.9292706128157113e-01*z3*f[84]*z1+2.2234764798058917e+00*(z4*z4)*z1*f[229]*z2+-1.1481983169296148e+00*(z3*z3)*f[123]*z1+1.1553522697374598e+01*(z3*z3)*(z4*z4)*z1*(z2*z2)*f[221]+8.3380367992720945e+00*(z4*z4)*(z1*z1)*f[242]*(z2*z2)+1.0269797953221864e+00*(z0*z0)*f[33]*z2+-2.4705294220065463e-01*f[185]+4.3057436884860554e+00*z3*(z1*z1)*f[238]*(z2*z2)+-3.4445949507888440e+00*z3*z4*z1*(z2*z2)*f[193]+1.7787811838447134e+00*z0*(z4*z4)*z1*f[80]+2.2234764798058917e+00*z0*f[230]*(z4*z4)*z2+1.0333784852366533e+01*(z3*z3)*f[197]*z0*z4*z1*(z2*z2)+6.6291260736238833e-01*z3*f[163]*z4+-5.9292706128157113e-01*z0*z2*f[66]+-7.4577668328268683e+00*(z0*z0)*(z4*z4)*f[233]*(z2*z2)+-5.9292706128157113e-01*z3*z4*f[76]+-1.2917231065458166e+01*z0*f[241]*(z4*z4)*(z1*z1)*(z2*z2)+5.9662134662614950e+00*(z3*z3)*z0*f[168]*z4*(z2*z2)+-1.9887378220871650e+00*(z3*z3)*z0*f[179]*z1+4.3057436884860554e+00*(z3*z3)*z0*f[241]*(z2*z2)+-3.8511742324581992e+00*(z0*z0)*f[203]*(z1*z1)*z2+8.3380367992720945e+00*(z0*z0)*(z4*z4)*(z1*z1)*f[242]+-1.9887378220871650e+00*f[180]*z0*(z4*z4)*z2+1.0269797953221864e+00*(z1*z1)*f[34]*z2+-3.8511742324581992e+00*f[206]*(z0*z0)*z4*(z2*z2)+-5.9292706128157113e-01*z3*f[74]*z4+4.3057436884860554e+00*(z4*z4)*z1*(z2*z2)*f[240]+-7.4115882660196386e-01*z3*z0*f[228]+-5.9292706128157113e-01*z0*f[69]*z4+-2.2234764798058917e+00*(z4*z4)*(z1*z1)*f[188]+-7.4577668328268683e+00*(z3*z3)*(z4*z4)*f[235]*(z2*z2)+-7.4577668328268683e+00*(z3*z3)*(z0*z0)*f[232]*(z1*z1)+-1.2917231065458166e+01*z3*(z0*z0)*(z4*z4)*(z1*z1)*f[238]+4.3057436884860554e+00*z3*(z0*z0)*(z4*z4)*f[238]+-3.8511742324581992e+00*z3*(z1*z1)*(z2*z2)*f[202]+1.2837247441527331e+00*(z3*z3)*z4*f[207]+1.2837247441527331e+00*(z4*z4)*z1*f[221]+-1.9887378220871650e+00*z0*f[172]*z1*(z2*z2)+-7.4577668328268683e+00*(z0*z0)*(z4*z4)*(z1*z1)*f[233]+6.6291260736238833e-01*z3*z2*f[152]+-3.8511742324581992e+00*(z3*z3)*(z0*z0)*z1*f[204]+1.0269797953221864e+00*(z3*z3)*z1*f[41]+-1.2917231065458166e+01*(z3*z3)*z0*f[241]*(z1*z1)*(z2*z2)+-1.1481983169296148e+00*f[146]*(z4*z4)*z2+-2.2234764798058917e+00*(z0*z0)*(z1*z1)*f[186]+-2.2234764798058917e+00*(z0*z0)*(z2*z2)*f[182]+-1.9887378220871650e+00*z3*(z4*z4)*f[175]*z2+4.3057436884860554e+00*(z3*z3)*f[237]*z4*(z1*z1)+2.2234764798058917e+00*z4*f[224]*z1*(z2*z2)+-3.8511742324581992e+00*(z3*z3)*(z0*z0)*f[218]*z2+-6.6291260736238833e-01*f[88]*(z1*z1)+-6.6291260736238833e-01*(z4*z4)*f[93]+-3.4445949507888440e+00*z3*f[200]*z0*(z4*z4)*z1+-6.6704294394176751e+00*(z3*z3)*z0*f[230]*(z1*z1)*z2+1.2837247441527331e+00*z0*f[205]*(z1*z1)+-3.8511742324581992e+00*z3*(z0*z0)*(z4*z4)*f[213]+-1.0269797953221864e+00*z3*z0*f[98]*z2+-1.0269797953221864e+00*z3*z4*f[106]*z2+4.7841596538733949e-01*z0*f[241]+-6.6704294394176751e+00*z0*z4*(z1*z1)*(z2*z2)*f[225]+-1.9887378220871650e+00*(z0*z0)*z1*f[155]*z2+5.9292706128157113e-01*f[20]*(z4*z4)+1.2837247441527331e+00*f[211]*z1*(z2*z2)+-1.9887378220871650e+00*z3*f[174]*z0*(z1*z1)+1.0333784852366533e+01*(z3*z3)*(z0*z0)*z4*z1*f[195]*z2+-1.1481983169296148e+00*(z0*z0)*z4*f[129]+2.2234764798058917e+00*z3*f[226]*(z1*z1)*z2+1.1553522697374598e+01*z3*(z0*z0)*(z4*z4)*(z1*z1)*f[213]+-2.2234764798058917e+00*(z0*z0)*f[184]*(z2*z2)+1.0269797953221864e+00*(z4*z4)*f[49]*z2+9.1855865354369182e-01*z0*z4*z2*f[26]+-1.0269797953221864e+00*z0*z4*z2*f[102]+2.4859222776089562e+00*(z3*z3)*(z0*z0)*f[235]+2.4859222776089562e+00*(z3*z3)*(z0*z0)*f[234]+2.2373300498480607e+01*(z3*z3)*(z0*z0)*(z4*z4)*(z1*z1)*f[234]+-1.9887378220871650e+00*z4*(z1*z1)*f[158]*z2+-1.1481983169296148e+00*f[126]*(z1*z1)*z2+8.3380367992720945e+00*(z3*z3)*(z1*z1)*f[242]*(z2*z2)+-5.9292706128157113e-01*f[71]*z4*z2+2.2234764798058917e+00*(z3*z3)*z1*f[229]*z2+7.4115882660196386e-01*f[189]*(z4*z4)+-1.0269797953221864e+00*f[101]*z4*z1*z2+-1.1481983169296148e+00*z0*f[136]*(z1*z1)+-2.7793455997573648e+00*(z3*z3)*f[242]*(z2*z2)+3.0618621784789724e-01*z3*f[4]+2.0011288318253026e+01*z3*(z0*z0)*z4*(z1*z1)*f[222]*(z2*z2)+-4.2790824805091104e-01*f[203]*z2+2.0011288318253026e+01*z3*(z0*z0)*f[226]*(z4*z4)*(z1*z1)*z2+1.2837247441527331e+00*(z0*z0)*z1*f[204]+-1.1481983169296148e+00*z0*f[136]*(z4*z4)+-6.6704294394176751e+00*z0*(z4*z4)*z1*(z2*z2)*f[231]+-1.2917231065458166e+01*(z3*z3)*f[237]*z4*(z1*z1)*(z2*z2)+-6.6291260736238833e-01*(z3*z3)*f[90]+-1.4352478961620183e+00*f[237]*z4*(z1*z1)+-5.9292706128157113e-01*z3*f[62]*z2+-3.4445949507888440e+00*z3*z0*f[194]*z4*(z1*z1)+3.4445949507888440e+00*(z3*z3)*f[146]*(z4*z4)*z2+1.7787811838447134e+00*z3*z1*(z2*z2)*f[64]+1.9887378220871650e+00*(z3*z3)*(z1*z1)*f[90]+-1.9887378220871650e+00*z3*f[174]*z0*(z4*z4)+7.4115882660196386e-01*(z2*z2)*f[188]+5.3033008588991060e-01*z0*z4*f[12]+5.3033008588991060e-01*z3*f[11]*z2+-5.9292706128157113e-01*z3*f[85]*z2+1.1553522697374598e+01*(z3*z3)*(z0*z0)*z1*f[204]*(z2*z2)+-4.2790824805091104e-01*z3*f[215]+-4.2790824805091104e-01*z3*f[214]+1.9887378220871650e+00*(z3*z3)*(z4*z4)*f[95]+-3.8511742324581992e+00*(z3*z3)*(z4*z4)*z1*f[221]+-1.1481983169296148e+00*(z4*z4)*f[137]*z2+2.2097086912079611e-01*f[87]+-6.6704294394176751e+00*(z3*z3)*z0*z4*(z2*z2)*f[225]+2.4859222776089562e+00*(z0*z0)*f[232]*(z1*z1)+2.2373300498480607e+01*(z0*z0)*(z4*z4)*(z1*z1)*f[233]*(z2*z2)+1.7787811838447134e+00*z0*(z4*z4)*f[81]*z2+-3.4232659844072882e-01*z4*f[45]+2.4859222776089562e+00*(z4*z4)*f[235]*(z2*z2)+1.1481983169296148e+00*z0*z4*f[196]*z2+-7.4115882660196386e-01*z1*f[229]*z2+-2.7793455997573648e+00*(z1*z1)*f[242]*(z2*z2)+-1.1481983169296148e+00*f[131]*z4*(z1*z1)+3.8273277230987157e-01*z4*f[134]+3.4445949507888440e+00*(z3*z3)*f[126]*(z1*z1)*z2+-8.2864075920298541e-01*f[236]*(z2*z2)+-1.9887378220871650e+00*z3*(z0*z0)*f[153]*z1+3.0809393859665595e+00*(z3*z3)*z0*f[100]*z1*z2+4.3057436884860554e+00*(z0*z0)*(z4*z4)*z2*f[239]+-1.2917231065458166e+01*z3*(z0*z0)*(z4*z4)*f[238]*(z2*z2)+-1.1481983169296148e+00*(z3*z3)*z0*f[127]+-3.8511742324581992e+00*(z0*z0)*(z1*z1)*f[210]*z2+3.8751693196374497e+01*z3*(z0*z0)*(z4*z4)*(z1*z1)*f[238]*(z2*z2)+2.2373300498480607e+01*(z3*z3)*(z0*z0)*f[232]*(z1*z1)*(z2*z2)+1.7677669529663689e-01*f[0]+-5.9292706128157113e-01*z0*f[57]*z2+-8.2864075920298541e-01*(z1*z1)*f[234]+-3.8511742324581992e+00*(z3*z3)*z0*f[205]*(z1*z1)+3.8273277230987157e-01*z3*f[121]+9.2644853325245491e-01*(z4*z4)*f[242]+3.0809393859665595e+00*z3*z0*z4*(z2*z2)*f[108]+1.2837247441527331e+00*(z0*z0)*f[218]*z2+-1.4352478961620183e+00*(z3*z3)*z1*f[240]+-1.9764235376052372e-01*f[19]+4.3057436884860554e+00*(z0*z0)*f[237]*z4*(z2*z2)+6.6704294394176751e+00*(z3*z3)*(z0*z0)*f[184]*(z2*z2)+-1.1481983169296148e+00*z0*(z1*z1)*f[119]+-1.0269797953221864e+00*z3*z4*z1*f[109]+-3.4232659844072882e-01*f[36]*z1+3.8273277230987157e-01*f[140]*z1+-2.4705294220065463e-01*f[189]+-3.8511742324581992e+00*(z4*z4)*(z1*z1)*z2*f[219]+-1.9887378220871650e+00*z3*(z0*z0)*z1*f[173]+5.9662134662614950e+00*(z3*z3)*z4*(z1*z1)*z2*f[167]+-1.1481983169296148e+00*z3*(z4*z4)*f[143]+3.8273277230987157e-01*z0*f[144]+-1.7787811838447134e+00*z3*z0*z4*z1*f[149]+-1.9887378220871650e+00*z0*f[179]*(z4*z4)*z1+-2.2234764798058917e+00*(z3*z3)*(z0*z0)*f[183]+-7.4115882660196386e-01*z3*z1*f[227]+-1.9887378220871650e+00*z3*(z0*z0)*f[175]*z2+-2.2234764798058917e+00*(z4*z4)*(z1*z1)*f[186]+-1.4352478961620183e+00*z1*(z2*z2)*f[240]+-4.2790824805091104e-01*z0*f[212]+-3.4445949507888440e+00*z3*z0*(z4*z4)*z2*f[199]+-3.4232659844072882e-01*z1*f[31]+5.9662134662614950e+00*f[165]*(z3*z3)*z0*z4*(z1*z1)+5.9662134662614950e+00*(z3*z3)*z4*z1*f[169]*(z2*z2)+-5.9292706128157113e-01*z4*f[70]*z2+3.4445949507888440e+00*(z3*z3)*z0*f[124]*(z1*z1)+-7.4577668328268683e+00*(z3*z3)*(z0*z0)*f[235]*(z2*z2)+1.2837247441527331e+00*f[206]*z4*(z1*z1)+-8.2864075920298541e-01*(z4*z4)*f[233]+5.3033008588991060e-01*z0*z1*f[6]+3.0618621784789724e-01*z4*f[5]+-1.1481983169296148e+00*(z0*z0)*z4*f[130]+-3.4445949507888440e+00*(z3*z3)*z4*z1*f[195]*z2+1.7787811838447134e+00*(z3*z3)*z0*z2*f[66]+6.6291260736238833e-01*z0*f[179]*z1+-1.4352478961620183e+00*z0*f[241]*(z2*z2)+-1.1481983169296148e+00*(z3*z3)*f[126]*z2+-2.2234764798058917e+00*(z0*z0)*f[183]*(z1*z1)+-3.8511742324581992e+00*z0*f[205]*(z1*z1)*(z2*z2)+-1.0269797953221864e+00*z3*z0*z4*f[105]+-1.2917231065458166e+01*(z3*z3)*(z0*z0)*(z1*z1)*z2*f[239]+-3.8511742324581992e+00*z3*(z0*z0)*(z4*z4)*f[214]+2.0011288318253026e+01*z3*z0*(z4*z4)*(z1*z1)*(z2*z2)*f[228]+1.0333784852366533e+01*z3*f[200]*z0*(z4*z4)*z1*(z2*z2)+1.2837247441527331e+00*(z3*z3)*z2*f[219]+-4.2790824805091104e-01*z1*f[216]+-1.9887378220871650e+00*(z0*z0)*z4*f[158]*z2+7.4115882660196386e-01*(z4*z4)*f[190]+-1.4352478961620183e+00*(z3*z3)*f[237]*z4+-2.4705294220065463e-01*f[183]+-1.9887378220871650e+00*z3*z4*(z2*z2)*f[162]+5.9662134662614950e+00*(z3*z3)*(z0*z0)*f[166]*z4*z2+-3.8511742324581992e+00*(z0*z0)*f[211]*(z4*z4)*z1+-3.8511742324581992e+00*(z3*z3)*(z4*z4)*f[218]*z2+1.9887378220871650e+00*f[88]*(z1*z1)*(z2*z2)+-3.8511742324581992e+00*(z3*z3)*(z1*z1)*z2*f[219]+1.0269797953221864e+00*f[44]*z4*(z1*z1)+-6.6704294394176751e+00*z3*(z0*z0)*f[226]*(z4*z4)*z2+2.2234764798058917e+00*z3*z0*(z2*z2)*f[228]+6.6291260736238833e-01*f[159]*z4*z1+-1.9887378220871650e+00*(z3*z3)*z0*z2*f[156]+1.2837247441527331e+00*(z3*z3)*z0*f[205]+5.9662134662614950e+00*(z0*z0)*z4*(z1*z1)*f[158]*z2+-6.6704294394176751e+00*z3*(z0*z0)*(z4*z4)*z1*f[227]+7.4115882660196386e-01*(z1*z1)*f[186]+7.4115882660196386e-01*(z2*z2)*f[182]+-1.9887378220871650e+00*z3*f[154]*z0*(z2*z2)+-5.9292706128157113e-01*z0*z4*f[77]+3.8273277230987157e-01*f[131]*z4+-1.9887378220871650e+00*z3*(z1*z1)*z2*f[152]+-3.4232659844072882e-01*z0*f[32]+-7.4115882660196386e-01*z3*f[226]*z2+3.8273277230987157e-01*z3*f[141]+2.2234764798058917e+00*(z3*z3)*z0*f[230]*z2+-5.9292706128157113e-01*z4*z1*f[73]+1.7787811838447134e+00*z3*f[75]*z4*(z1*z1)+6.6291260736238833e-01*z3*z4*f[162]+3.0809393859665595e+00*z3*z0*f[114]*(z4*z4)*z1+-5.9292706128157113e-01*z0*f[72]*z4+-6.6704294394176751e+00*f[223]*(z0*z0)*z4*(z1*z1)*z2+1.2837247441527331e+00*z3*(z2*z2)*f[202]+-1.1481983169296148e+00*(z1*z1)*f[138]*z2+-8.2864075920298541e-01*(z0*z0)*f[232]+-8.2864075920298541e-01*(z0*z0)*f[233]+1.7787811838447134e+00*z0*f[57]*(z1*z1)*z2+1.2837247441527331e+00*(z0*z0)*f[203]*z2+-2.2234764798058917e+00*(z0*z0)*f[189]*(z4*z4)+6.6291260736238833e-01*z3*z1*f[178]+-7.4577668328268683e+00*(z3*z3)*(z0*z0)*(z1*z1)*f[234]+-3.4232659844072882e-01*f[44]*z4+-6.6704294394176751e+00*z3*(z0*z0)*z4*f[222]*(z2*z2)+3.4445949507888440e+00*(z3*z3)*z0*(z4*z4)*f[144]+-6.6704294394176751e+00*(z0*z0)*z4*f[224]*z1*(z2*z2)+-1.0269797953221864e+00*z0*z4*z1*f[110]+1.2837247441527331e+00*z0*f[220]*(z4*z4)+5.3033008588991060e-01*z3*f[15]*z4+2.7621358640099514e-01*f[235]+4.3057436884860554e+00*(z0*z0)*(z4*z4)*z1*f[240]+-1.2917231065458166e+01*(z3*z3)*z0*f[241]*(z4*z4)*(z1*z1)+6.6291260736238833e-01*z4*z2*f[167]+4.3057436884860554e+00*(z3*z3)*(z1*z1)*z2*f[239]+7.4115882660196386e-01*f[184]*(z2*z2)+7.4115882660196386e-01*f[185]*(z2*z2)+-5.9292706128157113e-01*z4*f[68]*z1+3.8273277230987157e-01*z4*f[129]+-1.2917231065458166e+01*(z0*z0)*(z4*z4)*z1*(z2*z2)*f[240]+-4.2790824805091104e-01*f[206]*z4+-5.9292706128157113e-01*f[78]*z4*z1+-1.1481983169296148e+00*(z3*z3)*z0*f[124]+1.1553522697374598e+01*(z3*z3)*(z0*z0)*(z4*z4)*f[218]*z2+-1.9887378220871650e+00*(z3*z3)*f[166]*z4*z2+-1.9887378220871650e+00*f[165]*(z3*z3)*z0*z4+-1.0269797953221864e+00*z4*z1*f[112]*z2+8.3380367992720945e+00*(z3*z3)*(z0*z0)*(z4*z4)*f[242]+-8.2864075920298541e-01*(z3*z3)*f[236]+1.2837247441527331e+00*z4*(z1*z1)*f[207]+-1.0269797953221864e+00*z0*f[111]*z4*z2+1.2837247441527331e+00*(z4*z4)*z1*f[216]+5.9662134662614950e+00*z0*z4*(z1*z1)*f[160]*(z2*z2)+1.1481983169296148e+00*z3*f[200]*z0*z1+-1.4352478961620183e+00*(z3*z3)*z2*f[239]+2.4859222776089562e+00*(z3*z3)*(z1*z1)*f[236]+5.3033008588991060e-01*z3*z1*f[10]+-6.6291260736238833e-01*(z1*z1)*f[86]+-5.9292706128157113e-01*z4*z2*f[79]+-2.5014110397816282e+01*(z0*z0)*(z4*z4)*(z1*z1)*f[242]*(z2*z2)+-1.7787811838447134e+00*z0*z4*z1*z2*f[150]+-6.6704294394176751e+00*(z0*z0)*(z4*z4)*z1*f[229]*z2+-2.2234764798058917e+00*(z0*z0)*(z2*z2)*f[187]+-2.2234764798058917e+00*(z0*z0)*(z1*z1)*f[182]+-1.9887378220871650e+00*f[165]*z0*z4*(z1*z1)+2.0011288318253026e+01*(z3*z3)*z0*f[230]*(z4*z4)*(z1*z1)*z2+-7.4115882660196386e-01*z0*z1*f[231]+-2.2234764798058917e+00*(z3*z3)*f[185]*(z1*z1)+3.8273277230987157e-01*f[137]*z2+-1.9887378220871650e+00*z3*f[163]*z4*(z2*z2)+-5.9292706128157113e-01*z3*f[75]*z4+-1.9887378220871650e+00*z0*(z4*z4)*f[171]*z2+-1.9887378220871650e+00*z0*(z1*z1)*z2*f[156]+6.6291260736238833e-01*z0*f[168]*z4+-3.8511742324581992e+00*(z3*z3)*z1*f[204]*(z2*z2)+-8.2864075920298541e-01*f[235]*(z2*z2)+-1.0269797953221864e+00*z3*z0*z4*f[108]+1.2837247441527331e+00*(z3*z3)*z0*f[220]+-2.2234764798058917e+00*(z4*z4)*(z2*z2)*f[188]+-6.6704294394176751e+00*z3*f[226]*(z4*z4)*(z1*z1)*z2+-2.2234764798058917e+00*(z3*z3)*(z0*z0)*f[189]+1.0269797953221864e+00*z3*f[38]*(z1*z1)+2.4859222776089562e+00*(z4*z4)*(z1*z1)*f[234]+3.4445949507888440e+00*z3*f[142]*(z4*z4)*(z1*z1)+-1.1481983169296148e+00*f[140]*(z4*z4)*z1+1.2837247441527331e+00*z3*f[215]*(z4*z4)+1.1481983169296148e+00*z3*f[198]*z1*z2+1.1553522697374598e+01*(z3*z3)*f[209]*z4*(z1*z1)*(z2*z2)+-7.4577668328268683e+00*(z3*z3)*f[232]*(z1*z1)*(z2*z2)+3.4445949507888440e+00*z3*(z0*z0)*(z4*z4)*f[141]+7.4115882660196386e-01*f[191]*(z4*z4)+-1.4352478961620183e+00*z3*f[238]*(z2*z2)+-1.9887378220871650e+00*z3*z4*(z1*z1)*f[161]+-5.9292706128157113e-01*z3*z1*f[64]+1.9887378220871650e+00*f[91]*(z3*z3)*(z2*z2)+-3.8511742324581992e+00*z0*(z4*z4)*(z1*z1)*f[212]+2.4859222776089562e+00*(z4*z4)*f[236]*(z2*z2)+-3.4232659844072882e-01*f[46]*z4+1.7787811838447134e+00*z3*f[62]*(z1*z1)*z2+-3.4232659844072882e-01*f[33]*z2+-1.9887378220871650e+00*(z0*z0)*z1*z2*f[170]+1.2837247441527331e+00*(z0*z0)*z4*f[208]+3.0809393859665595e+00*z3*(z0*z0)*f[97]*z1*z2+-1.1481983169296148e+00*f[117]*(z1*z1)*z2+1.2837247441527331e+00*f[209]*z4*(z2*z2)+7.4115882660196386e-01*(z3*z3)*f[185]+7.4115882660196386e-01*(z3*z3)*f[184]+1.5909902576697319e+00*z3*z0*z4*f[54]*z2+3.4445949507888440e+00*(z3*z3)*z1*f[128]*(z2*z2)+4.3057436884860554e+00*(z4*z4)*(z1*z1)*z2*f[239]+2.2234764798058917e+00*f[223]*z4*(z1*z1)*z2+-1.2917231065458166e+01*z3*(z4*z4)*(z1*z1)*f[238]*(z2*z2)+1.7787811838447134e+00*(z3*z3)*z0*z1*f[65]+2.2234764798058917e+00*z0*z1*(z2*z2)*f[231]+9.2644853325245491e-01*(z0*z0)*f[242]+-3.8511742324581992e+00*z3*f[215]*(z4*z4)*(z1*z1)+2.4859222776089562e+00*(z1*z1)*f[233]*(z2*z2)+1.2837247441527331e+00*(z0*z0)*f[210]*z2+2.2097086912079611e-01*f[94]+-2.4705294220065463e-01*f[186]+3.4445949507888440e+00*f[139]*z0*(z4*z4)*(z2*z2)+6.6291260736238833e-01*f[165]*z0*z4+-3.8511742324581992e+00*(z3*z3)*(z0*z0)*z1*f[216]+-1.0269797953221864e+00*z3*z4*f[107]*z2+-3.4445949507888440e+00*z3*(z0*z0)*z4*f[192]*z2+-1.2917231065458166e+01*(z3*z3)*(z0*z0)*(z4*z4)*z1*f[240]+2.4859222776089562e+00*(z4*z4)*f[233]*(z2*z2)+-1.4352478961620183e+00*(z3*z3)*z0*f[241]+4.3057436884860554e+00*z0*f[241]*(z4*z4)*(z1*z1)+-3.8511742324581992e+00*f[206]*z4*(z1*z1)*(z2*z2)+9.1855865354369182e-01*z3*f[29]*z4*z1+-3.8511742324581992e+00*(z4*z4)*(z1*z1)*f[210]*z2+-1.9764235376052372e-01*f[18]+3.0809393859665595e+00*(z3*z3)*z0*z4*z1*f[110]+1.2837247441527331e+00*f[203]*(z1*z1)*z2+-2.7793455997573648e+00*(z4*z4)*(z1*z1)*f[242]+5.9662134662614950e+00*z3*z0*(z4*z4)*f[177]*(z2*z2)+6.6291260736238833e-01*z3*z1*f[173]+1.5909902576697319e+00*z3*f[51]*z0*z1*z2+-1.4352478961620183e+00*(z0*z0)*z2*f[239]+-3.8511742324581992e+00*z3*(z4*z4)*(z2*z2)*f[214]+5.9662134662614950e+00*z3*f[163]*z4*(z1*z1)*(z2*z2)+-1.7787811838447134e+00*z3*z4*z1*z2*f[147]+3.0809393859665595e+00*(z3*z3)*z0*f[111]*z4*z2+9.2644853325245491e-01*f[242]*(z2*z2)+3.8273277230987157e-01*z3*f[142]+3.8273277230987157e-01*z3*f[143]+-1.1481983169296148e+00*(z4*z4)*z1*f[135]+6.6291260736238833e-01*z3*f[153]*z1+-2.2234764798058917e+00*(z3*z3)*f[189]*(z4*z4)+1.7787811838447134e+00*f[71]*z4*(z1*z1)*z2+1.2837247441527331e+00*(z3*z3)*f[203]*z2+3.0809393859665595e+00*(z3*z3)*z4*z1*f[112]*z2+-1.1481983169296148e+00*z3*(z0*z0)*f[141]+1.2837247441527331e+00*z0*f[212]*(z2*z2)+3.0809393859665595e+00*z3*z4*(z1*z1)*f[107]*z2+-1.9887378220871650e+00*(z3*z3)*z0*f[157]*z1+2.4859222776089562e+00*(z1*z1)*f[236]*(z2*z2)+-1.1481983169296148e+00*z3*f[142]*(z1*z1)+-3.8511742324581992e+00*(z0*z0)*(z4*z4)*f[218]*z2+-1.4352478961620183e+00*z0*f[241]*(z4*z4)+-8.2864075920298541e-01*(z0*z0)*f[235]+-8.2864075920298541e-01*(z0*z0)*f[234]+1.2837247441527331e+00*z4*(z2*z2)*f[208]+-2.2234764798058917e+00*(z1*z1)*(z2*z2)*f[188]+-5.9292706128157113e-01*z3*z0*f[60]+-4.2790824805091104e-01*z4*f[207]+1.7787811838447134e+00*(z3*z3)*z1*f[67]*z2+6.6291260736238833e-01*z3*z2*f[176]+-4.2790824805091104e-01*f[211]*z1+3.0809393859665595e+00*z3*z0*f[98]*(z1*z1)*z2+5.9662134662614950e+00*f[180]*(z3*z3)*z0*(z4*z4)*z2+-1.1481983169296148e+00*z4*(z1*z1)*f[129]+2.2234764798058917e+00*z3*z1*f[227]*(z2*z2)+-1.9887378220871650e+00*z0*(z1*z1)*f[171]*z2+1.7787811838447134e+00*z3*f[85]*(z4*z4)*z2+-7.4115882660196386e-01*z4*f[224]*z1+4.3057436884860554e+00*(z3*z3)*z0*f[241]*(z1*z1)+1.9887378220871650e+00*(z0*z0)*(z4*z4)*f[92]+6.6291260736238833e-01*z4*z1*f[164]+5.9662134662614950e+00*z3*(z4*z4)*(z1*z1)*z2*f[176]+3.4445949507888440e+00*(z3*z3)*(z0*z0)*z4*f[132]+5.3363435515341404e+00*z3*z0*z4*z1*f[149]*(z2*z2)+6.6291260736238833e-01*z0*f[172]*z1+-1.0269797953221864e+00*z0*f[113]*z1*z2+-3.4232659844072882e-01*z1*f[41]+3.4445949507888440e+00*z3*(z4*z4)*f[143]*(z2*z2)+3.4445949507888440e+00*(z3*z3)*(z0*z0)*f[125]*z2+1.2837247441527331e+00*f[206]*(z0*z0)*z4+1.9887378220871650e+00*(z0*z0)*f[87]*(z2*z2)+-2.2234764798058917e+00*(z4*z4)*(z1*z1)*f[190]+-1.9887378220871650e+00*f[159]*z4*z1*(z2*z2)+-7.4577668328268683e+00*(z3*z3)*(z0*z0)*f[232]*(z2*z2)+2.4859222776089562e+00*(z3*z3)*(z4*z4)*f[236]+5.3363435515341404e+00*z3*z0*f[148]*z4*(z1*z1)*z2+8.3380367992720945e+00*(z3*z3)*(z0*z0)*(z1*z1)*f[242]+1.2837247441527331e+00*z3*(z4*z4)*f[214]+1.2837247441527331e+00*(z3*z3)*z4*f[208]+-3.8511742324581992e+00*f[206]*(z0*z0)*z4*(z1*z1)+3.0809393859665595e+00*z0*z4*z1*f[103]*(z2*z2)+4.3057436884860554e+00*(z3*z3)*(z4*z4)*z2*f[239]+-7.4577668328268683e+00*(z3*z3)*(z4*z4)*(z1*z1)*f[236]+-3.8511742324581992e+00*f[209]*z4*(z1*z1)*(z2*z2)+1.2837247441527331e+00*(z3*z3)*f[209]*z4+-6.6291260736238833e-01*(z0*z0)*f[89]+3.8273277230987157e-01*z1*f[128]+2.2234764798058917e+00*z3*z4*(z1*z1)*f[222]+6.6291260736238833e-01*z1*f[155]*z2+1.1553522697374598e+01*(z0*z0)*f[211]*(z4*z4)*z1*(z2*z2)+4.3057436884860554e+00*(z3*z3)*f[237]*z4*(z2*z2)+-3.8511742324581992e+00*(z0*z0)*f[211]*z1*(z2*z2)+-1.1481983169296148e+00*(z0*z0)*f[117]*z2+-3.0881617775081832e-01*f[242]+-6.6704294394176751e+00*(z3*z3)*f[223]*z4*(z1*z1)*z2+-1.2917231065458166e+01*(z3*z3)*(z4*z4)*(z1*z1)*z2*f[239]+-6.6704294394176751e+00*(z3*z3)*z0*z1*(z2*z2)*f[231]+3.8273277230987157e-01*f[123]*z1+-7.4577668328268683e+00*(z3*z3)*(z0*z0)*(z4*z4)*f[235]+-7.4577668328268683e+00*(z3*z3)*(z0*z0)*(z4*z4)*f[234]+2.0011288318253026e+01*(z3*z3)*z0*(z4*z4)*z1*(z2*z2)*f[231]+6.6291260736238833e-01*f[180]*z0*z2+2.4859222776089562e+00*(z4*z4)*(z1*z1)*f[233]+-6.6291260736238833e-01*f[88]*(z2*z2)+2.7621358640099514e-01*f[233]+1.2837247441527331e+00*z0*f[205]*(z2*z2)+-1.1481983169296148e+00*(z4*z4)*f[138]*z2+-1.1481983169296148e+00*(z3*z3)*f[133]*z4+3.8273277230987157e-01*f[146]*z2+1.0269797953221864e+00*z0*f[35]*(z2*z2)+3.8273277230987157e-01*z1*f[145]+5.9662134662614950e+00*(z3*z3)*z0*(z1*z1)*z2*f[156]+7.4115882660196386e-01*(z3*z3)*f[183]+9.1855865354369182e-01*z0*z1*z2*f[21]+-2.4705294220065463e-01*f[190]+7.4115882660196386e-01*(z4*z4)*f[187]+-6.6291260736238833e-01*(z4*z4)*f[94]+7.4115882660196386e-01*(z4*z4)*f[186]+6.6291260736238833e-01*z3*f[175]*z2+2.2234764798058917e+00*z3*(z0*z0)*z1*f[227]+-3.8511742324581992e+00*z3*(z4*z4)*(z1*z1)*f[213]+-6.6704294394176751e+00*z3*(z0*z0)*f[226]*(z1*z1)*z2+-1.9887378220871650e+00*z0*z4*(z1*z1)*f[160]+-3.8511742324581992e+00*(z3*z3)*(z4*z4)*z2*f[219]+1.2837247441527331e+00*(z3*z3)*f[218]*z2+-1.4352478961620183e+00*(z0*z0)*z1*f[240]+3.4445949507888440e+00*(z0*z0)*z1*(z2*z2)*f[118]+-7.4577668328268683e+00*(z0*z0)*f[232]*(z1*z1)*(z2*z2)+3.0809393859665595e+00*z3*(z0*z0)*z4*f[106]*z2+-4.2790824805091104e-01*f[217]*z0+7.4115882660196386e-01*(z1*z1)*f[190]+1.7787811838447134e+00*z3*z0*(z1*z1)*f[60]+-7.4115882660196386e-01*z0*z4*f[225]+-1.0269797953221864e+00*z0*f[100]*z1*z2+-1.2917231065458166e+01*(z3*z3)*(z0*z0)*(z4*z4)*z2*f[239]+-3.4445949507888440e+00*(z3*z3)*z0*z4*f[196]*z2+1.2837247441527331e+00*z3*(z0*z0)*f[214]+1.2837247441527331e+00*z1*(z2*z2)*f[221]+1.0269797953221864e+00*z0*(z4*z4)*f[47]+3.4445949507888440e+00*z3*(z1*z1)*f[122]*(z2*z2)+1.1553522697374598e+01*(z3*z3)*(z4*z4)*(z1*z1)*z2*f[219]+1.2837247441527331e+00*z3*f[215]*(z2*z2)+-1.9887378220871650e+00*z4*(z1*z1)*z2*f[167]+-6.6704294394176751e+00*z0*f[230]*(z4*z4)*(z1*z1)*z2+-1.2917231065458166e+01*(z3*z3)*(z0*z0)*f[237]*z4*(z2*z2)+2.7621358640099514e-01*f[236]+3.0618621784789724e-01*f[3]*z2+6.6291260736238833e-01*z1*f[181]*z2+8.3380367992720945e+00*(z3*z3)*(z0*z0)*f[242]*(z2*z2)+6.6291260736238833e-01*z3*f[154]*z0+7.5042331193448845e+01*(z3*z3)*(z0*z0)*(z4*z4)*(z1*z1)*f[242]*(z2*z2)+5.3363435515341404e+00*(z3*z3)*z0*z4*z1*z2*f[150]+7.4115882660196386e-01*f[191]*(z2*z2)+2.0011288318253026e+01*(z3*z3)*(z0*z0)*(z4*z4)*z1*f[229]*z2+-5.9292706128157113e-01*f[56]*z1*z2+-8.2864075920298541e-01*(z1*z1)*f[233]+1.1553522697374598e+01*z3*(z0*z0)*(z1*z1)*(z2*z2)*f[202]+-3.8511742324581992e+00*z3*(z0*z0)*(z2*z2)*f[202]+4.3057436884860554e+00*z3*(z4*z4)*(z1*z1)*f[238]+-1.9887378220871650e+00*z3*(z0*z0)*z4*f[162]+3.8273277230987157e-01*f[138]*z2+1.7787811838447134e+00*z3*z0*f[63]*(z2*z2)+-5.9292706128157113e-01*z1*z2*f[82]+1.0333784852366533e+01*z3*z0*f[194]*z4*(z1*z1)*(z2*z2)+-1.1481983169296148e+00*z3*(z0*z0)*f[121]+-6.6291260736238833e-01*f[91]*(z3*z3)+4.3057436884860554e+00*f[237]*z4*(z1*z1)*(z2*z2)+2.4859222776089562e+00*(z3*z3)*f[232]*(z1*z1)+-3.8511742324581992e+00*(z3*z3)*f[209]*z4*(z1*z1)+-3.4445949507888440e+00*z3*z0*(z1*z1)*z2*f[199]+3.0809393859665595e+00*z0*z4*(z1*z1)*z2*f[102]+-3.8511742324581992e+00*(z3*z3)*(z0*z0)*z4*f[207]+5.3363435515341404e+00*z3*z0*(z4*z4)*z1*f[151]*z2+5.9662134662614950e+00*z3*(z4*z4)*z1*f[178]*(z2*z2)+7.4115882660196386e-01*(z0*z0)*f[186]+7.4115882660196386e-01*(z0*z0)*f[187]+2.2097086912079611e-01*f[93]+-2.4705294220065463e-01*f[184]+5.9662134662614950e+00*z3*(z0*z0)*(z4*z4)*f[175]*z2+1.2837247441527331e+00*(z3*z3)*z1*f[204]+3.8273277230987157e-01*z1*f[118]+-2.2234764798058917e+00*(z1*z1)*(z2*z2)*f[182]+-1.1481983169296148e+00*z4*(z2*z2)*f[130]+3.8273277230987157e-01*f[125]*z2+2.2234764798058917e+00*z0*z4*(z2*z2)*f[225]+-3.8511742324581992e+00*(z0*z0)*z1*f[204]*(z2*z2)+2.2234764798058917e+00*z3*(z0*z0)*f[226]*z2+5.9662134662614950e+00*z3*f[154]*z0*(z1*z1)*(z2*z2)+3.8273277230987157e-01*z4*f[132]+6.6704294394176751e+00*(z3*z3)*f[191]*(z4*z4)*(z2*z2)+-1.1481983169296148e+00*(z4*z4)*z1*f[145]+5.3033008588991060e-01*z3*z0*f[9]+1.1481983169296148e+00*z4*z1*f[195]*z2+4.3057436884860554e+00*(z3*z3)*(z4*z4)*z1*f[240]+-6.6704294394176751e+00*z3*z0*(z4*z4)*(z1*z1)*f[228]+-2.2234764798058917e+00*(z3*z3)*(z0*z0)*f[184]+-1.4352478961620183e+00*(z0*z0)*f[237]*z4+1.7787811838447134e+00*z3*f[84]*(z4*z4)*z1+1.0269797953221864e+00*f[36]*z1*(z2*z2)+-1.1481983169296148e+00*f[140]*z1*(z2*z2)+3.0809393859665595e+00*z3*z4*z1*f[109]*(z2*z2)+5.3033008588991060e-01*f[13]*z4*z1+5.9662134662614950e+00*z3*(z0*z0)*(z4*z4)*z1*f[173]+-2.2234764798058917e+00*(z3*z3)*f[183]*(z1*z1)+3.0618621784789724e-01*f[2]*z1+3.4445949507888440e+00*z0*(z1*z1)*f[119]*(z2*z2)+-8.2864075920298541e-01*f[233]*(z2*z2)+-8.2864075920298541e-01*f[232]*(z2*z2)+-2.2234764798058917e+00*f[185]*(z1*z1)*(z2*z2)+2.0011288318253026e+01*(z3*z3)*f[223]*(z0*z0)*z4*(z1*z1)*z2+3.0809393859665595e+00*z0*(z4*z4)*f[113]*z1*z2+-5.9292706128157113e-01*z0*z1*f[80]+9.2644853325245491e-01*(z1*z1)*f[242]+2.2097086912079611e-01*f[90]+-8.2864075920298541e-01*(z4*z4)*f[234]+-8.2864075920298541e-01*(z4*z4)*f[235]+3.4445949507888440e+00*(z3*z3)*(z0*z0)*f[123]*z1+5.3363435515341404e+00*z3*(z0*z0)*z4*z1*z2*f[147]+2.2234764798058917e+00*(z3*z3)*f[223]*z4*z2+-3.8511742324581992e+00*(z0*z0)*(z4*z4)*f[210]*z2+1.2837247441527331e+00*f[217]*z0*(z4*z4)+-2.7793455997573648e+00*(z4*z4)*f[242]*(z2*z2)+3.8273277230987157e-01*z1*f[135]+-1.9887378220871650e+00*(z4*z4)*z1*z2*f[170]+-1.9887378220871650e+00*(z0*z0)*f[166]*z4*z2+1.2837247441527331e+00*z0*f[220]*(z2*z2)+1.1553522697374598e+01*(z3*z3)*z0*f[205]*(z1*z1)*(z2*z2)+-1.2917231065458166e+01*z3*(z0*z0)*(z1*z1)*f[238]*(z2*z2)+5.9662134662614950e+00*z0*(z4*z4)*(z1*z1)*f[171]*z2+4.3057436884860554e+00*(z0*z0)*(z1*z1)*z2*f[239]+4.3057436884860554e+00*z3*(z0*z0)*f[238]*(z2*z2)+-1.1481983169296148e+00*z3*(z4*z4)*f[141]+-1.7787811838447134e+00*z3*z0*f[148]*z4*z2+1.1481983169296148e+00*z3*z4*z1*f[193]+1.0269797953221864e+00*(z0*z0)*f[43]*z4+-1.0269797953221864e+00*z3*z0*z2*f[115]+6.6704294394176751e+00*(z0*z0)*(z4*z4)*(z2*z2)*f[187]+3.4445949507888440e+00*(z3*z3)*f[133]*z4*(z1*z1)+5.9662134662614950e+00*(z3*z3)*z0*f[179]*(z4*z4)*z1+3.8751693196374497e+01*(z3*z3)*(z0*z0)*(z4*z4)*z1*(z2*z2)*f[240]+1.2837247441527331e+00*(z3*z3)*z1*f[221]+7.4115882660196386e-01*(z3*z3)*f[189]+-6.6291260736238833e-01*(z3*z3)*f[95]+3.4445949507888440e+00*(z3*z3)*z0*f[127]*(z2*z2)+-3.4232659844072882e-01*f[42]*z2+-3.8511742324581992e+00*(z3*z3)*f[217]*z0*(z1*z1)+2.0011288318253026e+01*(z3*z3)*(z0*z0)*z4*f[224]*z1*(z2*z2)+-1.9887378220871650e+00*(z3*z3)*z4*z1*f[169]+-3.4232659844072882e-01*z3*f[39]+5.9662134662614950e+00*z3*(z0*z0)*f[153]*z1*(z2*z2)+-1.9887378220871650e+00*z4*z1*f[169]*(z2*z2)+-6.6291260736238833e-01*(z0*z0)*f[86]+1.0269797953221864e+00*(z3*z3)*z0*f[40]+-1.1481983169296148e+00*z4*f[134]*(z2*z2)+3.4445949507888440e+00*f[131]*z4*(z1*z1)*(z2*z2)+5.9292706128157113e-01*(z3*z3)*f[19]+9.1855865354369182e-01*z3*z1*f[24]*z2+-1.0269797953221864e+00*f[104]*z3*z4*z1+-3.8511742324581992e+00*(z0*z0)*z4*(z1*z1)*f[207]+-2.2234764798058917e+00*(z3*z3)*f[191]*(z4*z4)+-1.9887378220871650e+00*z3*f[154]*z0*(z1*z1)+1.0269797953221864e+00*z3*(z0*z0)*f[37]+3.8273277230987157e-01*f[117]*z2+-1.1481983169296148e+00*(z0*z0)*f[123]*z1+-7.4115882660196386e-01*f[223]*z4*z2+-1.0269797953221864e+00*z3*z0*f[114]*z1+-1.9887378220871650e+00*z3*(z4*z4)*z1*f[178]+-3.8511742324581992e+00*(z0*z0)*(z4*z4)*z1*f[216]+1.5909902576697319e+00*z3*z4*z1*f[55]*z2+1.7787811838447134e+00*(z0*z0)*z4*f[68]*z1+-1.9887378220871650e+00*(z4*z4)*z1*f[181]*z2+-3.8511742324581992e+00*(z3*z3)*z0*f[220]*(z2*z2)+1.7787811838447134e+00*z4*z1*(z2*z2)*f[73]+-5.9292706128157113e-01*z3*z0*f[63]+-3.8511742324581992e+00*(z3*z3)*f[217]*z0*(z4*z4)+8.3380367992720945e+00*(z3*z3)*(z4*z4)*f[242]*(z2*z2)+1.1553522697374598e+01*(z3*z3)*(z0*z0)*f[203]*(z1*z1)*z2+-2.5014110397816282e+01*(z3*z3)*(z0*z0)*(z4*z4)*(z1*z1)*f[242]+-1.9764235376052372e-01*f[17]+1.5909902576697319e+00*z3*z0*z4*z1*f[53]+-2.7793455997573648e+00*(z3*z3)*(z0*z0)*f[242]+2.2234764798058917e+00*z3*f[226]*(z4*z4)*z2+-5.9292706128157113e-01*z3*z2*f[61]+-3.8511742324581992e+00*z3*(z0*z0)*(z1*z1)*f[213]+1.2837247441527331e+00*z3*(z0*z0)*f[213]+4.3057436884860554e+00*(z3*z3)*(z0*z0)*f[237]*z4+-1.4352478961620183e+00*(z4*z4)*z1*f[240]+-1.9887378220871650e+00*z0*f[168]*z4*(z2*z2)+-1.9887378220871650e+00*f[180]*(z3*z3)*z0*z2+-1.1481983169296148e+00*z3*(z1*z1)*f[122]+5.9662134662614950e+00*z3*(z0*z0)*z4*(z2*z2)*f[162]+-6.6704294394176751e+00*(z3*z3)*z0*f[230]*(z4*z4)*z2+-6.6704294394176751e+00*(z3*z3)*(z4*z4)*z1*f[229]*z2+-3.8511742324581992e+00*(z4*z4)*z1*(z2*z2)*f[221]+-6.6291260736238833e-01*f[87]*(z2*z2)+-2.5014110397816282e+01*(z3*z3)*(z4*z4)*(z1*z1)*f[242]*(z2*z2)+6.6704294394176751e+00*(z3*z3)*f[185]*(z1*z1)*(z2*z2)+-6.6291260736238833e-01*(z1*z1)*f[93]+-5.9292706128157113e-01*z3*z0*f[83]+3.0809393859665595e+00*f[101]*(z0*z0)*z4*z1*z2+3.4445949507888440e+00*(z3*z3)*z4*f[134]*(z2*z2)+5.9662134662614950e+00*(z3*z3)*(z0*z0)*z4*z1*f[164]+6.6291260736238833e-01*z4*z1*f[169]+-3.4445949507888440e+00*z3*z4*f[192]*(z1*z1)*z2+-2.2234764798058917e+00*(z0*z0)*(z4*z4)*f[187]+-2.2234764798058917e+00*(z0*z0)*(z4*z4)*f[186]+1.2837247441527331e+00*f[217]*z0*(z1*z1)+-1.2917231065458166e+01*(z3*z3)*z0*f[241]*(z4*z4)*(z2*z2)+-3.8511742324581992e+00*f[211]*(z4*z4)*z1*(z2*z2)+-6.6704294394176751e+00*(z3*z3)*(z0*z0)*z4*f[224]*z1+-1.9887378220871650e+00*z3*(z0*z0)*z4*f[161]+3.4445949507888440e+00*z3*(z0*z0)*(z1*z1)*f[120]+4.3057436884860554e+00*z3*(z0*z0)*(z1*z1)*f[238]+-1.1481983169296148e+00*z3*(z0*z0)*f[120]+-1.4352478961620183e+00*z3*(z0*z0)*f[238]+-4.2790824805091104e-01*z0*f[220]+2.2234764798058917e+00*f[223]*(z0*z0)*z4*z2+1.1481983169296148e+00*z0*z1*f[201]*z2+7.4115882660196386e-01*(z0*z0)*f[189]+5.9662134662614950e+00*(z0*z0)*f[159]*z4*z1*(z2*z2)+1.7787811838447134e+00*(z4*z4)*z1*z2*f[82]+1.1553522697374598e+01*(z3*z3)*(z0*z0)*z4*(z2*z2)*f[208]+-1.1481983169296148e+00*z0*f[127]*(z2*z2)+7.4115882660196386e-01*f[185]*(z1*z1)+2.4859222776089562e+00*(z3*z3)*f[235]*(z2*z2)+2.2097086912079611e-01*f[95]+-2.4705294220065463e-01*f[188]+-1.1481983169296148e+00*f[133]*z4*(z1*z1)+-1.9887378220871650e+00*z0*f[157]*z1*(z2*z2)+-7.4577668328268683e+00*(z0*z0)*(z1*z1)*f[233]*(z2*z2)+5.9662134662614950e+00*(z3*z3)*(z0*z0)*z1*f[155]*z2+4.3057436884860554e+00*z3*(z4*z4)*f[238]*(z2*z2)+3.4445949507888440e+00*(z0*z0)*f[117]*(z1*z1)*z2+6.6291260736238833e-01*z1*z2*f[170]+1.0269797953221864e+00*z3*(z2*z2)*f[39]+-1.1481983169296148e+00*z0*f[119]*(z2*z2)+1.0269797953221864e+00*z0*(z1*z1)*f[32]+2.2234764798058917e+00*z0*f[230]*(z1*z1)*z2+1.1553522697374598e+01*z3*f[215]*(z4*z4)*(z1*z1)*(z2*z2)+-1.9887378220871650e+00*(z3*z3)*z1*f[181]*z2+-2.7793455997573648e+00*(z0*z0)*f[242]*(z2*z2)+1.0269797953221864e+00*(z4*z4)*z1*f[48]+-8.2864075920298541e-01*(z1*z1)*f[236]+4.7841596538733949e-01*z2*f[239]+4.3057436884860554e+00*(z3*z3)*(z0*z0)*z1*f[240]+9.1855865354369182e-01*z4*z1*f[27]*z2+-6.6291260736238833e-01*f[91]*(z2*z2)+1.2837247441527331e+00*(z4*z4)*z2*f[219]+1.0269797953221864e+00*f[46]*(z3*z3)*z4+-3.4232659844072882e-01*z3*f[50]+-2.2234764798058917e+00*(z3*z3)*f[185]*(z2*z2)+-2.2234764798058917e+00*(z3*z3)*f[184]*(z2*z2)+-1.9887378220871650e+00*z3*f[163]*z4*(z1*z1)+-1.9887378220871650e+00*z3*z0*(z4*z4)*f[177]+-3.8511742324581992e+00*(z3*z3)*z1*(z2*z2)*f[221]+2.2234764798058917e+00*(z3*z3)*z0*z4*f[225]+3.8273277230987157e-01*z0*f[124]+-7.4577668328268683e+00*(z0*z0)*(z4*z4)*(z1*z1)*f[234]+5.9662134662614950e+00*z0*f[172]*(z4*z4)*z1*(z2*z2)+1.7787811838447134e+00*z3*(z0*z0)*f[59]*z1+-5.9292706128157113e-01*z0*f[81]*z2+1.1553522697374598e+01*z0*(z4*z4)*(z1*z1)*f[212]*(z2*z2)+-3.4232659844072882e-01*z0*f[35]+3.8273277230987157e-01*z0*f[136]+-4.2790824805091104e-01*z0*f[205]+-6.6291260736238833e-01*(z4*z4)*f[92]+-1.2917231065458166e+01*(z3*z3)*(z4*z4)*z1*(z2*z2)*f[240]+-6.6704294394176751e+00*z3*(z4*z4)*z1*f[227]*(z2*z2)+5.9292706128157113e-01*f[18]*(z2*z2)+3.4445949507888440e+00*(z3*z3)*(z4*z4)*z1*f[145]+-2.2234764798058917e+00*f[191]*(z4*z4)*(z2*z2)+6.6291260736238833e-01*z3*f[174]*z0+-1.9887378220871650e+00*z3*(z1*z1)*z2*f[176]+-3.8511742324581992e+00*z3*f[215]*(z4*z4)*(z2*z2)+-6.6704294394176751e+00*(z3*z3)*z4*f[224]*z1*(z2*z2)+3.4445949507888440e+00*f[140]*(z4*z4)*z1*(z2*z2)+1.2837247441527331e+00*(z0*z0)*f[211]*z1+1.1553522697374598e+01*(z0*z0)*(z4*z4)*(z1*z1)*f[210]*z2+4.3057436884860554e+00*z0*f[241]*(z1*z1)*(z2*z2)+2.2097086912079611e-01*f[92]+-2.4705294220065463e-01*f[182]+1.2837247441527331e+00*(z0*z0)*z4*f[207]+1.2837247441527331e+00*f[209]*z4*(z1*z1)+-1.0269797953221864e+00*z0*z4*z1*f[103]+-3.4445949507888440e+00*z0*z4*(z1*z1)*f[196]*z2+2.4859222776089562e+00*(z3*z3)*(z0*z0)*f[232]+-6.6291260736238833e-01*(z0*z0)*f[87]+2.2097086912079611e-01*f[89]+-3.4445949507888440e+00*z3*z0*f[194]*z4*(z2*z2)+-1.4352478961620183e+00*f[237]*z4*(z2*z2)+5.9662134662614950e+00*z3*(z0*z0)*z4*(z1*z1)*f[161]+9.1855865354369182e-01*z3*z0*z1*f[22]+-1.1481983169296148e+00*(z0*z0)*z1*f[135]+3.8273277230987157e-01*f[126]*z2+1.5909902576697319e+00*z0*z4*z1*f[52]*z2+-1.9887378220871650e+00*(z3*z3)*z1*f[155]*z2+-3.8511742324581992e+00*f[217]*z0*(z4*z4)*(z1*z1)+-7.4577668328268683e+00*(z4*z4)*(z1*z1)*f[236]*(z2*z2)+-3.4445949507888440e+00*z3*(z0*z0)*f[198]*z1*z2+2.4859222776089562e+00*(z0*z0)*(z4*z4)*f[234]+2.4859222776089562e+00*(z0*z0)*(z4*z4)*f[235]+2.2234764798058917e+00*z3*z0*(z4*z4)*f[228]+1.2837247441527331e+00*(z1*z1)*f[210]*z2+1.0269797953221864e+00*z4*(z2*z2)*f[45]+-2.7793455997573648e+00*(z0*z0)*(z1*z1)*f[242]+2.4859222776089562e+00*(z0*z0)*f[232]*(z2*z2)+2.4859222776089562e+00*(z0*z0)*f[233]*(z2*z2)+1.2837247441527331e+00*z0*(z1*z1)*f[212]+-3.8511742324581992e+00*z0*(z1*z1)*f[212]*(z2*z2)+6.6704294394176751e+00*(z3*z3)*(z4*z4)*(z1*z1)*f[190]+-6.6291260736238833e-01*(z3*z3)*f[89]+1.7787811838447134e+00*z0*f[72]*z4*(z2*z2)+-3.4232659844072882e-01*z1*f[48]+8.3380367992720945e+00*(z0*z0)*(z1*z1)*f[242]*(z2*z2)+2.2234764798058917e+00*(z0*z0)*z1*f[229]*z2+2.4859222776089562e+00*(z4*z4)*(z1*z1)*f[236]+-1.4352478961620183e+00*(z4*z4)*z2*f[239]+-1.0269797953221864e+00*z3*f[97]*z1*z2+4.7841596538733949e-01*f[237]*z4+-2.2234764798058917e+00*(z3*z3)*(z4*z4)*f[190]+1.1481983169296148e+00*z3*z0*f[194]*z4+-3.8511742324581992e+00*z3*(z0*z0)*(z2*z2)*f[214]+-4.2790824805091104e-01*z2*f[219]+1.2837247441527331e+00*(z3*z3)*z1*f[216]+9.1855865354369182e-01*z0*f[25]*z4*z1+7.4115882660196386e-01*(z0*z0)*f[183]+-6.6291260736238833e-01*(z0*z0)*f[92]+7.4115882660196386e-01*(z0*z0)*f[182]+3.4445949507888440e+00*(z0*z0)*(z4*z4)*f[137]*z2+-7.4577668328268683e+00*(z0*z0)*(z4*z4)*f[235]*(z2*z2)+2.2234764798058917e+00*z0*z4*(z1*z1)*f[225]+1.7787811838447134e+00*z0*f[69]*z4*(z1*z1)+1.1481983169296148e+00*f[197]*z0*z4*z1+-1.1481983169296148e+00*(z3*z3)*z0*f[144]+-1.1481983169296148e+00*f[131]*z4*(z2*z2)+2.7621358640099514e-01*f[234]+5.9662134662614950e+00*(z0*z0)*(z4*z4)*z1*z2*f[170]+6.6291260736238833e-01*z0*f[171]*z2+6.6291260736238833e-01*z0*z4*f[160]+1.2837247441527331e+00*z3*(z0*z0)*f[202]+-3.8511742324581992e+00*z3*(z0*z0)*(z1*z1)*f[202]+-3.4232659844072882e-01*z0*f[47]+4.3057436884860554e+00*(z0*z0)*f[237]*z4*(z1*z1)+6.6704294394176751e+00*(z4*z4)*(z1*z1)*(z2*z2)*f[188]+2.0011288318253026e+01*(z3*z3)*z0*z4*(z1*z1)*(z2*z2)*f[225]+3.8273277230987157e-01*f[139]*z0+2.2234764798058917e+00*z0*(z4*z4)*z1*f[231]+-3.4445949507888440e+00*(z0*z0)*z4*z1*f[195]*z2+2.0011288318253026e+01*z3*(z0*z0)*(z4*z4)*z1*f[227]*(z2*z2)+-3.8511742324581992e+00*(z3*z3)*z0*f[205]*(z2*z2)+-3.4232659844072882e-01*f[43]*z4+3.8273277230987157e-01*z3*f[122]+-7.4115882660196386e-01*z3*z4*f[222]+3.4445949507888440e+00*z3*(z0*z0)*(z2*z2)*f[121]+-1.0269797953221864e+00*z3*f[116]*z1*z2+6.6291260736238833e-01*z0*f[157]*z1+-7.4577668328268683e+00*(z3*z3)*(z1*z1)*f[236]*(z2*z2)+-8.2864075920298541e-01*(z3*z3)*f[235]+-8.2864075920298541e-01*(z3*z3)*f[234]+3.8273277230987157e-01*z0*f[127]+-3.4445949507888440e+00*z3*f[200]*z0*z1*(z2*z2)+-1.9887378220871650e+00*(z0*z0)*f[159]*z4*z1+-3.4445949507888440e+00*z0*(z4*z4)*z1*f[201]*z2+2.4859222776089562e+00*(z3*z3)*(z1*z1)*f[234]+2.2234764798058917e+00*z3*z4*f[222]*(z2*z2)+-1.1481983169296148e+00*z3*f[122]*(z2*z2)+1.2837247441527331e+00*f[211]*(z4*z4)*z1+4.3057436884860554e+00*(z3*z3)*z0*f[241]*(z4*z4)+2.4859222776089562e+00*(z3*z3)*f[236]*(z2*z2)+-1.1481983169296148e+00*(z3*z3)*z4*f[134]+6.6291260736238833e-01*z4*f[158]*z2+-2.5014110397816282e+01*(z3*z3)*(z0*z0)*(z4*z4)*f[242]*(z2*z2)+-3.8511742324581992e+00*(z3*z3)*f[203]*(z1*z1)*z2+8.3380367992720945e+00*(z3*z3)*(z4*z4)*(z1*z1)*f[242]+-6.6704294394176751e+00*z3*z0*(z4*z4)*(z2*z2)*f[228]+2.7556759606310752e+00*z3*z0*z4*z1*f[96]*z2+-1.1481983169296148e+00*f[139]*z0*(z2*z2)+3.0809393859665595e+00*z3*f[116]*(z4*z4)*z1*z2+1.2837247441527331e+00*f[206]*z4*(z2*z2)+1.9887378220871650e+00*(z4*z4)*(z1*z1)*f[93]+3.8751693196374497e+01*(z3*z3)*(z0*z0)*(z4*z4)*(z1*z1)*z2*f[239]+-2.7793455997573648e+00*(z3*z3)*(z4*z4)*f[242]+-1.2917231065458166e+01*(z0*z0)*f[237]*z4*(z1*z1)*(z2*z2)+2.2097086912079611e-01*f[86]+4.7841596538733949e-01*z1*f[240]+1.2837247441527331e+00*z3*(z4*z4)*f[213]+4.3057436884860554e+00*(z3*z3)*(z0*z0)*z2*f[239]+-1.1481983169296148e+00*(z0*z0)*z4*f[132]+-1.9887378220871650e+00*(z3*z3)*z4*z1*f[164]+3.8751693196374497e+01*(z3*z3)*z0*f[241]*(z4*z4)*(z1*z1)*(z2*z2)+-1.9887378220871650e+00*z0*z4*f[160]*(z2*z2)+-1.9887378220871650e+00*z3*(z0*z0)*z2*f[152]+-1.4352478961620183e+00*z0*f[241]*(z1*z1)+5.9662134662614950e+00*z3*(z0*z0)*(z1*z1)*z2*f[152]+-6.6291260736238833e-01*(z1*z1)*f[90]+2.2234764798058917e+00*(z3*z3)*z4*f[224]*z1+1.7787811838447134e+00*(z0*z0)*z4*f[70]*z2+-3.8511742324581992e+00*z0*f[220]*(z4*z4)*(z2*z2)+-1.1481983169296148e+00*(z0*z0)*z1*f[118]+-1.1481983169296148e+00*z3*f[142]*(z4*z4)+5.9292706128157113e-01*f[16]*(z0*z0)+-1.1481983169296148e+00*(z0*z0)*f[125]*z2+2.2234764798058917e+00*z3*(z4*z4)*z1*f[227]+-3.4232659844072882e-01*z3*f[38]+4.3057436884860554e+00*(z0*z0)*z1*(z2*z2)*f[240]+9.1855865354369182e-01*z3*z4*z2*f[30]+-3.4445949507888440e+00*f[197]*z0*z4*z1*(z2*z2)+-1.9887378220871650e+00*z0*f[172]*(z4*z4)*z1+-5.9292706128157113e-01*z1*f[67]*z2+-3.4232659844072882e-01*f[34]*z2+-1.9887378220871650e+00*z3*z1*f[178]*(z2*z2)+-1.7787811838447134e+00*z3*z0*z1*f[151]*z2+6.6704294394176751e+00*(z0*z0)*(z4*z4)*(z1*z1)*f[186]+1.7787811838447134e+00*z3*(z0*z0)*f[74]*z4+-3.8511742324581992e+00*(z3*z3)*z4*(z2*z2)*f[208]+1.0333784852366533e+01*z3*z0*(z4*z4)*(z1*z1)*z2*f[199]+1.1481983169296148e+00*z3*z0*z2*f[199]+1.0333784852366533e+01*z3*(z0*z0)*z4*f[192]*(z1*z1)*z2+3.8273277230987157e-01*z0*f[119]+-1.4352478961620183e+00*z3*(z4*z4)*f[238]+-6.6291260736238833e-01*(z4*z4)*f[95]+7.4115882660196386e-01*(z4*z4)*f[188]+-2.4705294220065463e-01*f[187]+2.4859222776089562e+00*(z0*z0)*(z1*z1)*f[233]; } GKYL_CU_DH double eval_grad_expand_5d_tensor_p2(int dir, const double *z, const double *f ) { const double z0 = z[0]; const double z1 = z[1]; const double z2 = z[2]; const double z3 = z[3]; const double z4 = z[4]; if (dir == 0) return 2.5674494883054662e+00*z0*z2*f[218]+4.4746600996961213e+01*z0*f[233]*(z4*z4)*(z1*z1)*(z2*z2)+1.2837247441527331e+00*(z1*z1)*f[212]+5.9662134662614950e+00*(z3*z3)*(z4*z4)*z2*f[180]+2.3107045394749196e+01*(z3*z3)*f[204]*z0*z1*(z2*z2)+-6.6704294394176751e+00*z3*f[228]*(z1*z1)*(z2*z2)+3.5575623676894268e+00*z0*z4*z1*f[68]+6.8891899015776881e+00*z0*f[129]*z4*(z1*z1)+2.2234764798058917e+00*z4*f[225]*(z1*z1)+5.9662134662614950e+00*(z4*z4)*(z1*z1)*z2*f[171]+2.2234764798058917e+00*z1*f[231]*(z2*z2)+1.7787811838447134e+00*f[58]*z1*(z2*z2)+-1.3258252147247767e+00*z0*f[89]+-1.0269797953221864e+00*z3*z4*f[108]+3.4445949507888440e+00*f[119]*(z1*z1)*(z2*z2)+-1.3340858878835350e+01*z3*z0*f[222]*z4*(z1*z1)+6.6291260736238833e-01*z4*f[160]+-1.9887378220871650e+00*(z3*z3)*z1*f[157]+4.9718445552179125e+00*z0*f[233]*(z4*z4)+-3.9774756441743300e+00*z3*z0*z1*f[153]+8.6114873769721108e+00*z0*z1*f[240]*(z2*z2)+1.5008466238689769e+02*(z3*z3)*z0*f[242]*(z4*z4)*(z1*z1)*(z2*z2)+-1.9887378220871650e+00*(z3*z3)*z4*f[168]+2.5674494883054662e+00*z0*f[207]*z4+-1.9887378220871650e+00*z3*(z2*z2)*f[177]+-5.0028220795632564e+01*(z3*z3)*z0*f[242]*(z4*z4)*(z1*z1)+-2.8704957923240366e+00*z0*z1*f[240]+-3.9774756441743300e+00*z3*z0*f[161]*z4+1.3340858878835350e+01*z0*f[187]*(z4*z4)*(z2*z2)+-1.1481983169296148e+00*f[119]*(z1*z1)+2.5674494883054662e+00*z0*z2*f[203]+-3.4232659844072882e-01*f[47]+-5.9292706128157113e-01*f[58]*z1+-1.9887378220871650e+00*z1*(z2*z2)*f[157]+1.1932426932522990e+01*z0*z4*z1*f[159]*(z2*z2)+2.2234764798058917e+00*z3*f[228]*(z1*z1)+3.4445949507888440e+00*(z3*z3)*f[127]*(z2*z2)+-7.7023484649163985e+00*(z3*z3)*f[204]*z0*z1+-3.4445949507888440e+00*f[201]*(z4*z4)*z1*z2+2.3107045394749196e+01*z3*z0*f[213]*(z4*z4)*(z1*z1)+1.1481983169296148e+00*f[196]*z4*z2+3.5575623676894268e+00*z3*z0*z4*f[74]+-1.9887378220871650e+00*z4*(z1*z1)*f[165]+-4.4469529596117834e+00*z0*(z4*z4)*f[189]+-1.4915533665653737e+01*z0*f[234]*(z4*z4)*(z1*z1)+1.3340858878835350e+01*z0*(z4*z4)*(z1*z1)*f[186]+-4.4469529596117834e+00*(z3*z3)*f[184]*z0+-3.9774756441743300e+00*z3*z0*z4*f[162]+6.1618787719331189e+00*z3*z0*z4*z1*f[104]+-6.8891899015776881e+00*z3*z0*z1*z2*f[198]+3.8273277230987157e-01*f[119]+4.3057436884860554e+00*(z4*z4)*(z2*z2)*f[241]+2.2234764798058917e+00*(z1*z1)*z2*f[230]+1.1932426932522990e+01*(z3*z3)*z0*f[164]*z4*z1+-1.6572815184059708e+00*z0*f[234]+-1.6572815184059708e+00*z0*f[235]+1.1932426932522990e+01*z3*z0*z4*f[162]*(z2*z2)+-1.1481983169296148e+00*(z3*z3)*f[127]+-2.8704957923240366e+00*z0*f[239]*z2+1.0333784852366533e+01*(z3*z3)*z4*z1*f[197]*(z2*z2)+1.3340858878835350e+01*(z3*z3)*f[184]*z0*(z2*z2)+1.1481983169296148e+00*f[201]*z1*z2+5.9662134662614950e+00*z3*(z4*z4)*(z1*z1)*f[174]+1.1932426932522990e+01*(z3*z3)*z0*f[155]*z1*z2+-1.1481983169296148e+00*(z4*z4)*f[139]+-2.2963966338592297e+00*z3*z0*f[141]+1.2837247441527331e+00*(z3*z3)*f[220]+-3.9774756441743300e+00*z0*z4*z2*f[166]+-1.0269797953221864e+00*z4*z1*f[110]+-1.0269797953221864e+00*z3*z4*f[105]+5.3363435515341404e+00*z3*(z4*z4)*z1*z2*f[151]+-6.8891899015776881e+00*f[195]*z0*z4*z1*z2+-6.6704294394176751e+00*z4*f[225]*(z1*z1)*(z2*z2)+5.9662134662614950e+00*(z3*z3)*(z4*z4)*z1*f[179]+-7.7023484649163985e+00*z0*z4*(z1*z1)*f[206]+2.5674494883054662e+00*z0*f[216]*z1+-1.4915533665653737e+01*(z3*z3)*z0*(z4*z4)*f[235]+6.8891899015776881e+00*(z3*z3)*z0*z1*f[123]+-1.3258252147247767e+00*z0*f[86]+4.3057436884860554e+00*(z3*z3)*(z4*z4)*f[241]+-1.4352478961620183e+00*(z2*z2)*f[241]+-1.9887378220871650e+00*z1*(z2*z2)*f[172]+-1.2917231065458166e+01*(z3*z3)*(z4*z4)*(z1*z1)*f[241]+1.0269797953221864e+00*f[32]*(z1*z1)+-2.8704957923240366e+00*z0*z4*f[237]+3.0809393859665595e+00*(z3*z3)*z4*f[111]*z2+-1.0269797953221864e+00*z3*z1*f[114]+2.2234764798058917e+00*(z3*z3)*z1*f[231]+-2.5834462130916332e+01*(z3*z3)*z0*f[239]*(z1*z1)*z2+1.0333784852366533e+01*z3*z4*(z1*z1)*f[194]*(z2*z2)+2.0539595906443728e+00*z0*z4*f[43]+2.0539595906443728e+00*z0*z2*f[33]+-3.8511742324581992e+00*(z4*z4)*(z1*z1)*f[212]+6.6291260736238833e-01*f[156]*z2+-2.2963966338592297e+00*z3*z0*f[121]+1.6676073598544189e+01*(z3*z3)*z0*f[242]*(z1*z1)+-1.1481983169296148e+00*f[144]*(z4*z4)+-1.3340858878835350e+01*z3*z0*(z4*z4)*f[226]*z2+5.9662134662614950e+00*(z3*z3)*z4*f[168]*(z2*z2)+1.7787811838447134e+00*(z1*z1)*z2*f[57]+-2.5834462130916332e+01*z0*(z4*z4)*z1*f[240]*(z2*z2)+-7.7023484649163985e+00*z3*z0*f[213]*(z1*z1)+-1.7787811838447134e+00*z3*z4*f[148]*z2+1.1932426932522990e+01*z3*z0*z1*f[153]*(z2*z2)+-1.3340858878835350e+01*z0*z4*(z1*z1)*f[223]*z2+-1.4915533665653737e+01*z0*f[233]*(z4*z4)*(z2*z2)+-3.9774756441743300e+00*f[152]*z3*z0*z2+-3.8511742324581992e+00*(z1*z1)*f[205]*(z2*z2)+1.2837247441527331e+00*(z3*z3)*f[205]+6.8891899015776881e+00*(z3*z3)*z0*f[132]*z4+1.4823176532039277e+00*z0*f[187]+1.4823176532039277e+00*z0*f[186]+4.0022576636506052e+01*z3*z0*f[222]*z4*(z1*z1)*(z2*z2)+2.0539595906443728e+00*z0*f[31]*z1+-3.8511742324581992e+00*(z3*z3)*(z1*z1)*f[205]+9.1855865354369182e-01*z4*f[26]*z2+-1.0269797953221864e+00*z4*f[102]*z2+1.2837247441527331e+00*(z4*z4)*f[217]+7.7503386392748993e+01*(z3*z3)*z0*z4*(z1*z1)*f[237]*(z2*z2)+8.6114873769721108e+00*z3*z0*(z2*z2)*f[238]+3.0809393859665595e+00*z3*z4*f[108]*(z2*z2)+2.5674494883054662e+00*z3*z0*f[214]+-1.4915533665653737e+01*(z3*z3)*z0*(z1*z1)*f[232]+3.4445949507888440e+00*(z3*z3)*(z1*z1)*f[124]+-5.5586911995147297e+00*z0*f[242]*(z4*z4)+8.6114873769721108e+00*z0*f[239]*(z4*z4)*z2+5.3033008588991060e-01*f[12]*z4+-1.1481983169296148e+00*(z3*z3)*f[124]+7.7503386392748993e+01*z3*z0*(z4*z4)*(z1*z1)*(z2*z2)*f[238]+1.0333784852366533e+01*(z3*z3)*f[196]*z4*(z1*z1)*z2+-3.9774756441743300e+00*z0*f[170]*z1*z2+1.0333784852366533e+01*z3*(z4*z4)*f[199]*(z1*z1)*z2+3.9774756441743300e+00*z0*(z4*z4)*f[92]+3.5575623676894268e+00*z3*z0*f[61]*z2+5.9662134662614950e+00*z3*(z1*z1)*f[154]*(z2*z2)+4.4469529596117834e+00*z3*f[227]*z0*z1+1.1553522697374598e+01*(z3*z3)*(z1*z1)*f[205]*(z2*z2)+2.3107045394749196e+01*(z3*z3)*z0*f[216]*(z4*z4)*z1+-6.8891899015776881e+00*z3*z0*z4*f[193]*z1+-4.4469529596117834e+00*z0*f[187]*(z2*z2)+-7.7023484649163985e+00*z0*(z4*z4)*z1*f[211]+1.0672687103068281e+01*z3*z0*z4*z1*f[147]*z2+-3.8511742324581992e+00*(z3*z3)*f[205]*(z2*z2)+-2.2963966338592297e+00*z0*f[132]*z4+-5.5586911995147297e+00*z0*f[242]*(z1*z1)+6.6291260736238833e-01*z2*f[180]+-1.3258252147247767e+00*z0*f[87]+3.5575623676894268e+00*z3*z0*z1*f[59]+4.9718445552179125e+00*(z3*z3)*z0*f[232]+-7.4115882660196386e-01*z4*f[225]+-5.9292706128157113e-01*f[66]*z2+1.2837247441527331e+00*(z2*z2)*f[212]+-1.9887378220871650e+00*z4*f[168]*(z2*z2)+1.0269797953221864e+00*f[47]*(z4*z4)+-1.3340858878835350e+01*(z3*z3)*z0*z4*f[223]*z2+-1.9887378220871650e+00*z3*(z4*z4)*f[174]+1.1481983169296148e+00*z3*f[199]*z2+-1.9887378220871650e+00*(z3*z3)*z4*f[165]+2.5674494883054662e+00*z0*f[210]*z2+1.7787811838447134e+00*f[80]*(z4*z4)*z1+3.8273277230987157e-01*f[144]+-7.7023484649163985e+00*z3*z0*f[213]*(z4*z4)+-7.4115882660196386e-01*z3*f[228]+2.0667569704733065e+01*z3*z0*(z4*z4)*z1*z2*f[198]+-5.0028220795632564e+01*(z3*z3)*z0*f[242]*(z1*z1)*(z2*z2)+5.9662134662614950e+00*(z4*z4)*z1*(z2*z2)*f[172]+1.6676073598544189e+01*(z3*z3)*z0*f[242]*(z4*z4)+6.8891899015776881e+00*z3*z0*f[121]*(z2*z2)+4.9718445552179125e+00*z0*(z1*z1)*f[232]+-1.9887378220871650e+00*(z4*z4)*z1*f[179]+-1.0269797953221864e+00*f[103]*z4*z1+1.7787811838447134e+00*z3*f[63]*(z2*z2)+4.9718445552179125e+00*z0*(z4*z4)*f[235]+-2.2963966338592297e+00*z0*z1*f[123]+-7.7023484649163985e+00*(z3*z3)*z0*f[216]*z1+1.1932426932522990e+01*z0*f[170]*(z4*z4)*z1*z2+1.1932426932522990e+01*z3*z0*(z4*z4)*z1*f[173]+3.0809393859665595e+00*(z3*z3)*z4*z1*f[110]+-3.4232659844072882e-01*f[32]+1.7787811838447134e+00*(z3*z3)*z1*f[65]+-5.9292706128157113e-01*f[80]*z1+1.7787811838447134e+00*z4*f[72]*(z2*z2)+-2.2963966338592297e+00*z3*z0*f[120]+-2.8704957923240366e+00*z3*z0*f[238]+9.1855865354369182e-01*z3*z4*f[28]+1.4823176532039277e+00*z0*f[189]+5.3033008588991060e-01*f[7]*z2+-1.0269797953221864e+00*z4*f[111]*z2+1.1481983169296148e+00*z3*z1*f[200]+1.6676073598544189e+01*z0*f[242]*(z4*z4)*(z2*z2)+2.0539595906443728e+00*z3*z0*f[37]+4.4746600996961213e+01*(z3*z3)*z0*(z1*z1)*f[232]*(z2*z2)+-7.7023484649163985e+00*z3*z0*f[214]*(z2*z2)+4.0022576636506052e+01*(z3*z3)*z0*z4*z1*(z2*z2)*f[224]+2.3107045394749196e+01*(z3*z3)*z0*z4*f[208]*(z2*z2)+9.1855865354369182e-01*z3*f[22]*z1+-5.5586911995147297e+00*(z3*z3)*z0*f[242]+7.7503386392748993e+01*(z3*z3)*z0*f[239]*(z4*z4)*(z1*z1)*z2+-6.6704294394176751e+00*z3*f[228]*(z4*z4)*(z1*z1)+8.6114873769721108e+00*(z3*z3)*z0*z4*f[237]+4.3057436884860554e+00*(z4*z4)*(z1*z1)*f[241]+2.5674494883054662e+00*z3*z0*f[213]+8.6114873769721108e+00*z0*z4*(z1*z1)*f[237]+5.9662134662614950e+00*z4*(z1*z1)*(z2*z2)*f[160]+-7.7023484649163985e+00*z3*z0*f[202]*(z1*z1)+5.9662134662614950e+00*(z3*z3)*z1*(z2*z2)*f[157]+-7.7023484649163985e+00*z0*z4*(z2*z2)*f[206]+5.9662134662614950e+00*(z3*z3)*z4*(z1*z1)*f[165]+-1.9887378220871650e+00*(z1*z1)*z2*f[171]+-3.4445949507888440e+00*(z3*z3)*f[196]*z4*z2+2.5674494883054662e+00*f[204]*z0*z1+6.6291260736238833e-01*z1*f[179]+-6.6704294394176751e+00*(z4*z4)*z1*f[231]*(z2*z2)+1.2837247441527331e+00*(z4*z4)*f[220]+1.7787811838447134e+00*z3*f[60]*(z1*z1)+8.6114873769721108e+00*(z3*z3)*z0*z1*f[240]+-2.5834462130916332e+01*(z3*z3)*z0*(z4*z4)*z1*f[240]+-1.3340858878835350e+01*z3*f[227]*z0*(z4*z4)*z1+-3.4232659844072882e-01*f[40]+-7.7023484649163985e+00*(z3*z3)*z0*z2*f[203]+-3.9774756441743300e+00*z3*z0*f[175]*z2+-1.9887378220871650e+00*z3*f[154]*(z2*z2)+8.6114873769721108e+00*(z3*z3)*z0*f[239]*z2+2.2234764798058917e+00*z3*f[228]*(z4*z4)+-4.4469529596117834e+00*z0*f[182]*(z1*z1)+-6.6704294394176751e+00*(z3*z3)*(z1*z1)*z2*f[230]+3.8751693196374497e+01*(z3*z3)*(z4*z4)*(z1*z1)*(z2*z2)*f[241]+2.2234764798058917e+00*(z3*z3)*z2*f[230]+-4.4469529596117834e+00*f[184]*z0*(z2*z2)+-3.4445949507888440e+00*(z3*z3)*f[201]*z1*z2+-7.7023484649163985e+00*z0*f[210]*(z1*z1)*z2+-2.5834462130916332e+01*z3*z0*(z1*z1)*(z2*z2)*f[238]+-1.4352478961620183e+00*(z1*z1)*f[241]+1.3340858878835350e+01*(z3*z3)*z0*(z4*z4)*f[189]+-3.4445949507888440e+00*z3*f[199]*(z1*z1)*z2+2.5674494883054662e+00*z0*z4*f[206]+-1.2917231065458166e+01*(z3*z3)*(z4*z4)*(z2*z2)*f[241]+6.8891899015776881e+00*z0*(z4*z4)*f[135]*z1+-1.3340858878835350e+01*(z3*z3)*z0*z1*z2*f[229]+4.0022576636506052e+01*(z3*z3)*z0*(z4*z4)*z1*z2*f[229]+-3.8511742324581992e+00*(z3*z3)*f[220]*(z2*z2)+1.7787811838447134e+00*z4*(z1*z1)*f[69]+3.5575623676894268e+00*z0*f[70]*z4*z2+-1.1481983169296148e+00*(z4*z4)*f[136]+-6.6704294394176751e+00*(z3*z3)*z1*f[231]*(z2*z2)+-1.3258252147247767e+00*z0*f[92]+1.4823176532039277e+00*z0*f[182]+1.4823176532039277e+00*z0*f[183]+-7.7023484649163985e+00*z0*(z1*z1)*z2*f[203]+4.9718445552179125e+00*z0*f[233]*(z1*z1)+-1.7787811838447134e+00*z3*z1*z2*f[151]+-6.6704294394176751e+00*(z3*z3)*z4*f[225]*(z1*z1)+4.4469529596117834e+00*z0*z4*z1*f[224]+-5.9292706128157113e-01*f[77]*z4+-3.8511742324581992e+00*(z4*z4)*(z2*z2)*f[212]+-7.7023484649163985e+00*(z3*z3)*z0*z2*f[218]+2.3107045394749196e+01*(z3*z3)*z0*(z4*z4)*z2*f[218]+2.5674494883054662e+00*z3*z0*f[202]+-1.4915533665653737e+01*z0*(z4*z4)*(z2*z2)*f[235]+-1.9887378220871650e+00*(z4*z4)*z2*f[180]+3.0809393859665595e+00*z3*f[99]*z1*(z2*z2)+-6.6704294394176751e+00*(z4*z4)*(z1*z1)*z2*f[230]+2.3107045394749196e+01*(z3*z3)*z0*f[207]*z4*(z1*z1)+8.6114873769721108e+00*z0*z4*f[237]*(z2*z2)+-4.4469529596117834e+00*z0*(z4*z4)*f[186]+-7.7023484649163985e+00*(z3*z3)*z0*f[207]*z4+6.8891899015776881e+00*z3*z0*(z1*z1)*f[120]+8.6114873769721108e+00*z3*z0*(z1*z1)*f[238]+6.1618787719331189e+00*z3*z0*z1*z2*f[97]+1.2837247441527331e+00*(z3*z3)*f[217]+-3.8511742324581992e+00*(z3*z3)*(z1*z1)*f[217]+-1.7787811838447134e+00*f[150]*z4*z1*z2+9.1855865354369182e-01*z1*f[21]*z2+6.6291260736238833e-01*z3*f[177]+2.0667569704733065e+01*z3*z0*z4*(z1*z1)*z2*f[192]+-3.4445949507888440e+00*z3*z4*(z1*z1)*f[194]+1.1553522697374598e+01*(z3*z3)*(z4*z4)*(z1*z1)*f[217]+3.0809393859665595e+00*(z3*z3)*z1*z2*f[100]+-1.1481983169296148e+00*(z1*z1)*f[124]+-1.2917231065458166e+01*(z4*z4)*(z1*z1)*(z2*z2)*f[241]+5.3033008588991060e-01*f[6]*z1+-6.8891899015776881e+00*z3*z0*z4*z2*f[192]+-3.8511742324581992e+00*(z3*z3)*(z4*z4)*f[217]+-4.2790824805091104e-01*f[220]+8.6114873769721108e+00*z3*z0*(z4*z4)*f[238]+1.7787811838447134e+00*(z4*z4)*z2*f[81]+4.4469529596117834e+00*z0*z1*z2*f[229]+3.0809393859665595e+00*z3*(z4*z4)*z1*f[114]+-4.4469529596117834e+00*z0*(z1*z1)*f[186]+-3.4232659844072882e-01*f[35]+3.8273277230987157e-01*f[136]+-2.5834462130916332e+01*z0*f[239]*(z4*z4)*(z1*z1)*z2+2.0011288318253026e+01*(z3*z3)*(z4*z4)*z1*f[231]*(z2*z2)+6.6291260736238833e-01*z1*f[172]+-1.9887378220871650e+00*z3*(z1*z1)*f[154]+-4.2790824805091104e-01*f[205]+-1.9887378220871650e+00*(z3*z3)*f[156]*z2+-3.8511742324581992e+00*(z1*z1)*(z2*z2)*f[212]+-1.3340858878835350e+01*z0*z4*z1*(z2*z2)*f[224]+9.1855865354369182e-01*z4*z1*f[25]+3.4445949507888440e+00*(z3*z3)*f[144]*(z4*z4)+-2.5834462130916332e+01*(z3*z3)*z0*z4*(z1*z1)*f[237]+3.0809393859665595e+00*f[103]*z4*z1*(z2*z2)+1.2837247441527331e+00*(z1*z1)*f[205]+3.0809393859665595e+00*z4*f[102]*(z1*z1)*z2+8.6114873769721108e+00*z0*(z4*z4)*z1*f[240]+-1.1481983169296148e+00*(z1*z1)*f[136]+3.8273277230987157e-01*f[124]+3.0809393859665595e+00*z3*f[115]*(z4*z4)*z2+-1.2917231065458166e+01*(z3*z3)*(z1*z1)*(z2*z2)*f[241]+6.1618787719331189e+00*z0*z4*z1*f[101]*z2+3.5575623676894268e+00*z0*z1*f[56]*z2+-1.4352478961620183e+00*(z4*z4)*f[241]+1.1553522697374598e+01*(z3*z3)*(z4*z4)*f[220]*(z2*z2)+-7.7023484649163985e+00*z0*f[207]*z4*(z1*z1)+-2.5834462130916332e+01*(z3*z3)*z0*z4*f[237]*(z2*z2)+2.0011288318253026e+01*z3*f[228]*(z4*z4)*(z1*z1)*(z2*z2)+2.0011288318253026e+01*(z3*z3)*(z4*z4)*(z1*z1)*z2*f[230]+4.3057436884860554e+00*(z3*z3)*(z2*z2)*f[241]+1.6676073598544189e+01*(z3*z3)*z0*f[242]*(z2*z2)+-2.5834462130916332e+01*z3*z0*(z4*z4)*(z2*z2)*f[238]+-7.4115882660196386e-01*z1*f[231]+3.0809393859665595e+00*z3*(z1*z1)*f[98]*z2+-7.7023484649163985e+00*z0*f[210]*(z4*z4)*z2+1.1932426932522990e+01*f[152]*z3*z0*(z1*z1)*z2+-7.7023484649163985e+00*z0*z1*f[211]*(z2*z2)+5.3363435515341404e+00*(z3*z3)*f[150]*z4*z1*z2+3.4445949507888440e+00*(z4*z4)*(z2*z2)*f[139]+-6.6704294394176751e+00*(z3*z3)*(z4*z4)*z2*f[230]+-1.4915533665653737e+01*z0*f[233]*(z4*z4)*(z1*z1)+-5.9292706128157113e-01*z4*f[69]+-1.3340858878835350e+01*(z3*z3)*z0*z4*z1*f[224]+-3.4445949507888440e+00*(z3*z3)*z4*z1*f[197]+2.3107045394749196e+01*(z3*z3)*z0*(z1*z1)*z2*f[203]+4.0022576636506052e+01*z3*z0*(z4*z4)*(z1*z1)*f[226]*z2+3.0809393859665595e+00*(z4*z4)*z1*z2*f[113]+1.7787811838447134e+00*z3*f[83]*(z4*z4)+4.4469529596117834e+00*z3*z0*f[226]*z2+-1.9887378220871650e+00*(z4*z4)*z2*f[171]+3.8273277230987157e-01*f[127]+-3.4445949507888440e+00*z3*z1*f[200]*(z2*z2)+-1.4915533665653737e+01*(z3*z3)*z0*(z2*z2)*f[235]+6.6291260736238833e-01*z3*f[174]+-3.9774756441743300e+00*z0*z4*z1*f[159]+-3.9774756441743300e+00*f[158]*z0*z4*z2+4.4746600996961213e+01*(z3*z3)*z0*(z4*z4)*(z2*z2)*f[235]+6.8891899015776881e+00*f[137]*z0*(z4*z4)*z2+-7.7023484649163985e+00*z0*(z4*z4)*z2*f[218]+-4.4469529596117834e+00*z0*f[187]*(z4*z4)+-1.9887378220871650e+00*f[156]*(z1*z1)*z2+1.4823176532039277e+00*f[184]*z0+6.8891899015776881e+00*z0*f[118]*z1*(z2*z2)+4.4469529596117834e+00*z0*z4*f[223]*z2+-2.2963966338592297e+00*z0*f[117]*z2+6.6291260736238833e-01*z3*f[154]+2.2234764798058917e+00*z4*f[225]*(z2*z2)+-1.1481983169296148e+00*(z2*z2)*f[139]+-1.4915533665653737e+01*(z3*z3)*z0*f[232]*(z2*z2)+2.2234764798058917e+00*(z4*z4)*z1*f[231]+4.9718445552179125e+00*(z3*z3)*z0*f[234]+4.9718445552179125e+00*(z3*z3)*z0*f[235]+1.6676073598544189e+01*z0*f[242]*(z1*z1)*(z2*z2)+2.3107045394749196e+01*z0*(z4*z4)*z1*f[211]*(z2*z2)+6.1618787719331189e+00*z3*z0*f[106]*z4*z2+-1.9887378220871650e+00*z3*(z4*z4)*f[177]+2.0667569704733065e+01*z3*z0*z4*f[193]*z1*(z2*z2)+-7.7023484649163985e+00*z0*f[216]*(z4*z4)*z1+-1.0269797953221864e+00*z3*f[99]*z1+-4.2790824805091104e-01*f[217]+-1.1481983169296148e+00*f[127]*(z2*z2)+6.6291260736238833e-01*z2*f[171]+-1.3340858878835350e+01*z3*z0*f[222]*z4*(z2*z2)+-1.3340858878835350e+01*z3*f[227]*z0*z1*(z2*z2)+-1.9887378220871650e+00*z4*(z2*z2)*f[160]+1.1932426932522990e+01*z3*z0*f[161]*z4*(z1*z1)+-1.4915533665653737e+01*z0*(z1*z1)*f[232]*(z2*z2)+-1.1481983169296148e+00*f[119]*(z2*z2)+3.9774756441743300e+00*z0*(z2*z2)*f[87]+-5.0028220795632564e+01*(z3*z3)*z0*f[242]*(z4*z4)*(z2*z2)+1.5909902576697319e+00*z3*z4*z2*f[54]+3.9774756441743300e+00*(z3*z3)*z0*f[89]+-5.9292706128157113e-01*z3*f[83]+6.6291260736238833e-01*z4*f[168]+2.2234764798058917e+00*z3*f[228]*(z2*z2)+4.9718445552179125e+00*z0*f[234]*(z1*z1)+-1.9887378220871650e+00*z3*(z1*z1)*f[174]+6.6291260736238833e-01*z1*f[157]+-5.9292706128157113e-01*z2*f[81]+-7.7023484649163985e+00*z0*z4*f[208]*(z2*z2)+1.3340858878835350e+01*(z3*z3)*z0*(z1*z1)*f[183]+5.9662134662614950e+00*z3*(z4*z4)*(z2*z2)*f[177]+-1.3340858878835350e+01*z0*(z4*z4)*z1*z2*f[229]+-7.7023484649163985e+00*(z3*z3)*z0*z4*f[208]+2.7556759606310752e+00*z3*f[96]*z4*z1*z2+6.8891899015776881e+00*(z3*z3)*z0*f[125]*z2+-1.9887378220871650e+00*(z4*z4)*z1*f[172]+3.4445949507888440e+00*(z4*z4)*(z1*z1)*f[136]+-1.1481983169296148e+00*(z3*z3)*f[144]+-5.9292706128157113e-01*z4*f[72]+1.5909902576697319e+00*z3*z4*f[53]*z1+-5.9292706128157113e-01*z3*f[63]+-1.4915533665653737e+01*(z3*z3)*z0*f[234]*(z4*z4)+3.8273277230987157e-01*f[139]+4.4469529596117834e+00*z3*z0*f[222]*z4+-1.4915533665653737e+01*(z3*z3)*z0*f[234]*(z1*z1)+-1.0269797953221864e+00*z3*f[98]*z2+-4.4469529596117834e+00*z0*(z1*z1)*f[183]+-7.7023484649163985e+00*z3*z0*f[202]*(z2*z2)+3.9774756441743300e+00*z0*f[86]*(z1*z1)+6.8891899015776881e+00*z0*(z1*z1)*f[117]*z2+8.6114873769721108e+00*z0*f[239]*(z1*z1)*z2+-2.2963966338592297e+00*z0*f[129]*z4+1.1932426932522990e+01*f[158]*z0*z4*(z1*z1)*z2+-2.2963966338592297e+00*z0*f[118]*z1+-1.0269797953221864e+00*z3*f[115]*z2+1.2837247441527331e+00*(z1*z1)*f[217]+2.0011288318253026e+01*(z3*z3)*z4*f[225]*(z1*z1)*(z2*z2)+-4.4469529596117834e+00*(z3*z3)*z0*f[183]+6.8891899015776881e+00*z3*z0*(z4*z4)*f[141]+-1.4915533665653737e+01*z0*f[233]*(z1*z1)*(z2*z2)+4.9718445552179125e+00*z0*f[234]*(z4*z4)+1.7787811838447134e+00*f[77]*(z3*z3)*z4+1.1932426932522990e+01*(z3*z3)*z0*z4*z2*f[166]+-4.4469529596117834e+00*z0*f[182]*(z2*z2)+2.5674494883054662e+00*z0*z4*f[208]+1.0333784852366533e+01*z3*(z4*z4)*z1*f[200]*(z2*z2)+5.3363435515341404e+00*z3*z4*(z1*z1)*f[148]*z2+-4.2790824805091104e-01*f[212]+3.0809393859665595e+00*z3*z4*f[105]*(z1*z1)+1.1932426932522990e+01*z3*z0*f[175]*(z4*z4)*z2+-2.2963966338592297e+00*z0*f[125]*z2+-1.3340858878835350e+01*z3*z0*(z1*z1)*f[226]*z2+-2.2963966338592297e+00*f[137]*z0*z2+-2.5834462130916332e+01*(z3*z3)*z0*f[239]*(z4*z4)*z2+4.9718445552179125e+00*z0*f[233]*(z2*z2)+4.9718445552179125e+00*z0*f[232]*(z2*z2)+-7.4115882660196386e-01*z2*f[230]+-3.4445949507888440e+00*f[196]*z4*(z1*z1)*z2+-6.6704294394176751e+00*(z3*z3)*z4*f[225]*(z2*z2)+-6.6704294394176751e+00*(z3*z3)*(z4*z4)*z1*f[231]+5.3033008588991060e-01*z3*f[9]+-3.4445949507888440e+00*z3*z4*f[194]*(z2*z2)+1.2837247441527331e+00*f[220]*(z2*z2)+-1.4352478961620183e+00*(z3*z3)*f[241]+-2.5834462130916332e+01*z3*z0*(z4*z4)*(z1*z1)*f[238]+2.3107045394749196e+01*z0*f[210]*(z4*z4)*(z1*z1)*z2+4.3057436884860554e+00*(z3*z3)*(z1*z1)*f[241]+-5.0028220795632564e+01*z0*f[242]*(z4*z4)*(z1*z1)*(z2*z2)+-1.9887378220871650e+00*(z3*z3)*z1*f[179]+2.5674494883054662e+00*z0*z1*f[211]+-3.8511742324581992e+00*(z3*z3)*(z4*z4)*f[220]+-3.4445949507888440e+00*z3*(z4*z4)*f[199]*z2+4.0022576636506052e+01*z3*f[227]*z0*(z4*z4)*z1*(z2*z2)+3.0618621784789724e-01*f[1]+2.2234764798058917e+00*(z4*z4)*z2*f[230]+4.0022576636506052e+01*(z3*z3)*z0*z4*(z1*z1)*f[223]*z2+1.8528970665049098e+00*z0*f[242]+7.7503386392748993e+01*(z3*z3)*z0*(z4*z4)*z1*f[240]*(z2*z2)+-1.7787811838447134e+00*z3*f[149]*z4*z1+-2.5834462130916332e+01*(z3*z3)*z0*z1*f[240]*(z2*z2)+4.3057436884860554e+00*(z1*z1)*(z2*z2)*f[241]+5.3363435515341404e+00*z3*f[149]*z4*z1*(z2*z2)+-5.5586911995147297e+00*z0*f[242]*(z2*z2)+-3.8511742324581992e+00*(z4*z4)*f[220]*(z2*z2)+4.9718445552179125e+00*z0*(z2*z2)*f[235]+-7.7023484649163985e+00*f[204]*z0*z1*(z2*z2)+-2.2963966338592297e+00*z0*z4*f[130]+5.9662134662614950e+00*(z3*z3)*f[156]*(z1*z1)*z2+1.0269797953221864e+00*(z3*z3)*f[40]+-1.9887378220871650e+00*z4*(z1*z1)*f[160]+-7.7023484649163985e+00*z3*z0*(z4*z4)*f[214]+2.0667569704733065e+01*f[195]*(z3*z3)*z0*z4*z1*z2+1.1481983169296148e+00*z4*z1*f[197]+9.1855865354369182e-01*z3*f[23]*z2+-4.4469529596117834e+00*(z3*z3)*z0*f[189]+1.1553522697374598e+01*(z4*z4)*(z1*z1)*(z2*z2)*f[212]+2.3107045394749196e+01*z3*z0*f[202]*(z1*z1)*(z2*z2)+-2.5834462130916332e+01*z0*z4*(z1*z1)*f[237]*(z2*z2)+-5.9292706128157113e-01*z1*f[65]+1.5909902576697319e+00*z3*z1*f[51]*z2+6.6291260736238833e-01*z4*f[165]+-2.2963966338592297e+00*z0*f[135]*z1+-3.4445949507888440e+00*z3*(z4*z4)*z1*f[200]+4.4746600996961213e+01*(z3*z3)*z0*f[234]*(z4*z4)*(z1*z1)+-5.9292706128157113e-01*z3*f[60]+-1.0269797953221864e+00*z1*z2*f[100]+-3.8511742324581992e+00*(z4*z4)*(z1*z1)*f[217]+-3.9774756441743300e+00*z0*f[155]*z1*z2+-3.4445949507888440e+00*z4*z1*f[197]*(z2*z2)+2.3107045394749196e+01*z0*z4*(z1*z1)*(z2*z2)*f[206]+2.3107045394749196e+01*z3*z0*(z4*z4)*f[214]*(z2*z2)+-3.9774756441743300e+00*z0*f[164]*z4*z1+1.2837247441527331e+00*f[205]*(z2*z2)+1.1858541225631423e+00*z0*f[16]+4.7841596538733949e-01*f[241]+1.6676073598544189e+01*z0*f[242]*(z4*z4)*(z1*z1)+6.8891899015776881e+00*z0*z4*f[130]*(z2*z2)+1.7787811838447134e+00*(z3*z3)*f[66]*z2+-6.6704294394176751e+00*z3*f[228]*(z4*z4)*(z2*z2)+1.3340858878835350e+01*z0*f[182]*(z1*z1)*(z2*z2)+1.2837247441527331e+00*(z4*z4)*f[212]+1.1481983169296148e+00*z3*z4*f[194]+1.0333784852366533e+01*(z3*z3)*f[201]*(z4*z4)*z1*z2+-5.9292706128157113e-01*z2*f[57]+1.0269797953221864e+00*f[35]*(z2*z2)+-1.0269797953221864e+00*z1*z2*f[113]+2.2234764798058917e+00*(z3*z3)*z4*f[225]+1.5909902576697319e+00*f[52]*z4*z1*z2+-1.6572815184059708e+00*z0*f[233]+-1.6572815184059708e+00*z0*f[232]+-3.9774756441743300e+00*z3*z0*z1*f[173]+-1.9887378220871650e+00*(z3*z3)*z2*f[180]; if (dir == 1) return -1.9887378220871650e+00*f[169]*z4*(z2*z2)+4.4469529596117834e+00*z3*z1*f[226]*z2+8.6114873769721108e+00*f[239]*(z4*z4)*z1*z2+-6.6704294394176751e+00*z0*(z4*z4)*f[231]*(z2*z2)+1.6676073598544189e+01*(z3*z3)*f[242]*z1*(z2*z2)+1.0269797953221864e+00*(z0*z0)*f[31]+-4.2790824805091104e-01*f[221]+-3.4445949507888440e+00*(z3*z3)*z0*z4*f[197]+2.3107045394749196e+01*(z0*z0)*f[210]*(z4*z4)*z1*z2+-1.7787811838447134e+00*z0*f[150]*z4*z2+-4.4469529596117834e+00*(z3*z3)*z1*f[183]+-5.9292706128157113e-01*f[67]*z2+1.0269797953221864e+00*(z2*z2)*f[36]+-1.1481983169296148e+00*(z2*z2)*f[140]+-3.4445949507888440e+00*z3*z0*f[200]*(z2*z2)+-3.8511742324581992e+00*(z3*z3)*f[204]*(z0*z0)+6.1618787719331189e+00*z0*z4*f[102]*z1*z2+1.0672687103068281e+01*z3*z0*z4*z1*f[148]*z2+-3.9774756441743300e+00*f[158]*z4*z1*z2+1.2837247441527331e+00*f[221]*(z4*z4)+-3.8511742324581992e+00*(z0*z0)*(z4*z4)*f[211]+2.3107045394749196e+01*(z0*z0)*z4*z1*(z2*z2)*f[206]+2.2234764798058917e+00*(z3*z3)*z2*f[229]+-4.2790824805091104e-01*f[204]+-1.9887378220871650e+00*z0*(z4*z4)*f[172]+1.2837247441527331e+00*(z0*z0)*f[216]+-7.7023484649163985e+00*z3*f[202]*z1*(z2*z2)+1.0333784852366533e+01*z3*(z0*z0)*z4*f[193]*(z2*z2)+4.9718445552179125e+00*(z0*z0)*f[234]*z1+-3.8511742324581992e+00*(z3*z3)*f[216]*(z4*z4)+4.3057436884860554e+00*(z4*z4)*f[240]*(z2*z2)+-1.3340858878835350e+01*(z3*z3)*z0*z1*z2*f[230]+-5.0028220795632564e+01*(z0*z0)*f[242]*(z4*z4)*z1*(z2*z2)+1.1932426932522990e+01*z3*(z4*z4)*f[176]*z1*z2+4.0022576636506052e+01*(z3*z3)*z0*(z4*z4)*z1*z2*f[230]+3.0809393859665595e+00*z3*(z4*z4)*z2*f[116]+4.4746600996961213e+01*(z3*z3)*(z0*z0)*z1*f[232]*(z2*z2)+-2.5834462130916332e+01*(z0*z0)*z4*z1*f[237]*(z2*z2)+-1.4915533665653737e+01*(z3*z3)*(z0*z0)*z1*f[232]+9.1855865354369182e-01*z0*z4*f[25]+1.1932426932522990e+01*(z3*z3)*z4*z1*f[167]*z2+-2.8704957923240366e+00*z0*z1*f[241]+1.6676073598544189e+01*(z0*z0)*f[242]*(z4*z4)*z1+-1.9887378220871650e+00*f[170]*(z4*z4)*z2+2.2234764798058917e+00*(z0*z0)*z4*f[224]+2.5674494883054662e+00*z3*f[202]*z1+2.0539595906443728e+00*f[34]*z1*z2+-1.9887378220871650e+00*(z3*z3)*z0*f[179]+-7.7023484649163985e+00*(z0*z0)*f[210]*z1*z2+-2.8704957923240366e+00*f[239]*z1*z2+-5.9292706128157113e-01*z3*f[84]+3.5575623676894268e+00*z3*z0*f[60]*z1+3.0809393859665595e+00*f[103]*z0*z4*(z2*z2)+-5.5586911995147297e+00*(z3*z3)*f[242]*z1+2.2234764798058917e+00*z0*(z4*z4)*f[231]+1.1932426932522990e+01*z3*z4*z1*(z2*z2)*f[163]+6.6291260736238833e-01*f[169]*z4+4.4746600996961213e+01*(z3*z3)*(z0*z0)*f[234]*(z4*z4)*z1+4.3057436884860554e+00*(z3*z3)*(z0*z0)*f[240]+-4.4469529596117834e+00*z1*f[188]*(z2*z2)+-1.2917231065458166e+01*(z3*z3)*(z0*z0)*f[240]*(z2*z2)+3.0809393859665595e+00*(z3*z3)*z0*z2*f[100]+4.9718445552179125e+00*f[233]*z1*(z2*z2)+2.3107045394749196e+01*(z3*z3)*z4*z1*(z2*z2)*f[209]+4.0022576636506052e+01*(z3*z3)*(z0*z0)*z4*z1*f[223]*z2+-1.0269797953221864e+00*f[103]*z0*z4+3.5575623676894268e+00*z4*z1*z2*f[71]+8.6114873769721108e+00*z0*z1*(z2*z2)*f[241]+8.6114873769721108e+00*(z0*z0)*z4*z1*f[237]+1.5909902576697319e+00*z3*z0*z4*f[53]+1.1553522697374598e+01*(z3*z3)*f[204]*(z0*z0)*(z2*z2)+-2.5834462130916332e+01*z0*(z4*z4)*z1*(z2*z2)*f[241]+-5.9292706128157113e-01*z0*f[65]+-7.7023484649163985e+00*(z3*z3)*z4*z1*f[209]+-7.7023484649163985e+00*z0*(z4*z4)*z1*f[217]+4.9718445552179125e+00*f[236]*(z4*z4)*z1+2.3107045394749196e+01*(z3*z3)*z0*z1*f[205]*(z2*z2)+-1.9887378220871650e+00*(z3*z3)*f[164]*z4+-1.3258252147247767e+00*z1*f[88]+-7.7023484649163985e+00*(z0*z0)*z1*z2*f[203]+-1.9887378220871650e+00*z3*(z0*z0)*f[153]+-3.4232659844072882e-01*f[31]+4.3057436884860554e+00*(z3*z3)*(z4*z4)*f[240]+3.0809393859665595e+00*z3*(z0*z0)*z2*f[97]+1.0333784852366533e+01*(z3*z3)*z0*z4*f[197]*(z2*z2)+-1.4915533665653737e+01*(z3*z3)*f[234]*(z4*z4)*z1+5.9662134662614950e+00*z3*(z0*z0)*(z4*z4)*f[173]+-1.3258252147247767e+00*f[86]*z1+-3.4445949507888440e+00*z3*(z4*z4)*z2*f[198]+-4.2790824805091104e-01*f[216]+1.1932426932522990e+01*(z3*z3)*z0*z4*z1*f[165]+-4.4469529596117834e+00*f[182]*z1*(z2*z2)+-6.6704294394176751e+00*(z0*z0)*(z4*z4)*z2*f[229]+3.5575623676894268e+00*z3*z4*z1*f[75]+-1.3340858878835350e+01*z3*z0*f[228]*(z4*z4)*z1+5.9662134662614950e+00*z0*(z4*z4)*(z2*z2)*f[172]+-3.4445949507888440e+00*z0*f[201]*(z4*z4)*z2+-1.6572815184059708e+00*z1*f[232]+-5.0028220795632564e+01*(z3*z3)*(z0*z0)*f[242]*z1*(z2*z2)+-1.0269797953221864e+00*f[112]*z4*z2+8.6114873769721108e+00*z3*(z4*z4)*z1*f[238]+6.6291260736238833e-01*z3*f[173]+3.4445949507888440e+00*(z4*z4)*(z2*z2)*f[140]+1.5909902576697319e+00*z3*f[55]*z4*z2+2.2234764798058917e+00*z3*f[227]*(z4*z4)+-5.9292706128157113e-01*z4*f[68]+-2.2963966338592297e+00*z3*z1*f[142]+-4.4469529596117834e+00*(z3*z3)*f[190]*z1+1.2837247441527331e+00*(z3*z3)*f[204]+3.0809393859665595e+00*z3*z0*(z4*z4)*f[114]+1.0333784852366533e+01*f[195]*(z3*z3)*(z0*z0)*z4*z2+5.3363435515341404e+00*z3*z0*f[149]*z4*(z2*z2)+-2.2963966338592297e+00*z1*f[117]*z2+-2.5834462130916332e+01*z3*(z0*z0)*z1*(z2*z2)*f[238]+-1.4352478961620183e+00*f[240]*(z2*z2)+-1.3258252147247767e+00*f[90]*z1+-1.9887378220871650e+00*(z0*z0)*f[155]*z2+-3.9774756441743300e+00*z0*z4*z1*f[160]+-5.9292706128157113e-01*z0*f[58]+1.1553522697374598e+01*(z0*z0)*(z4*z4)*f[211]*(z2*z2)+-1.4915533665653737e+01*(z3*z3)*z1*f[232]*(z2*z2)+-3.8511742324581992e+00*f[221]*(z4*z4)*(z2*z2)+2.5674494883054662e+00*z3*f[213]*z1+-2.2963966338592297e+00*f[129]*z4*z1+-3.4445949507888440e+00*z3*z0*(z4*z4)*f[200]+3.4445949507888440e+00*(z3*z3)*(z4*z4)*f[145]+4.4469529596117834e+00*z0*z4*f[225]*z1+-5.9292706128157113e-01*f[73]*z4+-1.9887378220871650e+00*z3*f[178]*(z4*z4)+-3.8511742324581992e+00*(z3*z3)*f[204]*(z2*z2)+5.3363435515341404e+00*z3*z0*(z4*z4)*z2*f[151]+-1.3258252147247767e+00*f[93]*z1+6.6291260736238833e-01*z0*f[172]+9.1855865354369182e-01*f[27]*z4*z2+1.1932426932522990e+01*z3*(z0*z0)*f[161]*z4*z1+-6.6704294394176751e+00*z3*f[227]*(z4*z4)*(z2*z2)+-7.4115882660196386e-01*z4*f[224]+3.0809393859665595e+00*(z3*z3)*f[112]*z4*z2+3.0809393859665595e+00*z3*f[109]*z4*(z2*z2)+-6.6704294394176751e+00*(z0*z0)*z4*(z2*z2)*f[224]+2.0539595906443728e+00*z3*z1*f[38]+4.9718445552179125e+00*z1*f[232]*(z2*z2)+8.6114873769721108e+00*z4*z1*f[237]*(z2*z2)+1.7787811838447134e+00*(z4*z4)*f[82]*z2+2.3107045394749196e+01*z0*(z4*z4)*z1*(z2*z2)*f[212]+-1.1481983169296148e+00*(z2*z2)*f[128]+3.8751693196374497e+01*(z3*z3)*(z0*z0)*(z4*z4)*f[240]*(z2*z2)+3.0809393859665595e+00*z3*(z0*z0)*z4*f[104]+-3.4445949507888440e+00*z3*(z0*z0)*z2*f[198]+-3.9774756441743300e+00*z0*f[156]*z1*z2+5.9662134662614950e+00*(z3*z3)*(z0*z0)*f[155]*z2+-1.4915533665653737e+01*(z3*z3)*f[236]*(z4*z4)*z1+-2.5834462130916332e+01*(z3*z3)*(z0*z0)*f[239]*z1*z2+-1.3340858878835350e+01*z3*(z4*z4)*z1*f[226]*z2+1.6676073598544189e+01*f[242]*(z4*z4)*z1*(z2*z2)+9.1855865354369182e-01*z3*z0*f[22]+-3.9774756441743300e+00*z3*z0*z1*f[174]+-3.4445949507888440e+00*f[195]*(z0*z0)*z4*z2+3.0809393859665595e+00*(z0*z0)*z4*f[101]*z2+2.7556759606310752e+00*z3*z0*f[96]*z4*z2+-3.8511742324581992e+00*f[204]*(z0*z0)*(z2*z2)+3.8273277230987157e-01*f[118]+-7.7023484649163985e+00*z4*z1*(z2*z2)*f[206]+2.5674494883054662e+00*z4*z1*f[209]+6.8891899015776881e+00*z3*(z0*z0)*z1*f[120]+8.6114873769721108e+00*z3*(z0*z0)*z1*f[238]+6.8891899015776881e+00*f[138]*(z4*z4)*z1*z2+3.8273277230987157e-01*f[135]+-6.8891899015776881e+00*z0*f[196]*z4*z1*z2+-7.4115882660196386e-01*z0*f[231]+1.7787811838447134e+00*z0*f[58]*(z2*z2)+3.4445949507888440e+00*(z3*z3)*(z0*z0)*f[123]+6.1618787719331189e+00*z3*z0*z1*f[98]*z2+-7.7023484649163985e+00*(z0*z0)*z4*z1*f[206]+-3.9774756441743300e+00*z3*f[176]*z1*z2+-2.5834462130916332e+01*(z0*z0)*f[239]*(z4*z4)*z1*z2+-7.7023484649163985e+00*z3*(z4*z4)*z1*f[215]+4.9718445552179125e+00*f[234]*(z4*z4)*z1+1.4823176532039277e+00*z1*f[185]+1.7787811838447134e+00*(z3*z3)*z4*f[78]+-1.6572815184059708e+00*f[234]*z1+-7.7023484649163985e+00*f[210]*(z4*z4)*z1*z2+1.1481983169296148e+00*z3*z4*f[193]+6.6291260736238833e-01*f[181]*z2+1.2837247441527331e+00*(z4*z4)*f[211]+8.6114873769721108e+00*(z3*z3)*f[239]*z1*z2+3.5575623676894268e+00*z3*z1*z2*f[62]+-1.6572815184059708e+00*f[236]*z1+5.9662134662614950e+00*z3*(z0*z0)*f[153]*(z2*z2)+1.7787811838447134e+00*(z0*z0)*z4*f[68]+-6.6704294394176751e+00*(z3*z3)*z0*(z4*z4)*f[231]+3.9774756441743300e+00*z1*f[88]*(z2*z2)+1.1553522697374598e+01*f[221]*(z3*z3)*(z4*z4)*(z2*z2)+4.4469529596117834e+00*z3*z0*f[228]*z1+-6.8891899015776881e+00*z3*z0*z4*z1*f[194]+-1.4915533665653737e+01*f[236]*(z4*z4)*z1*(z2*z2)+4.9718445552179125e+00*(z0*z0)*z1*f[232]+8.6114873769721108e+00*(z3*z3)*z0*z1*f[241]+-2.5834462130916332e+01*(z3*z3)*z0*(z4*z4)*z1*f[241]+1.5909902576697319e+00*f[52]*z0*z4*z2+-1.0269797953221864e+00*z0*z2*f[113]+-7.7023484649163985e+00*z3*f[213]*(z4*z4)*z1+-6.6704294394176751e+00*(z3*z3)*(z0*z0)*z4*f[224]+4.0022576636506052e+01*z3*(z0*z0)*(z4*z4)*z1*f[226]*z2+1.3340858878835350e+01*(z0*z0)*(z4*z4)*z1*f[186]+6.6291260736238833e-01*f[155]*z2+1.2837247441527331e+00*(z0*z0)*f[211]+6.8891899015776881e+00*z0*(z4*z4)*z1*f[136]+3.9774756441743300e+00*f[93]*(z4*z4)*z1+4.3057436884860554e+00*(z0*z0)*f[240]*(z2*z2)+-1.0269797953221864e+00*z0*z2*f[100]+1.7787811838447134e+00*z3*(z0*z0)*f[59]+-3.9774756441743300e+00*z3*z0*z1*f[154]+-1.7787811838447134e+00*z3*z4*f[147]*z2+-3.4232659844072882e-01*f[48]+-7.7023484649163985e+00*z0*z1*(z2*z2)*f[212]+4.0022576636506052e+01*z3*z0*f[228]*(z4*z4)*z1*(z2*z2)+5.3033008588991060e-01*z0*f[6]+-2.2963966338592297e+00*z4*z1*f[131]+1.5909902576697319e+00*z3*z0*f[51]*z2+5.9662134662614950e+00*(z3*z3)*f[169]*z4*(z2*z2)+2.0539595906443728e+00*z4*z1*f[44]+1.1481983169296148e+00*z0*z4*f[197]+-5.5586911995147297e+00*f[242]*z1*(z2*z2)+-6.6704294394176751e+00*z3*f[227]*(z0*z0)*(z2*z2)+-7.7023484649163985e+00*(z0*z0)*f[207]*z4*z1+-1.9887378220871650e+00*z4*f[159]*(z2*z2)+4.7841596538733949e-01*f[240]+2.0011288318253026e+01*z3*f[227]*(z0*z0)*(z4*z4)*(z2*z2)+6.6291260736238833e-01*z0*f[157]+-3.8511742324581992e+00*f[221]*(z3*z3)*(z2*z2)+3.0809393859665595e+00*z3*z0*f[99]*(z2*z2)+-1.3340858878835350e+01*(z3*z3)*z4*z1*f[223]*z2+2.3107045394749196e+01*(z3*z3)*f[219]*(z4*z4)*z1*z2+3.9774756441743300e+00*(z0*z0)*f[86]*z1+1.2837247441527331e+00*(z3*z3)*f[216]+4.0022576636506052e+01*(z3*z3)*z0*z4*f[225]*z1*(z2*z2)+-1.4915533665653737e+01*(z0*z0)*f[233]*(z4*z4)*z1+4.4469529596117834e+00*z3*f[222]*z4*z1+-1.2917231065458166e+01*(z3*z3)*(z4*z4)*f[240]*(z2*z2)+1.3340858878835350e+01*(z4*z4)*z1*f[188]*(z2*z2)+-5.9292706128157113e-01*f[82]*z2+-1.4915533665653737e+01*(z3*z3)*(z0*z0)*f[234]*z1+2.5674494883054662e+00*z0*z1*f[212]+2.2234764798058917e+00*(z4*z4)*z2*f[229]+1.4823176532039277e+00*f[182]*z1+2.0667569704733065e+01*z3*(z0*z0)*z4*z1*z2*f[192]+4.3057436884860554e+00*(z3*z3)*f[240]*(z2*z2)+3.9774756441743300e+00*(z3*z3)*f[90]*z1+1.1481983169296148e+00*z3*z2*f[198]+1.0269797953221864e+00*(z4*z4)*f[48]+-3.9774756441743300e+00*z3*z4*z1*f[163]+-1.0269797953221864e+00*z3*z4*f[104]+1.3340858878835350e+01*(z0*z0)*f[182]*z1*(z2*z2)+6.1618787719331189e+00*z3*z4*z1*z2*f[107]+3.4445949507888440e+00*(z0*z0)*(z4*z4)*f[135]+-7.7023484649163985e+00*(z3*z3)*z0*z1*f[205]+-1.4915533665653737e+01*f[233]*(z4*z4)*z1*(z2*z2)+4.9718445552179125e+00*(z3*z3)*z1*f[232]+6.8891899015776881e+00*(z3*z3)*z0*z1*f[124]+-6.8891899015776881e+00*z3*z0*f[199]*z1*z2+-5.9292706128157113e-01*z3*f[59]+6.6291260736238833e-01*f[170]*z2+2.5674494883054662e+00*z1*z2*f[203]+7.7503386392748993e+01*(z3*z3)*(z0*z0)*f[239]*(z4*z4)*z1*z2+1.3340858878835350e+01*(z3*z3)*f[190]*(z4*z4)*z1+-1.7787811838447134e+00*z3*z0*f[149]*z4+-1.1481983169296148e+00*f[118]*(z2*z2)+1.1858541225631423e+00*z1*f[17]+-7.7023484649163985e+00*z3*(z0*z0)*f[213]*z1+8.6114873769721108e+00*z0*(z4*z4)*z1*f[241]+1.6676073598544189e+01*(z3*z3)*(z0*z0)*f[242]*z1+-1.9887378220871650e+00*z0*(z2*z2)*f[157]+1.4823176532039277e+00*f[190]*z1+2.0667569704733065e+01*(z3*z3)*z0*f[196]*z4*z1*z2+1.1481983169296148e+00*f[195]*z4*z2+4.4746600996961213e+01*(z3*z3)*f[236]*(z4*z4)*z1*(z2*z2)+-3.8511742324581992e+00*(z4*z4)*f[211]*(z2*z2)+-6.6704294394176751e+00*(z3*z3)*(z0*z0)*z2*f[229]+3.0618621784789724e-01*f[2]+-3.4445949507888440e+00*z3*z4*f[193]*(z2*z2)+2.3107045394749196e+01*z3*(z0*z0)*f[202]*z1*(z2*z2)+-1.4352478961620183e+00*(z4*z4)*f[240]+-3.4445949507888440e+00*z3*(z0*z0)*z4*f[193]+2.3107045394749196e+01*(z3*z3)*(z0*z0)*f[207]*z4*z1+6.8891899015776881e+00*(z3*z3)*z1*z2*f[126]+-6.6704294394176751e+00*(z3*z3)*z4*(z2*z2)*f[224]+1.7787811838447134e+00*f[80]*z0*(z4*z4)+1.1553522697374598e+01*(z3*z3)*(z0*z0)*f[216]*(z4*z4)+1.1481983169296148e+00*z3*z0*f[200]+5.9662134662614950e+00*(z3*z3)*z0*(z4*z4)*f[179]+-4.4469529596117834e+00*z1*f[185]*(z2*z2)+-1.1481983169296148e+00*(z3*z3)*f[123]+6.8891899015776881e+00*(z0*z0)*z1*f[117]*z2+4.4469529596117834e+00*z4*z1*f[223]*z2+-7.7023484649163985e+00*f[219]*(z4*z4)*z1*z2+1.7787811838447134e+00*(z3*z3)*z0*f[65]+-1.4915533665653737e+01*(z3*z3)*f[236]*z1*(z2*z2)+1.1481983169296148e+00*z0*f[201]*z2+-3.9774756441743300e+00*z0*z1*z2*f[171]+-1.6572815184059708e+00*f[233]*z1+1.4823176532039277e+00*z1*f[188]+-1.3340858878835350e+01*z3*(z0*z0)*z1*f[226]*z2+-2.2963966338592297e+00*z3*z1*f[120]+-2.8704957923240366e+00*z3*z1*f[238]+6.8891899015776881e+00*z3*f[122]*z1*(z2*z2)+2.2234764798058917e+00*z0*f[231]*(z2*z2)+1.3340858878835350e+01*(z3*z3)*(z0*z0)*z1*f[183]+2.3107045394749196e+01*z3*(z4*z4)*z1*(z2*z2)*f[215]+6.8891899015776881e+00*z3*(z4*z4)*z1*f[142]+-1.9887378220871650e+00*z3*f[178]*(z2*z2)+-4.2790824805091104e-01*f[211]+6.6291260736238833e-01*f[164]*z4+-1.4352478961620183e+00*(z0*z0)*f[240]+3.5575623676894268e+00*z0*z4*z1*f[69]+1.2837247441527331e+00*f[211]*(z2*z2)+8.6114873769721108e+00*z3*z1*(z2*z2)*f[238]+2.0011288318253026e+01*(z3*z3)*(z0*z0)*z4*(z2*z2)*f[224]+-7.7023484649163985e+00*(z3*z3)*f[207]*z4*z1+-1.2917231065458166e+01*(z0*z0)*(z4*z4)*f[240]*(z2*z2)+1.1932426932522990e+01*z0*(z4*z4)*z1*z2*f[171]+1.1932426932522990e+01*(z3*z3)*z0*f[156]*z1*z2+-3.8511742324581992e+00*f[221]*(z3*z3)*(z4*z4)+-2.5834462130916332e+01*(z3*z3)*z4*z1*f[237]*(z2*z2)+-1.0269797953221864e+00*z3*z2*f[116]+-5.9292706128157113e-01*f[56]*z2+6.8891899015776881e+00*(z3*z3)*z4*z1*f[133]+-2.5834462130916332e+01*z3*(z0*z0)*(z4*z4)*z1*f[238]+-4.4469529596117834e+00*(z4*z4)*z1*f[188]+5.9662134662614950e+00*z3*f[178]*(z4*z4)*(z2*z2)+-1.3340858878835350e+01*(z3*z3)*z0*z4*f[225]*z1+-1.0269797953221864e+00*z3*z0*f[99]+1.2837247441527331e+00*f[221]*(z3*z3)+-6.6704294394176751e+00*z3*f[227]*(z0*z0)*(z4*z4)+1.7787811838447134e+00*f[73]*z4*(z2*z2)+-1.3340858878835350e+01*z0*z4*f[225]*z1*(z2*z2)+6.6291260736238833e-01*z4*f[159]+-7.7023484649163985e+00*(z3*z3)*f[219]*z1*z2+-4.4469529596117834e+00*(z0*z0)*z1*f[186]+2.2234764798058917e+00*z3*f[227]*(z0*z0)+1.0333784852366533e+01*z3*z0*(z4*z4)*f[200]*(z2*z2)+1.8528970665049098e+00*f[242]*z1+-1.9887378220871650e+00*z3*f[153]*(z2*z2)+-1.9887378220871650e+00*(z3*z3)*f[169]*z4+6.6291260736238833e-01*z0*f[179]+1.7787811838447134e+00*f[64]*z3*(z2*z2)+1.0269797953221864e+00*(z3*z3)*f[41]+1.0333784852366533e+01*z3*(z0*z0)*(z4*z4)*z2*f[198]+-1.2917231065458166e+01*(z3*z3)*(z0*z0)*(z4*z4)*f[240]+-5.9292706128157113e-01*f[80]*z0+-3.8511742324581992e+00*(z3*z3)*(z0*z0)*f[216]+1.2837247441527331e+00*f[216]*(z4*z4)+-2.8704957923240366e+00*z4*z1*f[237]+-1.9887378220871650e+00*z0*(z2*z2)*f[172]+-7.4115882660196386e-01*z2*f[229]+-1.1481983169296148e+00*(z3*z3)*f[128]+-1.0269797953221864e+00*z3*f[109]*z4+-1.4915533665653737e+01*(z0*z0)*f[233]*z1*(z2*z2)+-6.8891899015776881e+00*z3*z4*z1*z2*f[192]+-2.2963966338592297e+00*f[138]*z1*z2+2.5674494883054662e+00*f[210]*z1*z2+-5.0028220795632564e+01*(z3*z3)*f[242]*(z4*z4)*z1*(z2*z2)+2.5674494883054662e+00*z0*z1*f[217]+1.1932426932522990e+01*f[158]*(z0*z0)*z4*z1*z2+8.6114873769721108e+00*(z0*z0)*f[239]*z1*z2+-1.0269797953221864e+00*z0*z4*f[110]+-3.4445949507888440e+00*f[195]*(z3*z3)*z4*z2+5.9662134662614950e+00*(z0*z0)*f[170]*(z4*z4)*z2+-1.1481983169296148e+00*(z3*z3)*f[145]+-1.1481983169296148e+00*(z4*z4)*f[140]+5.9662134662614950e+00*(z3*z3)*(z0*z0)*f[164]*z4+1.2837247441527331e+00*f[204]*(z0*z0)+-1.9887378220871650e+00*f[181]*(z4*z4)*z2+1.7787811838447134e+00*(z3*z3)*f[67]*z2+-5.5586911995147297e+00*f[242]*(z4*z4)*z1+6.1618787719331189e+00*z3*z0*z4*f[105]*z1+1.1932426932522990e+01*f[152]*z3*(z0*z0)*z1*z2+1.4823176532039277e+00*z1*f[183]+-5.9292706128157113e-01*f[64]*z3+-1.9887378220871650e+00*(z3*z3)*z0*f[157]+6.6291260736238833e-01*z3*f[153]+-3.4445949507888440e+00*z0*z4*f[197]*(z2*z2)+2.0539595906443728e+00*z0*f[32]*z1+1.7787811838447134e+00*z3*(z4*z4)*f[84]+1.1932426932522990e+01*z0*z4*z1*(z2*z2)*f[160]+8.6114873769721108e+00*(z3*z3)*z4*z1*f[237]+4.3057436884860554e+00*(z0*z0)*(z4*z4)*f[240]+2.0011288318253026e+01*(z3*z3)*(z0*z0)*(z4*z4)*z2*f[229]+-3.4232659844072882e-01*f[41]+7.7503386392748993e+01*z3*(z0*z0)*(z4*z4)*z1*(z2*z2)*f[238]+-3.9774756441743300e+00*z0*z4*z1*f[165]+7.7503386392748993e+01*(z3*z3)*(z0*z0)*z4*z1*f[237]*(z2*z2)+-1.9887378220871650e+00*(z0*z0)*f[164]*z4+-4.4469529596117834e+00*(z4*z4)*z1*f[186]+3.5575623676894268e+00*z0*z1*z2*f[57]+9.1855865354369182e-01*z3*z2*f[24]+-1.3340858878835350e+01*(z0*z0)*z4*z1*f[223]*z2+1.6676073598544189e+01*(z3*z3)*f[242]*(z4*z4)*z1+5.9662134662614950e+00*(z3*z3)*f[181]*(z4*z4)*z2+3.8273277230987157e-01*f[128]+-7.7023484649163985e+00*z3*z1*(z2*z2)*f[215]+2.3107045394749196e+01*(z3*z3)*(z0*z0)*z1*z2*f[203]+3.8273277230987157e-01*f[145]+4.9718445552179125e+00*(z0*z0)*f[233]*z1+-7.7023484649163985e+00*z0*z1*f[205]*(z2*z2)+3.0809393859665595e+00*(z3*z3)*z0*z4*f[110]+2.3107045394749196e+01*(z3*z3)*z0*(z4*z4)*z1*f[217]+-7.7023484649163985e+00*(z3*z3)*z0*z1*f[217]+5.3033008588991060e-01*z4*f[13]+9.1855865354369182e-01*z3*z4*f[29]+-2.2963966338592297e+00*z4*z1*f[133]+5.3033008588991060e-01*z2*f[8]+6.8891899015776881e+00*z4*z1*(z2*z2)*f[131]+-1.1481983169296148e+00*(z4*z4)*f[135]+4.9718445552179125e+00*f[233]*(z4*z4)*z1+-1.9887378220871650e+00*z3*(z0*z0)*f[173]+-1.3340858878835350e+01*z3*f[222]*z4*z1*(z2*z2)+4.4746600996961213e+01*(z0*z0)*f[233]*(z4*z4)*z1*(z2*z2)+1.2837247441527331e+00*f[221]*(z2*z2)+-4.4469529596117834e+00*(z0*z0)*f[182]*z1+-1.4352478961620183e+00*(z3*z3)*f[240]+5.3033008588991060e-01*f[10]*z3+2.5674494883054662e+00*f[207]*z4*z1+5.9662134662614950e+00*(z0*z0)*z4*f[159]*(z2*z2)+-1.9887378220871650e+00*(z3*z3)*f[155]*z2+3.8273277230987157e-01*f[123]+6.6291260736238833e-01*z3*f[178]+1.6676073598544189e+01*(z0*z0)*f[242]*z1*(z2*z2)+-2.2963966338592297e+00*z3*f[122]*z1+6.8891899015776881e+00*z0*f[119]*z1*(z2*z2)+1.5008466238689769e+02*(z3*z3)*(z0*z0)*f[242]*(z4*z4)*z1*(z2*z2)+3.4445949507888440e+00*(z0*z0)*f[118]*(z2*z2)+1.0333784852366533e+01*(z3*z3)*z0*f[201]*(z4*z4)*z2+4.9718445552179125e+00*(z3*z3)*f[236]*z1+-1.3340858878835350e+01*z0*(z4*z4)*z1*z2*f[230]+-3.9774756441743300e+00*z3*f[161]*z4*z1+2.5674494883054662e+00*f[219]*z1*z2+-1.9887378220871650e+00*(z0*z0)*f[170]*z2+-7.7023484649163985e+00*z3*(z0*z0)*f[202]*z1+2.0667569704733065e+01*z3*z0*(z4*z4)*f[199]*z1*z2+1.3340858878835350e+01*(z3*z3)*z1*f[185]*(z2*z2)+-1.9887378220871650e+00*z0*(z4*z4)*f[179]+-1.1481983169296148e+00*(z0*z0)*f[135]+-7.7023484649163985e+00*z0*(z4*z4)*z1*f[212]+4.0022576636506052e+01*z3*(z0*z0)*f[222]*z4*z1*(z2*z2)+2.2234764798058917e+00*(z3*z3)*z0*f[231]+-1.1481983169296148e+00*(z0*z0)*f[123]+-1.0269797953221864e+00*z3*z0*f[114]+-7.4115882660196386e-01*z3*f[227]+9.1855865354369182e-01*z0*f[21]*z2+-1.0269797953221864e+00*z3*z2*f[97]+2.2234764798058917e+00*(z0*z0)*z2*f[229]+-1.9887378220871650e+00*(z3*z3)*f[181]*z2+-1.4915533665653737e+01*(z0*z0)*z1*f[232]*(z2*z2)+-3.8511742324581992e+00*(z0*z0)*f[216]*(z4*z4)+-1.3340858878835350e+01*z3*(z0*z0)*f[222]*z4*z1+-2.2963966338592297e+00*z1*z2*f[126]+2.0667569704733065e+01*z3*z0*z4*z1*f[194]*(z2*z2)+2.2234764798058917e+00*z4*(z2*z2)*f[224]+4.4469529596117834e+00*z0*z1*z2*f[230]+-1.3340858878835350e+01*z3*z0*f[228]*z1*(z2*z2)+4.9718445552179125e+00*(z3*z3)*f[234]*z1+-1.9887378220871650e+00*z3*(z4*z4)*f[173]+-5.9292706128157113e-01*z4*f[78]+-4.4469529596117834e+00*(z3*z3)*z1*f[185]+-4.4469529596117834e+00*(z0*z0)*z1*f[183]+-1.7787811838447134e+00*z3*z0*z2*f[151]+2.2234764798058917e+00*z3*f[227]*(z2*z2)+2.0011288318253026e+01*(z3*z3)*z0*(z4*z4)*f[231]*(z2*z2)+-6.6704294394176751e+00*(z3*z3)*z0*f[231]*(z2*z2)+-2.5834462130916332e+01*(z3*z3)*f[239]*(z4*z4)*z1*z2+5.3363435515341404e+00*z3*(z0*z0)*z4*f[147]*z2+-3.4445949507888440e+00*(z3*z3)*z0*f[201]*z2+4.9718445552179125e+00*f[236]*z1*(z2*z2)+-3.4232659844072882e-01*f[36]+3.8273277230987157e-01*f[140]+6.8891899015776881e+00*(z0*z0)*f[129]*z4*z1+5.3363435515341404e+00*(z3*z3)*z0*f[150]*z4*z2+1.1932426932522990e+01*z3*z0*z1*f[154]*(z2*z2)+2.5674494883054662e+00*z0*z1*f[205]+1.7787811838447134e+00*(z0*z0)*f[56]*z2+-2.5834462130916332e+01*z3*(z4*z4)*z1*(z2*z2)*f[238]+-1.4915533665653737e+01*(z0*z0)*f[234]*(z4*z4)*z1+-2.2963966338592297e+00*z0*z1*f[136]+2.5674494883054662e+00*z3*z1*f[215]+2.5674494883054662e+00*z4*z1*f[206]+7.7503386392748993e+01*(z3*z3)*z0*(z4*z4)*z1*(z2*z2)*f[241]+-2.5834462130916332e+01*(z3*z3)*(z0*z0)*z4*z1*f[237]+-3.8511742324581992e+00*(z0*z0)*f[211]*(z2*z2)+-2.5834462130916332e+01*(z3*z3)*z0*z1*(z2*z2)*f[241]+-6.6704294394176751e+00*(z3*z3)*(z4*z4)*z2*f[229]+3.4445949507888440e+00*(z3*z3)*(z2*z2)*f[128]+-7.7023484649163985e+00*z4*z1*(z2*z2)*f[209]+-3.9774756441743300e+00*f[152]*z3*z1*z2+-1.1481983169296148e+00*(z4*z4)*f[145]+1.2837247441527331e+00*f[204]*(z2*z2)+-4.4469529596117834e+00*f[190]*(z4*z4)*z1+-1.1481983169296148e+00*(z0*z0)*f[118]+1.1932426932522990e+01*z3*z0*(z4*z4)*z1*f[174]+-5.0028220795632564e+01*(z3*z3)*(z0*z0)*f[242]*(z4*z4)*z1+5.9662134662614950e+00*(z3*z3)*z0*(z2*z2)*f[157]+-2.2963966338592297e+00*z0*f[119]*z1+-5.5586911995147297e+00*(z0*z0)*f[242]*z1+1.4823176532039277e+00*z1*f[186]+3.0809393859665595e+00*z0*(z4*z4)*z2*f[113]+-3.9774756441743300e+00*z4*z1*f[167]*z2+-7.7023484649163985e+00*(z3*z3)*z1*z2*f[203]+-1.9887378220871650e+00*(z0*z0)*z4*f[159]+-2.2963966338592297e+00*z0*z1*f[124]+2.3107045394749196e+01*z3*(z0*z0)*f[213]*(z4*z4)*z1+-1.0269797953221864e+00*z4*f[101]*z2+2.2234764798058917e+00*(z3*z3)*z4*f[224]; if (dir == 2) return 1.2837247441527331e+00*f[210]*(z1*z1)+4.3057436884860554e+00*(z0*z0)*f[239]*(z1*z1)+5.9662134662614950e+00*f[152]*z3*(z0*z0)*(z1*z1)+-3.9774756441743300e+00*z0*z4*f[168]*z2+4.4469529596117834e+00*z4*z1*z2*f[224]+2.2234764798058917e+00*z4*(z1*z1)*f[223]+2.3107045394749196e+01*z3*(z0*z0)*f[202]*(z1*z1)*z2+-1.9887378220871650e+00*(z0*z0)*z4*f[166]+6.8891899015776881e+00*(z3*z3)*z4*z2*f[134]+2.2234764798058917e+00*z3*(z0*z0)*f[226]+-6.6704294394176751e+00*z3*(z0*z0)*(z1*z1)*f[226]+5.9662134662614950e+00*z3*(z0*z0)*f[175]*(z4*z4)+6.1618787719331189e+00*z3*z0*f[99]*z1*z2+-1.9887378220871650e+00*f[158]*(z0*z0)*z4+5.3363435515341404e+00*z3*z0*(z4*z4)*z1*f[151]+3.8273277230987157e-01*f[137]+-2.5834462130916332e+01*z0*(z4*z4)*(z1*z1)*z2*f[241]+-3.9774756441743300e+00*z4*z1*f[159]*z2+5.9662134662614950e+00*z0*(z4*z4)*(z1*z1)*f[171]+1.1553522697374598e+01*(z3*z3)*(z0*z0)*(z1*z1)*f[203]+-1.4915533665653737e+01*(z0*z0)*(z4*z4)*z2*f[235]+-7.7023484649163985e+00*f[221]*(z3*z3)*z1*z2+9.1855865354369182e-01*z0*z1*f[21]+-3.4445949507888440e+00*z3*(z0*z0)*z1*f[198]+1.1481983169296148e+00*z3*z0*f[199]+-1.2917231065458166e+01*(z3*z3)*(z0*z0)*f[239]*(z4*z4)+4.0022576636506052e+01*z3*f[227]*(z0*z0)*(z4*z4)*z1*z2+-1.3340858878835350e+01*(z3*z3)*z0*z4*f[225]*z2+2.5674494883054662e+00*f[204]*z1*z2+-1.4915533665653737e+01*(z3*z3)*f[236]*(z1*z1)*z2+1.8528970665049098e+00*f[242]*z2+6.8891899015776881e+00*z3*f[122]*(z1*z1)*z2+-2.5834462130916332e+01*(z3*z3)*(z0*z0)*z1*f[240]*z2+5.9662134662614950e+00*(z3*z3)*z0*f[156]*(z1*z1)+3.0809393859665595e+00*z3*z4*(z1*z1)*f[107]+-1.3340858878835350e+01*z3*f[227]*(z0*z0)*z1*z2+-1.3258252147247767e+00*f[88]*z2+2.5674494883054662e+00*z0*f[205]*z2+8.6114873769721108e+00*z3*(z0*z0)*z2*f[238]+-2.5834462130916332e+01*z3*(z0*z0)*(z1*z1)*z2*f[238]+3.5575623676894268e+00*z0*z4*f[72]*z2+2.5674494883054662e+00*z4*z2*f[209]+1.1932426932522990e+01*(z3*z3)*f[169]*z4*z1*z2+6.8891899015776881e+00*(z0*z0)*z4*f[130]*z2+5.3363435515341404e+00*z3*(z0*z0)*z4*z1*f[147]+1.3340858878835350e+01*(z0*z0)*f[182]*(z1*z1)*z2+-3.8511742324581992e+00*f[219]*(z4*z4)*(z1*z1)+2.2234764798058917e+00*z0*(z4*z4)*f[230]+2.0539595906443728e+00*z0*f[35]*z2+-7.7023484649163985e+00*z3*(z4*z4)*z2*f[215]+-2.5834462130916332e+01*(z3*z3)*z4*(z1*z1)*f[237]*z2+-1.0269797953221864e+00*z0*z4*f[111]+-1.1481983169296148e+00*(z0*z0)*f[117]+-3.9774756441743300e+00*z3*z0*f[154]*z2+-1.4915533665653737e+01*(z3*z3)*(z0*z0)*f[232]*z2+1.0333784852366533e+01*(z3*z3)*z0*f[196]*z4*(z1*z1)+4.4746600996961213e+01*(z3*z3)*f[236]*(z4*z4)*(z1*z1)*z2+-1.9887378220871650e+00*f[181]*(z4*z4)*z1+2.3107045394749196e+01*z3*(z0*z0)*(z4*z4)*f[214]*z2+-1.4915533665653737e+01*f[233]*(z4*z4)*(z1*z1)*z2+-5.5586911995147297e+00*f[242]*(z4*z4)*z2+1.7787811838447134e+00*(z3*z3)*f[67]*z1+-3.4445949507888440e+00*f[195]*(z3*z3)*z4*z1+-7.7023484649163985e+00*(z0*z0)*z4*z2*f[206]+5.9662134662614950e+00*(z0*z0)*f[170]*(z4*z4)*z1+-4.2790824805091104e-01*f[210]+-4.4469529596117834e+00*(z4*z4)*f[191]*z2+-1.4915533665653737e+01*(z0*z0)*f[233]*(z1*z1)*z2+-2.5834462130916332e+01*(z3*z3)*z0*(z4*z4)*z2*f[241]+-1.0269797953221864e+00*z0*z1*f[113]+-1.9887378220871650e+00*f[152]*z3*(z1*z1)+8.6114873769721108e+00*(z3*z3)*z0*z2*f[241]+-3.4445949507888440e+00*z3*z4*(z1*z1)*f[192]+2.3107045394749196e+01*(z0*z0)*z4*(z1*z1)*z2*f[206]+1.4823176532039277e+00*f[182]*z2+3.5575623676894268e+00*z3*z0*f[63]*z2+-1.1481983169296148e+00*f[137]*(z4*z4)+1.7787811838447134e+00*z3*(z4*z4)*f[85]+6.6291260736238833e-01*z0*f[171]+-1.4352478961620183e+00*f[239]*(z4*z4)+-3.8511742324581992e+00*(z0*z0)*f[210]*(z4*z4)+6.6291260736238833e-01*f[158]*z4+-4.4469529596117834e+00*(z1*z1)*f[185]*z2+-3.4232659844072882e-01*f[34]+1.7787811838447134e+00*(z0*z0)*z1*f[56]+-1.0269797953221864e+00*z0*z1*f[100]+2.0539595906443728e+00*z4*f[45]*z2+1.2837247441527331e+00*(z1*z1)*f[203]+6.6291260736238833e-01*f[170]*z1+1.6676073598544189e+01*(z3*z3)*(z0*z0)*f[242]*z2+1.4823176532039277e+00*f[191]*z2+1.1481983169296148e+00*f[195]*z4*z1+1.1932426932522990e+01*(z3*z3)*z0*z1*z2*f[157]+2.5674494883054662e+00*z3*f[214]*z2+8.6114873769721108e+00*(z4*z4)*z1*f[240]*z2+-5.0028220795632564e+01*(z3*z3)*f[242]*(z4*z4)*(z1*z1)*z2+-1.1481983169296148e+00*(z0*z0)*f[125]+4.9718445552179125e+00*(z3*z3)*z2*f[235]+4.4469529596117834e+00*z3*f[227]*z1*z2+-5.9292706128157113e-01*z3*f[61]+6.8891899015776881e+00*(z3*z3)*z0*f[127]*z2+1.2837247441527331e+00*f[219]*(z1*z1)+1.0333784852366533e+01*z3*z0*(z4*z4)*f[199]*(z1*z1)+8.6114873769721108e+00*z0*(z1*z1)*z2*f[241]+2.3107045394749196e+01*(z3*z3)*z4*(z1*z1)*z2*f[209]+-2.2963966338592297e+00*z4*z2*f[131]+2.2234764798058917e+00*z3*(z4*z4)*f[226]+-1.6572815184059708e+00*f[233]*z2+-1.6572815184059708e+00*f[232]*z2+2.3107045394749196e+01*f[221]*(z3*z3)*(z4*z4)*z1*z2+1.1481983169296148e+00*z0*f[201]*z1+2.5674494883054662e+00*z0*z2*f[212]+-3.4232659844072882e-01*f[42]+2.0667569704733065e+01*(z3*z3)*z0*z4*z1*f[197]*z2+3.4445949507888440e+00*(z3*z3)*(z4*z4)*f[146]+-2.2963966338592297e+00*z3*f[121]*z2+2.5674494883054662e+00*z0*f[220]*z2+1.1932426932522990e+01*z3*z4*(z1*z1)*z2*f[163]+-2.8704957923240366e+00*z4*f[237]*z2+1.1481983169296148e+00*z0*f[196]*z4+-5.9292706128157113e-01*z0*f[81]+3.8273277230987157e-01*f[125]+8.6114873769721108e+00*(z3*z3)*z1*f[240]*z2+3.8273277230987157e-01*f[138]+-1.3340858878835350e+01*z0*z4*f[225]*(z1*z1)*z2+-5.9292706128157113e-01*z0*f[66]+4.4746600996961213e+01*(z0*z0)*f[233]*(z4*z4)*(z1*z1)*z2+-1.3340858878835350e+01*z3*f[222]*z4*(z1*z1)*z2+4.4469529596117834e+00*z0*z1*f[231]*z2+-2.2963966338592297e+00*z0*f[127]*z2+-1.1481983169296148e+00*(z1*z1)*f[126]+-1.3340858878835350e+01*z3*(z0*z0)*f[222]*z4*z2+-1.3258252147247767e+00*z2*f[91]+-3.9774756441743300e+00*z3*z1*f[153]*z2+2.0011288318253026e+01*(z3*z3)*(z0*z0)*z4*(z1*z1)*f[223]+6.8891899015776881e+00*z0*(z4*z4)*z2*f[139]+-1.9887378220871650e+00*(z3*z3)*f[181]*z1+2.3107045394749196e+01*(z3*z3)*z0*(z4*z4)*f[220]*z2+8.6114873769721108e+00*(z3*z3)*z4*f[237]*z2+-7.7023484649163985e+00*(z3*z3)*z0*f[220]*z2+6.1618787719331189e+00*z3*z0*z4*f[108]*z2+6.8891899015776881e+00*(z0*z0)*f[118]*z1*z2+-5.9292706128157113e-01*z4*f[79]+-2.8704957923240366e+00*z1*f[240]*z2+3.0809393859665595e+00*z3*(z4*z4)*z1*f[116]+4.7841596538733949e-01*f[239]+-3.4445949507888440e+00*(z3*z3)*z0*f[196]*z4+2.2234764798058917e+00*(z3*z3)*z1*f[229]+1.6676073598544189e+01*(z0*z0)*f[242]*(z1*z1)*z2+-1.0269797953221864e+00*z3*z0*f[115]+3.5575623676894268e+00*z0*f[58]*z1*z2+1.2837247441527331e+00*f[219]*(z4*z4)+5.3363435515341404e+00*(z3*z3)*z0*f[150]*z4*z1+-3.8511742324581992e+00*(z3*z3)*(z0*z0)*f[218]+-3.4445949507888440e+00*(z3*z3)*z0*f[201]*z1+6.8891899015776881e+00*z0*f[119]*(z1*z1)*z2+5.3033008588991060e-01*z0*f[7]+1.5008466238689769e+02*(z3*z3)*(z0*z0)*f[242]*(z4*z4)*(z1*z1)*z2+1.1932426932522990e+01*z3*z0*(z1*z1)*f[154]*z2+1.1858541225631423e+00*f[18]*z2+6.6291260736238833e-01*z4*f[166]+6.6291260736238833e-01*z4*f[167]+1.0269797953221864e+00*(z3*z3)*f[42]+-4.2790824805091104e-01*f[219]+9.1855865354369182e-01*z3*f[30]*z4+-2.8704957923240366e+00*z0*z2*f[241]+1.1932426932522990e+01*(z0*z0)*z4*z1*f[159]*z2+-4.4469529596117834e+00*f[187]*(z4*z4)*z2+2.5674494883054662e+00*f[221]*z1*z2+-7.7023484649163985e+00*f[204]*(z0*z0)*z1*z2+-3.8511742324581992e+00*(z0*z0)*f[210]*(z1*z1)+-1.4352478961620183e+00*f[239]*(z1*z1)+1.7787811838447134e+00*z3*(z1*z1)*f[62]+-2.2963966338592297e+00*z0*f[119]*z2+1.5909902576697319e+00*z3*z0*z1*f[51]+-5.0028220795632564e+01*(z3*z3)*(z0*z0)*f[242]*(z4*z4)*z2+-5.5586911995147297e+00*(z0*z0)*f[242]*z2+-1.1481983169296148e+00*(z3*z3)*f[125]+2.0667569704733065e+01*z3*z0*z4*(z1*z1)*f[194]*z2+-7.4115882660196386e-01*z0*f[230]+-1.4915533665653737e+01*(z0*z0)*(z1*z1)*f[232]*z2+6.8891899015776881e+00*z3*f[143]*(z4*z4)*z2+-5.9292706128157113e-01*z4*f[71]+-7.7023484649163985e+00*z0*(z1*z1)*z2*f[212]+-4.4469529596117834e+00*(z4*z4)*f[188]*z2+-4.4469529596117834e+00*(z3*z3)*f[185]*z2+-4.4469529596117834e+00*(z3*z3)*f[184]*z2+-3.8511742324581992e+00*(z3*z3)*(z0*z0)*f[203]+1.1932426932522990e+01*z3*z0*(z4*z4)*z2*f[177]+-7.7023484649163985e+00*(z0*z0)*z4*f[208]*z2+2.2234764798058917e+00*(z3*z3)*z4*f[223]+-1.3340858878835350e+01*(z0*z0)*z4*z1*z2*f[224]+1.1481983169296148e+00*z3*z4*f[192]+1.3340858878835350e+01*(z3*z3)*(z1*z1)*f[185]*z2+3.0809393859665595e+00*(z3*z3)*z0*z1*f[100]+-6.6704294394176751e+00*z3*(z4*z4)*(z1*z1)*f[226]+1.1553522697374598e+01*(z3*z3)*f[219]*(z4*z4)*(z1*z1)+-6.6704294394176751e+00*(z3*z3)*z0*(z4*z4)*f[230]+-7.7023484649163985e+00*(z3*z3)*z0*f[205]*z2+2.3107045394749196e+01*z0*(z4*z4)*(z1*z1)*z2*f[212]+-7.7023484649163985e+00*(z3*z3)*z4*z2*f[209]+-1.9887378220871650e+00*z0*(z4*z4)*f[171]+1.6676073598544189e+01*(z3*z3)*f[242]*(z4*z4)*z2+3.0809393859665595e+00*z3*z0*f[115]*(z4*z4)+5.9662134662614950e+00*(z3*z3)*f[181]*(z4*z4)*z1+1.4823176532039277e+00*f[188]*z2+-6.6704294394176751e+00*(z0*z0)*(z4*z4)*z1*f[229]+1.3340858878835350e+01*(z3*z3)*(z4*z4)*f[191]*z2+3.0809393859665595e+00*(z3*z3)*z0*z4*f[111]+1.5909902576697319e+00*z3*z0*z4*f[54]+-3.9774756441743300e+00*z3*z4*f[162]*z2+-1.0269797953221864e+00*z3*z4*f[107]+1.2837247441527331e+00*(z0*z0)*f[210]+3.0809393859665595e+00*z3*(z0*z0)*z1*f[97]+4.9718445552179125e+00*(z0*z0)*f[232]*z2+4.9718445552179125e+00*(z0*z0)*f[233]*z2+-3.4445949507888440e+00*z3*(z4*z4)*z1*f[198]+5.9662134662614950e+00*(z3*z3)*(z0*z0)*z4*f[166]+-2.2963966338592297e+00*z4*z2*f[134]+3.4445949507888440e+00*f[138]*(z4*z4)*(z1*z1)+1.7787811838447134e+00*z0*(z4*z4)*f[81]+-7.7023484649163985e+00*z0*(z1*z1)*f[205]*z2+4.9718445552179125e+00*f[233]*(z4*z4)*z2+6.1618787719331189e+00*z3*f[109]*z4*z1*z2+-1.3340858878835350e+01*z3*z0*f[228]*(z1*z1)*z2+-3.8511742324581992e+00*f[210]*(z4*z4)*(z1*z1)+-2.5834462130916332e+01*(z0*z0)*(z4*z4)*z1*f[240]*z2+-1.2917231065458166e+01*(z0*z0)*f[239]*(z4*z4)*(z1*z1)+-1.9887378220871650e+00*z3*f[176]*(z1*z1)+-5.9292706128157113e-01*z3*f[62]+-4.4469529596117834e+00*(z0*z0)*f[182]*z2+-1.2917231065458166e+01*(z3*z3)*(z0*z0)*f[239]*(z1*z1)+-1.3340858878835350e+01*z3*f[227]*(z4*z4)*z1*z2+-1.9887378220871650e+00*(z3*z3)*f[155]*z1+-6.6704294394176751e+00*(z3*z3)*z4*(z1*z1)*f[223]+-1.9887378220871650e+00*(z3*z3)*z0*f[180]+4.0022576636506052e+01*z3*(z0*z0)*f[222]*z4*(z1*z1)*z2+-5.9292706128157113e-01*z0*f[57]+8.6114873769721108e+00*z3*(z4*z4)*z2*f[238]+-6.6704294394176751e+00*z0*(z4*z4)*(z1*z1)*f[230]+-2.5834462130916332e+01*(z3*z3)*(z0*z0)*z4*f[237]*z2+-2.2963966338592297e+00*z3*f[122]*z2+4.9718445552179125e+00*f[236]*(z1*z1)*z2+7.7503386392748993e+01*(z3*z3)*(z0*z0)*z4*(z1*z1)*f[237]*z2+-7.7023484649163985e+00*(z3*z3)*f[204]*z1*z2+1.0333784852366533e+01*(z3*z3)*z0*f[201]*(z4*z4)*z1+4.9718445552179125e+00*(z3*z3)*f[236]*z2+-1.9887378220871650e+00*z0*f[156]*(z1*z1)+-1.0269797953221864e+00*z3*f[106]*z4+6.6291260736238833e-01*z0*f[156]+-1.9887378220871650e+00*z3*(z0*z0)*f[175]+-3.8511742324581992e+00*(z3*z3)*(z4*z4)*f[218]+-3.8511742324581992e+00*(z0*z0)*(z1*z1)*f[203]+4.3057436884860554e+00*(z3*z3)*(z0*z0)*f[239]+-1.9887378220871650e+00*(z0*z0)*f[170]*z1+-5.9292706128157113e-01*z1*f[56]+-7.7023484649163985e+00*z3*(z0*z0)*f[202]*z2+-3.9774756441743300e+00*z0*z4*z2*f[160]+4.3057436884860554e+00*(z0*z0)*f[239]*(z4*z4)+6.6291260736238833e-01*z3*f[176]+3.0809393859665595e+00*(z0*z0)*z4*z1*f[101]+-7.7023484649163985e+00*(z0*z0)*z1*f[211]*z2+-1.3340858878835350e+01*z0*(z4*z4)*z1*f[231]*z2+-7.7023484649163985e+00*z4*(z1*z1)*z2*f[206]+1.2837247441527331e+00*f[210]*(z4*z4)+5.9662134662614950e+00*f[158]*(z0*z0)*z4*(z1*z1)+-7.7023484649163985e+00*f[221]*(z4*z4)*z1*z2+2.0011288318253026e+01*(z3*z3)*(z0*z0)*(z4*z4)*z1*f[229]+-1.4915533665653737e+01*(z3*z3)*(z1*z1)*f[232]*z2+-1.1481983169296148e+00*f[138]*(z1*z1)+4.9718445552179125e+00*(z3*z3)*f[232]*z2+1.2837247441527331e+00*(z3*z3)*f[219]+1.2837247441527331e+00*(z3*z3)*f[218]+-1.9887378220871650e+00*z0*(z4*z4)*f[180]+3.4445949507888440e+00*(z0*z0)*(z1*z1)*f[117]+6.8891899015776881e+00*(z4*z4)*z1*z2*f[140]+-1.1481983169296148e+00*(z4*z4)*f[146]+-7.7023484649163985e+00*(z3*z3)*z4*f[208]*z2+-7.7023484649163985e+00*z3*(z4*z4)*f[214]*z2+3.4445949507888440e+00*f[137]*(z0*z0)*(z4*z4)+4.9718445552179125e+00*f[236]*(z4*z4)*z2+-3.8511742324581992e+00*(z3*z3)*f[219]*(z1*z1)+4.0022576636506052e+01*(z3*z3)*(z0*z0)*z4*z1*z2*f[224]+8.6114873769721108e+00*z3*(z1*z1)*z2*f[238]+1.3340858878835350e+01*(z3*z3)*f[184]*(z0*z0)*z2+9.1855865354369182e-01*z3*z1*f[24]+-1.7787811838447134e+00*z3*z4*z1*f[147]+-1.3340858878835350e+01*z3*z0*f[228]*(z4*z4)*z2+-5.9292706128157113e-01*f[70]*z4+3.9774756441743300e+00*(z4*z4)*z2*f[94]+4.9718445552179125e+00*f[233]*(z1*z1)*z2+1.2837247441527331e+00*(z3*z3)*f[203]+-3.8511742324581992e+00*(z3*z3)*(z1*z1)*f[203]+-3.8511742324581992e+00*(z0*z0)*(z4*z4)*f[218]+-1.0269797953221864e+00*f[112]*z4*z1+-5.9292706128157113e-01*z1*f[82]+-3.4445949507888440e+00*z0*f[201]*(z4*z4)*z1+-3.4445949507888440e+00*z3*(z0*z0)*z4*f[192]+4.3057436884860554e+00*(z3*z3)*f[239]*(z4*z4)+8.6114873769721108e+00*(z0*z0)*z4*f[237]*z2+1.0672687103068281e+01*z3*z0*f[149]*z4*z1*z2+1.0333784852366533e+01*f[195]*(z3*z3)*(z0*z0)*z4*z1+-1.6572815184059708e+00*z2*f[235]+3.4445949507888440e+00*(z3*z3)*(z0*z0)*f[125]+5.3033008588991060e-01*z1*f[8]+1.5909902576697319e+00*z3*f[55]*z4*z1+-1.9887378220871650e+00*z0*(z1*z1)*f[171]+-4.4469529596117834e+00*(z3*z3)*f[191]*z2+1.6676073598544189e+01*(z3*z3)*f[242]*(z1*z1)*z2+-1.9887378220871650e+00*(z0*z0)*f[155]*z1+3.8751693196374497e+01*(z3*z3)*(z0*z0)*f[239]*(z4*z4)*(z1*z1)+-3.4445949507888440e+00*z3*z0*f[199]*(z1*z1)+-5.0028220795632564e+01*(z0*z0)*f[242]*(z4*z4)*(z1*z1)*z2+2.3107045394749196e+01*(z3*z3)*z0*(z1*z1)*f[205]*z2+3.9774756441743300e+00*(z0*z0)*z2*f[87]+-6.6704294394176751e+00*(z3*z3)*z0*(z1*z1)*f[230]+2.0011288318253026e+01*(z3*z3)*z0*(z4*z4)*(z1*z1)*f[230]+6.6291260736238833e-01*z3*f[175]+-7.7023484649163985e+00*z3*f[202]*(z1*z1)*z2+-1.0269797953221864e+00*z3*z1*f[97]+2.2234764798058917e+00*(z0*z0)*z1*f[229]+3.5575623676894268e+00*f[64]*z3*z1*z2+-7.7023484649163985e+00*z0*(z4*z4)*f[220]*z2+1.7787811838447134e+00*(z4*z4)*z1*f[82]+-6.8891899015776881e+00*z3*z0*z4*f[194]*z2+-7.7023484649163985e+00*z0*(z4*z4)*z2*f[212]+7.7503386392748993e+01*(z3*z3)*(z0*z0)*(z4*z4)*z1*f[240]*z2+3.8273277230987157e-01*f[117]+-4.4469529596117834e+00*(z1*z1)*f[188]*z2+-1.7787811838447134e+00*z0*f[150]*z4*z1+4.9718445552179125e+00*(z4*z4)*z2*f[235]+-5.9292706128157113e-01*f[67]*z1+-5.0028220795632564e+01*(z3*z3)*(z0*z0)*f[242]*(z1*z1)*z2+-1.3340858878835350e+01*(z3*z3)*z0*z1*f[231]*z2+-1.2917231065458166e+01*(z3*z3)*f[239]*(z4*z4)*(z1*z1)+9.1855865354369182e-01*z3*f[23]*z0+9.1855865354369182e-01*z0*z4*f[26]+-1.0269797953221864e+00*z0*z4*f[102]+4.0022576636506052e+01*(z3*z3)*z0*(z4*z4)*z1*f[231]*z2+1.4823176532039277e+00*f[187]*z2+-1.9887378220871650e+00*z3*(z4*z4)*f[176]+3.5575623676894268e+00*f[73]*z4*z1*z2+-2.2963966338592297e+00*z1*z2*f[128]+-1.7787811838447134e+00*z3*z0*z1*f[151]+1.1932426932522990e+01*z3*f[178]*(z4*z4)*z1*z2+-6.6704294394176751e+00*(z0*z0)*z4*(z1*z1)*f[223]+-2.2963966338592297e+00*z3*f[143]*z2+-2.5834462130916332e+01*(z0*z0)*z4*(z1*z1)*f[237]*z2+-1.9887378220871650e+00*f[170]*(z4*z4)*z1+-1.4352478961620183e+00*(z3*z3)*f[239]+2.5674494883054662e+00*z3*f[202]*z2+2.5674494883054662e+00*z3*z2*f[215]+2.5674494883054662e+00*z4*z2*f[206]+4.4746600996961213e+01*(z3*z3)*(z0*z0)*(z1*z1)*f[232]*z2+-6.6704294394176751e+00*(z3*z3)*(z4*z4)*z1*f[229]+2.2234764798058917e+00*(z0*z0)*z4*f[223]+1.6676073598544189e+01*(z0*z0)*f[242]*(z4*z4)*z2+-5.5586911995147297e+00*(z3*z3)*f[242]*z2+-1.7787811838447134e+00*z3*z0*z4*f[148]+-7.7023484649163985e+00*(z4*z4)*z1*f[211]*z2+-1.9887378220871650e+00*z4*(z1*z1)*f[167]+2.3107045394749196e+01*(z3*z3)*(z0*z0)*z4*f[208]*z2+3.0809393859665595e+00*z3*(z0*z0)*f[106]*z4+2.3107045394749196e+01*z3*(z4*z4)*(z1*z1)*z2*f[215]+-1.4915533665653737e+01*(z3*z3)*(z0*z0)*z2*f[235]+-4.4469529596117834e+00*f[182]*(z1*z1)*z2+-2.2963966338592297e+00*z4*f[130]*z2+1.0333784852366533e+01*z3*(z0*z0)*z4*(z1*z1)*f[192]+-1.1481983169296148e+00*f[137]*(z0*z0)+2.0667569704733065e+01*z3*z0*(z4*z4)*z1*f[200]*z2+1.7787811838447134e+00*z4*(z1*z1)*f[71]+3.0618621784789724e-01*f[3]+2.3107045394749196e+01*(z3*z3)*f[204]*(z0*z0)*z1*z2+3.0809393859665595e+00*z0*(z4*z4)*z1*f[113]+-1.3258252147247767e+00*z2*f[94]+5.9662134662614950e+00*(z3*z3)*z4*(z1*z1)*f[167]+-1.9887378220871650e+00*(z3*z3)*z0*f[156]+1.3340858878835350e+01*(z4*z4)*(z1*z1)*f[188]*z2+-1.1481983169296148e+00*(z3*z3)*f[146]+4.9718445552179125e+00*(z0*z0)*z2*f[235]+5.3033008588991060e-01*f[14]*z4+-3.9774756441743300e+00*z3*f[178]*z1*z2+-1.6572815184059708e+00*f[236]*z2+1.6676073598544189e+01*f[242]*(z4*z4)*(z1*z1)*z2+1.0269797953221864e+00*(z0*z0)*f[33]+2.2234764798058917e+00*(z4*z4)*z1*f[229]+-3.9774756441743300e+00*z0*z1*z2*f[157]+-2.5834462130916332e+01*(z3*z3)*(z4*z4)*z1*f[240]*z2+4.4469529596117834e+00*z3*z0*f[228]*z2+-1.4352478961620183e+00*(z0*z0)*f[239]+1.2837247441527331e+00*(z4*z4)*f[218]+-6.6704294394176751e+00*(z3*z3)*(z0*z0)*z4*f[223]+-3.9774756441743300e+00*z3*z4*z2*f[163]+1.7787811838447134e+00*z0*(z1*z1)*f[57]+1.1932426932522990e+01*z0*(z4*z4)*z1*z2*f[172]+-1.9887378220871650e+00*f[152]*z3*(z0*z0)+1.1481983169296148e+00*z3*z1*f[198]+1.5909902576697319e+00*f[52]*z0*z4*z1+-1.9887378220871650e+00*z3*f[175]*(z4*z4)+2.2234764798058917e+00*z3*(z1*z1)*f[226]+8.6114873769721108e+00*z0*(z4*z4)*z2*f[241]+5.3363435515341404e+00*z3*z0*z4*(z1*z1)*f[148]+-3.4232659844072882e-01*f[33]+-1.3258252147247767e+00*z2*f[87]+6.6291260736238833e-01*z0*f[180]+1.0269797953221864e+00*(z4*z4)*f[49]+6.6291260736238833e-01*f[155]*z1+-1.0269797953221864e+00*z3*z0*f[98]+2.5674494883054662e+00*z1*f[211]*z2+-1.0269797953221864e+00*z4*z1*f[101]+-1.4915533665653737e+01*(z3*z3)*(z4*z4)*z2*f[235]+6.1618787719331189e+00*f[103]*z0*z4*z1*z2+-4.2790824805091104e-01*f[218]+-6.6704294394176751e+00*(z3*z3)*(z0*z0)*z1*f[229]+-1.1481983169296148e+00*(z1*z1)*f[117]+1.0269797953221864e+00*f[34]*(z1*z1)+6.6291260736238833e-01*f[152]*z3+1.7787811838447134e+00*z3*(z0*z0)*f[61]+-3.4232659844072882e-01*f[49]+-2.5834462130916332e+01*z3*(z4*z4)*(z1*z1)*z2*f[238]+-2.2963966338592297e+00*z0*z2*f[139]+1.7787811838447134e+00*(z0*z0)*f[70]*z4+-4.2790824805091104e-01*f[203]+5.9662134662614950e+00*z3*(z4*z4)*f[176]*(z1*z1)+3.9774756441743300e+00*(z1*z1)*f[88]*z2+1.1553522697374598e+01*(z0*z0)*f[210]*(z4*z4)*(z1*z1)+-6.8891899015776881e+00*z3*z4*f[193]*z1*z2+-7.7023484649163985e+00*z4*(z1*z1)*z2*f[209]+4.3057436884860554e+00*f[239]*(z4*z4)*(z1*z1)+6.8891899015776881e+00*(z3*z3)*z1*z2*f[128]+7.7503386392748993e+01*(z3*z3)*z0*(z4*z4)*(z1*z1)*z2*f[241]+3.0809393859665595e+00*z0*z4*f[102]*(z1*z1)+1.1932426932522990e+01*z3*(z0*z0)*z1*f[153]*z2+-1.9887378220871650e+00*f[158]*z4*(z1*z1)+-1.4915533665653737e+01*(z0*z0)*f[233]*(z4*z4)*z2+4.4469529596117834e+00*z3*f[222]*z4*z2+-2.5834462130916332e+01*(z3*z3)*z0*(z1*z1)*z2*f[241]+-3.4445949507888440e+00*z3*z0*(z4*z4)*f[199]+3.5575623676894268e+00*z3*f[76]*z4*z2+-2.8704957923240366e+00*z3*z2*f[238]+2.0539595906443728e+00*z1*z2*f[36]+-2.2963966338592297e+00*z1*z2*f[140]+4.4469529596117834e+00*z0*z4*f[225]*z2+-1.0269797953221864e+00*z3*z1*f[116]+-5.5586911995147297e+00*f[242]*(z1*z1)*z2+4.4746600996961213e+01*(z3*z3)*(z0*z0)*(z4*z4)*z2*f[235]+2.2234764798058917e+00*(z3*z3)*z0*f[230]+-7.4115882660196386e-01*z3*f[226]+-7.7023484649163985e+00*z3*(z0*z0)*f[214]*z2+-7.4115882660196386e-01*z4*f[223]+1.1553522697374598e+01*(z3*z3)*(z0*z0)*(z4*z4)*f[218]+8.6114873769721108e+00*(z0*z0)*z1*f[240]*z2+3.0809393859665595e+00*(z3*z3)*f[112]*z4*z1+4.0022576636506052e+01*z3*z0*f[228]*(z4*z4)*(z1*z1)*z2+3.0809393859665595e+00*z3*z0*(z1*z1)*f[98]+-7.7023484649163985e+00*z3*(z1*z1)*z2*f[215]+1.4823176532039277e+00*f[184]*z2+1.4823176532039277e+00*f[185]*z2+1.2837247441527331e+00*(z0*z0)*f[203]+9.1855865354369182e-01*f[27]*z4*z1+-2.2963966338592297e+00*f[118]*z1*z2+1.1932426932522990e+01*(z3*z3)*z0*z4*f[168]*z2+-1.3340858878835350e+01*(z3*z3)*z4*z1*z2*f[224]+-1.9887378220871650e+00*(z3*z3)*z4*f[166]+-1.9887378220871650e+00*(z3*z3)*z4*f[167]+2.3107045394749196e+01*(z0*z0)*(z4*z4)*z1*f[211]*z2+4.0022576636506052e+01*(z3*z3)*z0*z4*f[225]*(z1*z1)*z2+1.1932426932522990e+01*z0*z4*(z1*z1)*z2*f[160]+2.2234764798058917e+00*z0*(z1*z1)*f[230]+-6.8891899015776881e+00*z0*z4*z1*f[197]*z2+2.0667569704733065e+01*z3*(z0*z0)*z4*f[193]*z1*z2+-2.5834462130916332e+01*z3*(z0*z0)*(z4*z4)*z2*f[238]+-6.8891899015776881e+00*z3*z0*z1*f[200]*z2+3.8273277230987157e-01*f[126]+4.3057436884860554e+00*(z3*z3)*f[239]*(z1*z1)+5.9662134662614950e+00*(z3*z3)*(z0*z0)*f[155]*z1+7.7503386392748993e+01*z3*(z0*z0)*(z4*z4)*(z1*z1)*z2*f[238]+2.0539595906443728e+00*f[39]*z3*z2+5.3033008588991060e-01*z3*f[11]+-5.9292706128157113e-01*z3*f[85]+6.8891899015776881e+00*z3*(z0*z0)*f[121]*z2+-3.4445949507888440e+00*z0*f[196]*z4*(z1*z1)+-1.4915533665653737e+01*f[236]*(z4*z4)*(z1*z1)*z2+2.7556759606310752e+00*z3*z0*f[96]*z4*z1+-1.4915533665653737e+01*(z3*z3)*f[236]*(z4*z4)*z2+8.6114873769721108e+00*z4*(z1*z1)*f[237]*z2+1.7787811838447134e+00*(z3*z3)*z4*f[79]+-3.4445949507888440e+00*f[195]*(z0*z0)*z4*z1+2.5674494883054662e+00*z4*f[208]*z2+3.8273277230987157e-01*f[146]+1.2837247441527331e+00*(z0*z0)*f[218]+1.0333784852366533e+01*z3*(z0*z0)*(z4*z4)*z1*f[198]+4.9718445552179125e+00*(z1*z1)*f[232]*z2+-7.4115882660196386e-01*z1*f[229]+5.9662134662614950e+00*(z3*z3)*z0*(z4*z4)*f[180]+1.1932426932522990e+01*z3*(z0*z0)*z4*f[162]*z2+-3.8511742324581992e+00*(z3*z3)*f[219]*(z4*z4)+-3.9774756441743300e+00*z3*z0*z2*f[177]+6.8891899015776881e+00*z4*(z1*z1)*z2*f[131]+-6.6704294394176751e+00*z3*(z0*z0)*(z4*z4)*f[226]+1.7787811838447134e+00*(z3*z3)*z0*f[66]+1.3340858878835350e+01*(z0*z0)*f[187]*(z4*z4)*z2+-3.9774756441743300e+00*z0*z1*z2*f[172]+2.0011288318253026e+01*z3*(z0*z0)*(z4*z4)*(z1*z1)*f[226]+-4.4469529596117834e+00*(z0*z0)*f[187]*z2+6.6291260736238833e-01*f[181]*z1+-1.1481983169296148e+00*f[138]*(z4*z4)+-3.9774756441743300e+00*f[169]*z4*z1*z2+3.4445949507888440e+00*(z3*z3)*(z1*z1)*f[126]+-4.4469529596117834e+00*f[184]*(z0*z0)*z2+-1.1481983169296148e+00*(z3*z3)*f[126]+3.9774756441743300e+00*(z3*z3)*z2*f[91]; if (dir == 3) return -3.8511742324581992e+00*f[202]*(z1*z1)*(z2*z2)+-3.4232659844072882e-01*f[39]+-6.8891899015776881e+00*z3*z0*z4*z1*f[197]+5.9662134662614950e+00*z4*(z1*z1)*(z2*z2)*f[163]+-3.4445949507888440e+00*(z0*z0)*z4*f[193]*z1+1.4823176532039277e+00*z3*f[183]+4.9718445552179125e+00*z3*(z2*z2)*f[235]+6.8891899015776881e+00*z3*(z4*z4)*z2*f[146]+-7.7023484649163985e+00*z3*(z0*z0)*f[216]*z1+5.9662134662614950e+00*f[178]*(z4*z4)*z1*(z2*z2)+6.6291260736238833e-01*z0*f[177]+2.3107045394749196e+01*z3*z0*(z4*z4)*f[220]*(z2*z2)+7.7503386392748993e+01*z3*(z0*z0)*f[239]*(z4*z4)*(z1*z1)*z2+3.5575623676894268e+00*z3*z4*z1*f[78]+4.0022576636506052e+01*z3*(z0*z0)*z4*z1*(z2*z2)*f[224]+-2.5834462130916332e+01*z3*z0*(z1*z1)*(z2*z2)*f[241]+8.6114873769721108e+00*z3*(z0*z0)*z4*f[237]+-1.1481983169296148e+00*(z1*z1)*f[120]+-1.4352478961620183e+00*(z1*z1)*f[238]+-5.5586911995147297e+00*z3*f[242]*(z2*z2)+5.3033008588991060e-01*f[10]*z1+2.0667569704733065e+01*z3*z0*f[196]*z4*(z1*z1)*z2+-1.3340858878835350e+01*z3*z0*(z4*z4)*z2*f[230]+2.7556759606310752e+00*z0*f[96]*z4*z1*z2+2.0539595906443728e+00*z3*z0*f[40]+-3.4445949507888440e+00*z0*z4*f[194]*(z2*z2)+-1.3340858878835350e+01*z3*(z4*z4)*z1*z2*f[229]+1.1481983169296148e+00*z0*z4*f[194]+6.6291260736238833e-01*f[175]*z2+-3.8511742324581992e+00*(z4*z4)*(z2*z2)*f[215]+-3.8511742324581992e+00*(z0*z0)*f[213]*(z1*z1)+-7.7023484649163985e+00*z3*z0*(z4*z4)*f[220]+5.9662134662614950e+00*(z0*z0)*(z4*z4)*z1*f[173]+-3.9774756441743300e+00*z3*z0*z1*f[179]+-3.9774756441743300e+00*z3*z4*f[167]*z2+3.0809393859665595e+00*z0*z4*f[105]*(z1*z1)+1.7787811838447134e+00*f[64]*z1*(z2*z2)+1.2837247441527331e+00*f[202]*(z1*z1)+-1.4915533665653737e+01*z3*f[236]*(z4*z4)*(z2*z2)+-7.7023484649163985e+00*z3*z4*(z2*z2)*f[209]+2.0011288318253026e+01*(z0*z0)*(z4*z4)*(z1*z1)*f[226]*z2+4.3057436884860554e+00*(z0*z0)*(z2*z2)*f[238]+9.1855865354369182e-01*f[30]*z4*z2+-5.0028220795632564e+01*z3*(z0*z0)*f[242]*(z4*z4)*(z2*z2)+-3.8511742324581992e+00*(z4*z4)*f[214]*(z2*z2)+8.6114873769721108e+00*z3*z0*(z1*z1)*f[241]+6.1618787719331189e+00*z3*z0*z1*z2*f[100]+1.6676073598544189e+01*z3*(z0*z0)*f[242]*(z4*z4)+2.3107045394749196e+01*z3*z0*(z4*z4)*(z1*z1)*f[217]+4.9718445552179125e+00*z3*f[236]*(z4*z4)+-5.9292706128157113e-01*f[64]*z1+3.8273277230987157e-01*f[143]+1.7787811838447134e+00*(z0*z0)*f[61]*z2+8.6114873769721108e+00*z3*f[239]*(z1*z1)*z2+-2.5834462130916332e+01*z3*(z0*z0)*z4*(z1*z1)*f[237]+1.2837247441527331e+00*(z2*z2)*f[215]+-1.9887378220871650e+00*f[175]*(z4*z4)*z2+1.6676073598544189e+01*z3*f[242]*(z4*z4)*(z1*z1)+-7.7023484649163985e+00*z3*(z0*z0)*z2*f[218]+2.2234764798058917e+00*(z1*z1)*f[226]*z2+-1.3258252147247767e+00*z3*f[95]+1.4823176532039277e+00*z3*f[189]+2.5674494883054662e+00*z3*z4*f[208]+2.5674494883054662e+00*z3*z4*f[209]+-2.2963966338592297e+00*z3*f[125]*z2+3.5575623676894268e+00*z3*z4*f[79]*z2+2.0011288318253026e+01*z0*f[228]*(z4*z4)*(z1*z1)*(z2*z2)+1.1858541225631423e+00*z3*f[19]+1.7787811838447134e+00*z4*(z1*z1)*f[75]+4.9718445552179125e+00*z3*f[234]*(z4*z4)+-6.6704294394176751e+00*z0*f[228]*(z4*z4)*(z2*z2)+-4.4469529596117834e+00*z3*f[191]*(z2*z2)+3.8273277230987157e-01*f[122]+1.0333784852366533e+01*(z0*z0)*z4*f[193]*z1*(z2*z2)+-3.4445949507888440e+00*z0*(z4*z4)*z1*f[200]+2.0667569704733065e+01*z3*z0*z4*z1*f[197]*(z2*z2)+-1.0269797953221864e+00*z0*f[115]*z2+1.2837247441527331e+00*f[214]*(z2*z2)+-7.7023484649163985e+00*z3*f[219]*(z4*z4)*z2+-3.9774756441743300e+00*z3*f[164]*z4*z1+-1.2917231065458166e+01*(z0*z0)*(z1*z1)*(z2*z2)*f[238]+-1.9887378220871650e+00*(z0*z0)*z1*f[153]+-3.9774756441743300e+00*z3*f[155]*z1*z2+-1.0269797953221864e+00*z0*f[98]*z2+-7.7023484649163985e+00*z3*(z0*z0)*f[207]*z4+-4.4469529596117834e+00*z3*(z1*z1)*f[183]+8.6114873769721108e+00*z3*(z0*z0)*z1*f[240]+-2.8704957923240366e+00*z3*z0*f[241]+3.5575623676894268e+00*z3*z0*f[66]*z2+-1.9887378220871650e+00*(z0*z0)*f[161]*z4+-3.9774756441743300e+00*z3*z0*z2*f[180]+2.3107045394749196e+01*z3*(z0*z0)*(z1*z1)*z2*f[203]+-7.7023484649163985e+00*z3*(z0*z0)*z2*f[203]+-5.9292706128157113e-01*z1*f[59]+5.9662134662614950e+00*(z4*z4)*f[176]*(z1*z1)*z2+4.4469529596117834e+00*z3*z0*z4*f[225]+-1.3340858878835350e+01*z3*(z0*z0)*z4*z1*f[224]+1.5909902576697319e+00*z0*z1*f[51]*z2+2.0539595906443728e+00*z3*f[42]*z2+-3.4232659844072882e-01*f[50]+4.4746600996961213e+01*z3*(z0*z0)*(z4*z4)*(z2*z2)*f[235]+1.7787811838447134e+00*(z0*z0)*z4*f[74]+-5.9292706128157113e-01*f[76]*z4+1.3340858878835350e+01*z3*(z0*z0)*(z4*z4)*f[189]+4.0022576636506052e+01*z3*(z0*z0)*(z4*z4)*z1*z2*f[229]+4.3057436884860554e+00*(z4*z4)*(z1*z1)*f[238]+-1.1481983169296148e+00*f[121]*(z2*z2)+6.6291260736238833e-01*f[178]*z1+-2.5834462130916332e+01*z3*(z0*z0)*z4*f[237]*(z2*z2)+-1.9887378220871650e+00*(z0*z0)*z4*f[162]+-3.4445949507888440e+00*z0*(z4*z4)*f[199]*z2+1.2837247441527331e+00*f[213]*(z4*z4)+-7.4115882660196386e-01*z0*f[228]+3.0809393859665595e+00*(z0*z0)*z1*z2*f[97]+3.9774756441743300e+00*z3*f[90]*(z1*z1)+-1.3340858878835350e+01*z3*z4*z1*(z2*z2)*f[224]+4.9718445552179125e+00*z3*f[232]*(z2*z2)+8.6114873769721108e+00*z3*(z0*z0)*f[239]*z2+-3.9774756441743300e+00*z3*f[169]*z4*z1+-2.5834462130916332e+01*z3*f[239]*(z4*z4)*(z1*z1)*z2+-1.7787811838447134e+00*z0*f[149]*z4*z1+5.9662134662614950e+00*f[152]*(z0*z0)*(z1*z1)*z2+6.8891899015776881e+00*z3*(z4*z4)*z1*f[145]+1.7787811838447134e+00*f[76]*z4*(z2*z2)+3.0618621784789724e-01*f[4]+1.7787811838447134e+00*(z1*z1)*z2*f[62]+2.2234764798058917e+00*f[222]*z4*(z2*z2)+-3.8511742324581992e+00*(z0*z0)*f[202]*(z1*z1)+-1.9887378220871650e+00*f[161]*z4*(z1*z1)+-1.0269797953221864e+00*z0*f[99]*z1+-2.2963966338592297e+00*z3*z4*f[134]+-6.6704294394176751e+00*(z4*z4)*(z1*z1)*f[226]*z2+-1.0269797953221864e+00*f[106]*z4*z2+-7.7023484649163985e+00*z3*(z4*z4)*z2*f[218]+1.2837247441527331e+00*f[213]*(z1*z1)+6.8891899015776881e+00*z3*z0*f[144]*(z4*z4)+-1.9887378220871650e+00*z0*(z4*z4)*f[177]+2.0667569704733065e+01*f[195]*z3*(z0*z0)*z4*z1*z2+-1.9887378220871650e+00*(z0*z0)*f[175]*z2+-3.4445949507888440e+00*z0*z1*f[200]*(z2*z2)+-3.9774756441743300e+00*z3*z0*f[156]*z2+-1.3340858878835350e+01*z3*z0*(z4*z4)*z1*f[231]+-7.7023484649163985e+00*z3*f[207]*z4*(z1*z1)+-1.3340858878835350e+01*z3*z0*z4*f[225]*(z2*z2)+-5.9292706128157113e-01*f[61]*z2+2.2234764798058917e+00*f[227]*(z0*z0)*z1+-3.9774756441743300e+00*z3*f[181]*z1*z2+-6.6704294394176751e+00*(z0*z0)*f[222]*z4*(z1*z1)+-3.4232659844072882e-01*f[37]+2.5674494883054662e+00*f[221]*z3*z1+-4.2790824805091104e-01*f[213]+-2.5834462130916332e+01*z3*(z0*z0)*z1*f[240]*(z2*z2)+3.0809393859665595e+00*z0*(z1*z1)*f[98]*z2+-7.7023484649163985e+00*z3*z0*(z4*z4)*f[217]+-1.4352478961620183e+00*(z2*z2)*f[238]+-7.4115882660196386e-01*f[227]*z1+5.3363435515341404e+00*z0*f[149]*z4*z1*(z2*z2)+3.0809393859665595e+00*z0*f[115]*(z4*z4)*z2+1.1932426932522990e+01*z3*f[169]*z4*z1*(z2*z2)+8.6114873769721108e+00*z3*(z4*z4)*z1*f[240]+-3.8511742324581992e+00*(z4*z4)*(z1*z1)*f[215]+-1.9887378220871650e+00*f[176]*(z1*z1)*z2+1.1553522697374598e+01*(z0*z0)*f[213]*(z4*z4)*(z1*z1)+-4.4469529596117834e+00*z3*(z4*z4)*f[191]+-2.5834462130916332e+01*z3*z4*(z1*z1)*f[237]*(z2*z2)+4.4746600996961213e+01*z3*(z0*z0)*f[234]*(z4*z4)*(z1*z1)+4.9718445552179125e+00*z3*f[234]*(z1*z1)+1.5008466238689769e+02*z3*(z0*z0)*f[242]*(z4*z4)*(z1*z1)*(z2*z2)+2.2234764798058917e+00*z0*f[228]*(z2*z2)+-2.2963966338592297e+00*z3*z0*f[144]+-1.1481983169296148e+00*(z4*z4)*f[142]+3.0809393859665595e+00*(z0*z0)*z4*z1*f[104]+-4.2790824805091104e-01*f[202]+-3.4445949507888440e+00*z0*z4*(z1*z1)*f[194]+4.4746600996961213e+01*z3*f[236]*(z4*z4)*(z1*z1)*(z2*z2)+-1.9887378220871650e+00*z0*(z1*z1)*f[174]+-3.4445949507888440e+00*(z0*z0)*z1*z2*f[198]+5.9662134662614950e+00*(z0*z0)*z4*f[162]*(z2*z2)+3.4445949507888440e+00*(z0*z0)*(z1*z1)*f[120]+4.3057436884860554e+00*(z0*z0)*(z1*z1)*f[238]+-7.7023484649163985e+00*z3*z4*(z1*z1)*f[209]+-1.9887378220871650e+00*f[178]*z1*(z2*z2)+3.0809393859665595e+00*z0*(z4*z4)*z1*f[114]+7.7503386392748993e+01*z3*z0*(z4*z4)*(z1*z1)*(z2*z2)*f[241]+-1.0269797953221864e+00*z4*z2*f[107]+2.5674494883054662e+00*z3*f[204]*z1+4.4469529596117834e+00*z3*z1*z2*f[229]+8.6114873769721108e+00*z3*z0*(z2*z2)*f[241]+1.1932426932522990e+01*z3*(z0*z0)*z4*z2*f[166]+-5.9292706128157113e-01*z4*f[74]+-1.9887378220871650e+00*f[152]*(z0*z0)*z2+1.3340858878835350e+01*z3*f[184]*(z0*z0)*(z2*z2)+5.9662134662614950e+00*z0*(z4*z4)*(z2*z2)*f[177]+6.8891899015776881e+00*z3*(z0*z0)*f[132]*z4+1.2837247441527331e+00*(z1*z1)*f[215]+4.9718445552179125e+00*z3*f[236]*(z1*z1)+1.6676073598544189e+01*z3*(z0*z0)*f[242]*(z1*z1)+1.7787811838447134e+00*(z0*z0)*z1*f[59]+-1.9887378220871650e+00*z0*(z1*z1)*f[154]+1.5909902576697319e+00*z0*z4*f[53]*z1+6.6291260736238833e-01*f[161]*z4+1.3340858878835350e+01*z3*f[190]*(z4*z4)*(z1*z1)+-7.7023484649163985e+00*z3*f[204]*(z0*z0)*z1+1.5909902576697319e+00*z0*z4*z2*f[54]+-1.6572815184059708e+00*z3*f[234]+-1.6572815184059708e+00*z3*f[235]+-1.4915533665653737e+01*z3*(z1*z1)*f[232]*(z2*z2)+1.1481983169296148e+00*z4*z2*f[192]+-7.7023484649163985e+00*z3*z4*f[208]*(z2*z2)+-3.8511742324581992e+00*(z0*z0)*f[213]*(z4*z4)+3.8273277230987157e-01*f[141]+6.6291260736238833e-01*z4*f[163]+6.6291260736238833e-01*z4*f[162]+-5.0028220795632564e+01*z3*f[242]*(z4*z4)*(z1*z1)*(z2*z2)+3.4445949507888440e+00*(z0*z0)*f[121]*(z2*z2)+7.7503386392748993e+01*z3*(z0*z0)*z4*(z1*z1)*f[237]*(z2*z2)+4.9718445552179125e+00*z3*(z0*z0)*f[232]+-1.4915533665653737e+01*z3*(z0*z0)*(z1*z1)*f[232]+-7.7023484649163985e+00*z3*f[216]*(z4*z4)*z1+1.1932426932522990e+01*z3*z0*f[156]*(z1*z1)*z2+-6.6704294394176751e+00*(z0*z0)*(z4*z4)*f[226]*z2+-6.6704294394176751e+00*f[227]*(z0*z0)*(z4*z4)*z1+-1.4915533665653737e+01*z3*(z0*z0)*(z4*z4)*f[235]+6.8891899015776881e+00*z3*(z0*z0)*z1*f[123]+5.9662134662614950e+00*(z0*z0)*z1*f[153]*(z2*z2)+-5.5586911995147297e+00*z3*(z0*z0)*f[242]+-1.1481983169296148e+00*f[143]*(z4*z4)+-3.4445949507888440e+00*z4*f[193]*z1*(z2*z2)+1.7787811838447134e+00*z0*f[83]*(z4*z4)+4.4469529596117834e+00*z3*z4*f[223]*z2+2.2234764798058917e+00*f[227]*(z4*z4)*z1+5.3363435515341404e+00*z0*z4*(z1*z1)*f[148]*z2+3.8273277230987157e-01*f[121]+6.8891899015776881e+00*z3*z4*(z2*z2)*f[134]+-1.0269797953221864e+00*f[109]*z4*z1+6.6291260736238833e-01*z1*f[153]+1.0333784852366533e+01*z0*(z4*z4)*z1*f[200]*(z2*z2)+-2.5834462130916332e+01*z3*(z0*z0)*f[239]*(z4*z4)*z2+-3.8511742324581992e+00*(z0*z0)*f[214]*(z2*z2)+-1.1481983169296148e+00*f[122]*(z2*z2)+-4.2790824805091104e-01*f[214]+1.6676073598544189e+01*z3*f[242]*(z1*z1)*(z2*z2)+4.3057436884860554e+00*(z4*z4)*(z2*z2)*f[238]+-7.7023484649163985e+00*f[221]*z3*(z4*z4)*z1+-1.3258252147247767e+00*z3*f[89]+1.3340858878835350e+01*z3*(z4*z4)*f[191]*(z2*z2)+-5.9292706128157113e-01*z0*f[60]+-1.3340858878835350e+01*z3*z4*(z1*z1)*f[223]*z2+1.6676073598544189e+01*z3*f[242]*(z4*z4)*(z2*z2)+4.3057436884860554e+00*(z1*z1)*(z2*z2)*f[238]+1.4823176532039277e+00*z3*f[190]+1.4823176532039277e+00*z3*f[191]+2.2234764798058917e+00*z0*f[228]*(z4*z4)+-2.5834462130916332e+01*z3*(z4*z4)*z1*f[240]*(z2*z2)+-2.5834462130916332e+01*z3*(z0*z0)*f[239]*(z1*z1)*z2+-6.6704294394176751e+00*z0*f[228]*(z4*z4)*(z1*z1)+2.0539595906443728e+00*z3*z1*f[41]+-1.9887378220871650e+00*z0*f[154]*(z2*z2)+-3.9774756441743300e+00*z3*z0*z4*f[165]+1.1553522697374598e+01*(z4*z4)*(z1*z1)*(z2*z2)*f[215]+2.0539595906443728e+00*z3*z4*f[46]+6.6291260736238833e-01*z1*f[173]+-1.9887378220871650e+00*z4*(z1*z1)*f[163]+-1.6572815184059708e+00*z3*f[232]+1.7787811838447134e+00*z0*f[60]*(z1*z1)+-4.4469529596117834e+00*z3*f[190]*(z1*z1)+1.0333784852366533e+01*z0*(z4*z4)*f[199]*(z1*z1)*z2+-5.9292706128157113e-01*z2*f[62]+4.9718445552179125e+00*z3*(z0*z0)*f[235]+4.9718445552179125e+00*z3*(z0*z0)*f[234]+-7.7023484649163985e+00*z3*z0*f[205]*(z2*z2)+5.9662134662614950e+00*(z0*z0)*f[175]*(z4*z4)*z2+-1.1481983169296148e+00*(z0*z0)*f[141]+-6.6704294394176751e+00*(z0*z0)*(z1*z1)*f[226]*z2+-2.2963966338592297e+00*z3*z2*f[126]+-3.4445949507888440e+00*(z4*z4)*z1*z2*f[198]+3.4445949507888440e+00*f[122]*(z1*z1)*(z2*z2)+3.0809393859665595e+00*z4*(z1*z1)*z2*f[107]+1.8528970665049098e+00*z3*f[242]+-1.0269797953221864e+00*z1*z2*f[97]+-7.7023484649163985e+00*z3*f[204]*z1*(z2*z2)+-1.9887378220871650e+00*f[178]*(z4*z4)*z1+5.3363435515341404e+00*z0*(z4*z4)*z1*z2*f[151]+2.5674494883054662e+00*z3*f[219]*z2+-1.4915533665653737e+01*z3*(z0*z0)*f[234]*(z1*z1)+-1.2917231065458166e+01*(z0*z0)*(z4*z4)*(z1*z1)*f[238]+-2.2963966338592297e+00*z3*z1*f[145]+3.4445949507888440e+00*(z4*z4)*(z1*z1)*f[142]+3.5575623676894268e+00*z3*z0*z1*f[65]+1.1932426932522990e+01*z3*z0*(z4*z4)*z2*f[180]+-2.2963966338592297e+00*z3*z1*f[128]+3.9774756441743300e+00*z3*(z0*z0)*f[89]+1.0333784852366533e+01*z0*z4*(z1*z1)*f[194]*(z2*z2)+2.5674494883054662e+00*z3*z0*f[217]+1.2837247441527331e+00*(z4*z4)*f[215]+1.2837247441527331e+00*(z4*z4)*f[214]+3.8273277230987157e-01*f[142]+1.7787811838447134e+00*(z4*z4)*z1*f[84]+-1.7787811838447134e+00*z4*z1*f[147]*z2+-1.1481983169296148e+00*(z0*z0)*f[121]+6.8891899015776881e+00*z3*z1*(z2*z2)*f[128]+8.6114873769721108e+00*z3*z4*f[237]*(z2*z2)+1.0672687103068281e+01*z3*z0*f[150]*z4*z1*z2+4.9718445552179125e+00*z3*(z1*z1)*f[232]+-3.4232659844072882e-01*f[38]+-7.7023484649163985e+00*z3*z0*f[220]*(z2*z2)+-3.4445949507888440e+00*z4*(z1*z1)*z2*f[192]+4.3057436884860554e+00*(z0*z0)*(z4*z4)*f[238]+1.1481983169296148e+00*z0*f[199]*z2+-1.9887378220871650e+00*z0*(z4*z4)*f[174]+4.0022576636506052e+01*z3*z0*(z4*z4)*(z1*z1)*z2*f[230]+5.3033008588991060e-01*z0*f[9]+-2.2963966338592297e+00*z3*z4*f[133]+-1.1481983169296148e+00*(z1*z1)*f[142]+9.1855865354369182e-01*z4*z1*f[29]+6.1618787719331189e+00*z3*f[112]*z4*z1*z2+-4.4469529596117834e+00*z3*f[184]*(z0*z0)+4.4469529596117834e+00*z3*z0*z2*f[230]+1.5909902576697319e+00*f[55]*z4*z1*z2+-1.7787811838447134e+00*z0*z1*z2*f[151]+-1.1481983169296148e+00*f[143]*(z2*z2)+2.3107045394749196e+01*z3*f[219]*(z4*z4)*(z1*z1)*z2+4.4469529596117834e+00*z3*z4*z1*f[224]+-5.5586911995147297e+00*z3*f[242]*(z1*z1)+6.6291260736238833e-01*f[152]*z2+1.2837247441527331e+00*(z0*z0)*f[214]+-7.7023484649163985e+00*z3*(z1*z1)*z2*f[203]+1.1932426932522990e+01*z3*z0*z4*f[168]*(z2*z2)+1.1481983169296148e+00*z4*f[193]*z1+3.0809393859665595e+00*z0*f[99]*z1*(z2*z2)+-5.9292706128157113e-01*z1*f[84]+-1.9887378220871650e+00*f[152]*(z1*z1)*z2+-1.4915533665653737e+01*z3*(z4*z4)*(z2*z2)*f[235]+-2.2963966338592297e+00*z3*z2*f[146]+1.1553522697374598e+01*(z0*z0)*f[202]*(z1*z1)*(z2*z2)+-2.2963966338592297e+00*z3*f[132]*z4+9.1855865354369182e-01*z0*f[22]*z1+2.2234764798058917e+00*f[227]*z1*(z2*z2)+-7.7023484649163985e+00*z3*z0*(z1*z1)*f[217]+-2.5834462130916332e+01*z3*z0*(z4*z4)*(z1*z1)*f[241]+7.7503386392748993e+01*z3*(z0*z0)*(z4*z4)*z1*f[240]*(z2*z2)+1.1481983169296148e+00*z0*z1*f[200]+3.0809393859665595e+00*(z4*z4)*z1*z2*f[116]+1.1932426932522990e+01*z3*(z0*z0)*f[155]*z1*z2+4.0022576636506052e+01*z3*(z0*z0)*z4*(z1*z1)*f[223]*z2+1.2837247441527331e+00*f[202]*(z2*z2)+1.3340858878835350e+01*z3*(z1*z1)*f[185]*(z2*z2)+6.1618787719331189e+00*z3*z0*z4*f[111]*z2+-7.7023484649163985e+00*f[221]*z3*z1*(z2*z2)+-3.4445949507888440e+00*z0*f[199]*(z1*z1)*z2+2.0011288318253026e+01*(z0*z0)*f[222]*z4*(z1*z1)*(z2*z2)+-7.4115882660196386e-01*f[222]*z4+1.1932426932522990e+01*z3*(z0*z0)*f[164]*z4*z1+1.1553522697374598e+01*(z0*z0)*(z4*z4)*f[214]*(z2*z2)+-6.6704294394176751e+00*f[227]*(z0*z0)*z1*(z2*z2)+-1.4915533665653737e+01*z3*f[236]*(z4*z4)*(z1*z1)+-1.3258252147247767e+00*z3*f[91]+2.2234764798058917e+00*(z0*z0)*f[226]*z2+-1.9887378220871650e+00*(z4*z4)*z1*f[173]+3.8751693196374497e+01*(z0*z0)*(z4*z4)*(z1*z1)*(z2*z2)*f[238]+-5.0028220795632564e+01*z3*(z0*z0)*f[242]*(z4*z4)*(z1*z1)+9.1855865354369182e-01*z0*z4*f[28]+8.6114873769721108e+00*z3*z4*(z1*z1)*f[237]+1.7787811838447134e+00*z0*f[63]*(z2*z2)+-1.1481983169296148e+00*(z4*z4)*f[141]+1.1932426932522990e+01*z3*f[181]*(z4*z4)*z1*z2+-2.2963966338592297e+00*z3*z1*f[123]+4.9718445552179125e+00*z3*(z4*z4)*f[235]+4.0022576636506052e+01*z3*z0*(z4*z4)*z1*f[231]*(z2*z2)+9.1855865354369182e-01*z1*z2*f[24]+1.1932426932522990e+01*z3*z0*(z4*z4)*z1*f[179]+-3.9774756441743300e+00*z3*z0*z1*f[157]+-5.9292706128157113e-01*z4*f[75]+5.3363435515341404e+00*(z0*z0)*z4*z1*f[147]*z2+-3.4445949507888440e+00*(z0*z0)*z4*z2*f[192]+-5.9292706128157113e-01*z0*f[83]+-3.9774756441743300e+00*z3*z0*z4*f[168]+-1.4915533665653737e+01*z3*f[234]*(z4*z4)*(z1*z1)+-1.0269797953221864e+00*z0*z1*f[114]+-1.3340858878835350e+01*z3*(z0*z0)*z1*z2*f[229]+3.4445949507888440e+00*f[143]*(z4*z4)*(z2*z2)+5.9662134662614950e+00*z0*(z4*z4)*(z1*z1)*f[174]+4.9718445552179125e+00*z3*f[236]*(z2*z2)+2.5674494883054662e+00*z3*z0*f[220]+1.6676073598544189e+01*z3*(z0*z0)*f[242]*(z2*z2)+6.8891899015776881e+00*z3*(z1*z1)*z2*f[126]+-1.1481983169296148e+00*(z0*z0)*f[120]+-1.4352478961620183e+00*(z0*z0)*f[238]+-2.8704957923240366e+00*z3*z4*f[237]+-4.4469529596117834e+00*z3*(z0*z0)*f[189]+-1.4915533665653737e+01*z3*(z0*z0)*(z2*z2)*f[235]+-5.9292706128157113e-01*z0*f[63]+5.3033008588991060e-01*f[11]*z2+-5.9292706128157113e-01*f[85]*z2+2.0667569704733065e+01*z3*z0*f[201]*(z4*z4)*z1*z2+1.0269797953221864e+00*(z0*z0)*f[37]+3.8273277230987157e-01*f[120]+4.7841596538733949e-01*f[238]+2.0011288318253026e+01*f[227]*(z0*z0)*(z4*z4)*z1*(z2*z2)+2.5674494883054662e+00*z3*f[216]*z1+-3.8511742324581992e+00*(z0*z0)*(z4*z4)*f[214]+-1.0269797953221864e+00*z0*z4*f[105]+1.0333784852366533e+01*(z0*z0)*(z4*z4)*z1*z2*f[198]+5.3033008588991060e-01*z4*f[15]+-4.4469529596117834e+00*z3*(z1*z1)*f[185]+-1.9887378220871650e+00*z4*(z2*z2)*f[163]+-2.5834462130916332e+01*z3*(z0*z0)*(z4*z4)*z1*f[240]+6.1618787719331189e+00*z3*z0*z4*z1*f[110]+1.2837247441527331e+00*(z0*z0)*f[213]+-1.0269797953221864e+00*z1*z2*f[116]+2.5674494883054662e+00*z3*z0*f[205]+2.3107045394749196e+01*z3*(z0*z0)*f[207]*z4*(z1*z1)+-1.2917231065458166e+01*(z0*z0)*(z4*z4)*(z2*z2)*f[238]+2.3107045394749196e+01*f[221]*z3*(z4*z4)*z1*(z2*z2)+-7.7023484649163985e+00*z3*f[219]*(z1*z1)*z2+6.6291260736238833e-01*f[176]*z2+6.6291260736238833e-01*z0*f[154]+3.9774756441743300e+00*z3*(z2*z2)*f[91]+8.6114873769721108e+00*z3*z1*f[240]*(z2*z2)+-5.5586911995147297e+00*z3*f[242]*(z4*z4)+1.0269797953221864e+00*f[50]*(z4*z4)+6.8891899015776881e+00*z3*z4*(z1*z1)*f[133]+-1.3258252147247767e+00*z3*f[90]+-6.6704294394176751e+00*z0*f[228]*(z1*z1)*(z2*z2)+1.0269797953221864e+00*f[39]*(z2*z2)+-1.9887378220871650e+00*z1*f[153]*(z2*z2)+1.0269797953221864e+00*(z1*z1)*f[38]+3.0809393859665595e+00*f[109]*z4*z1*(z2*z2)+2.3107045394749196e+01*z3*z0*(z1*z1)*f[205]*(z2*z2)+6.8891899015776881e+00*z3*z0*f[127]*(z2*z2)+-2.2963966338592297e+00*z3*z0*f[124]+2.3107045394749196e+01*z3*(z0*z0)*(z4*z4)*z2*f[218]+-1.1481983169296148e+00*f[122]*(z1*z1)+-6.6704294394176751e+00*f[227]*(z4*z4)*z1*(z2*z2)+-1.9887378220871650e+00*(z0*z0)*z1*f[173]+2.2234764798058917e+00*(z4*z4)*f[226]*z2+8.6114873769721108e+00*z3*f[239]*(z4*z4)*z2+2.2234764798058917e+00*(z0*z0)*f[222]*z4+9.1855865354369182e-01*f[23]*z0*z2+2.3107045394749196e+01*z3*z4*(z1*z1)*(z2*z2)*f[209]+3.0809393859665595e+00*z0*z4*f[108]*(z2*z2)+1.3340858878835350e+01*z3*(z0*z0)*(z1*z1)*f[183]+-4.4469529596117834e+00*z3*(z0*z0)*f[183]+2.5674494883054662e+00*z3*f[207]*z4+-3.8511742324581992e+00*(z0*z0)*f[202]*(z2*z2)+2.2234764798058917e+00*f[222]*z4*(z1*z1)+4.4469529596117834e+00*z3*z0*z1*f[231]+-4.4469529596117834e+00*z3*f[184]*(z2*z2)+-4.4469529596117834e+00*z3*f[185]*(z2*z2)+-1.3340858878835350e+01*z3*(z0*z0)*z4*f[223]*z2+8.6114873769721108e+00*z3*z0*(z4*z4)*f[241]+5.9662134662614950e+00*z0*(z1*z1)*f[154]*(z2*z2)+1.4823176532039277e+00*z3*f[184]+1.4823176532039277e+00*z3*f[185]+-5.0028220795632564e+01*z3*(z0*z0)*f[242]*(z1*z1)*(z2*z2)+-1.9887378220871650e+00*(z4*z4)*f[176]*z2+1.2837247441527331e+00*(z0*z0)*f[202]+-1.0269797953221864e+00*z0*z4*f[108]+-1.4915533665653737e+01*z3*f[236]*(z1*z1)*(z2*z2)+-1.2917231065458166e+01*(z4*z4)*(z1*z1)*(z2*z2)*f[238]+-1.3340858878835350e+01*z3*z0*z4*f[225]*(z1*z1)+3.5575623676894268e+00*f[77]*z3*z0*z4+-1.3340858878835350e+01*z3*z0*z1*f[231]*(z2*z2)+3.4445949507888440e+00*(z0*z0)*(z4*z4)*f[141]+-6.6704294394176751e+00*f[222]*z4*(z1*z1)*(z2*z2)+-1.4915533665653737e+01*z3*(z0*z0)*f[234]*(z4*z4)+2.3107045394749196e+01*z3*(z0*z0)*f[216]*(z4*z4)*z1+3.0809393859665595e+00*(z0*z0)*f[106]*z4*z2+6.6291260736238833e-01*z0*f[174]+-7.7023484649163985e+00*z3*(z0*z0)*z4*f[208]+-3.8511742324581992e+00*(z1*z1)*(z2*z2)*f[215]+2.5674494883054662e+00*z3*z2*f[218]+-7.4115882660196386e-01*f[226]*z2+-6.6704294394176751e+00*(z0*z0)*f[222]*z4*(z2*z2)+1.1932426932522990e+01*z3*z4*(z1*z1)*f[167]*z2+-1.7787811838447134e+00*z0*z4*f[148]*z2+5.9662134662614950e+00*(z0*z0)*f[161]*z4*(z1*z1)+6.8891899015776881e+00*z3*(z0*z0)*f[125]*z2+-6.8891899015776881e+00*z3*z0*f[201]*z1*z2+-2.8704957923240366e+00*z3*f[239]*z2+-1.4915533665653737e+01*z3*(z0*z0)*f[232]*(z2*z2)+4.4746600996961213e+01*z3*(z0*z0)*(z1*z1)*f[232]*(z2*z2)+-1.3340858878835350e+01*z3*z0*(z1*z1)*z2*f[230]+-1.9887378220871650e+00*z4*f[162]*(z2*z2)+-1.4352478961620183e+00*(z4*z4)*f[238]+-1.0269797953221864e+00*z4*z1*f[104]+-1.6572815184059708e+00*z3*f[236]+1.1481983169296148e+00*z1*z2*f[198]+-2.5834462130916332e+01*z3*z0*(z4*z4)*(z2*z2)*f[241]+-4.4469529596117834e+00*z3*f[190]*(z4*z4)+3.9774756441743300e+00*z3*(z4*z4)*f[95]+-4.4469529596117834e+00*z3*(z4*z4)*f[189]+6.8891899015776881e+00*z3*z0*(z1*z1)*f[124]+2.3107045394749196e+01*z3*(z0*z0)*z4*f[208]*(z2*z2)+1.7787811838447134e+00*(z4*z4)*f[85]*z2+-6.8891899015776881e+00*z3*z0*f[196]*z4*z2+-6.8891899015776881e+00*f[195]*z3*z4*z1*z2+-3.8511742324581992e+00*f[213]*(z4*z4)*(z1*z1)+1.1932426932522990e+01*z3*z0*z4*(z1*z1)*f[165]+-2.2963966338592297e+00*z3*z0*f[127]+-7.7023484649163985e+00*z3*z0*(z1*z1)*f[205]+1.1932426932522990e+01*z3*z0*z1*(z2*z2)*f[157]+2.2234764798058917e+00*z0*f[228]*(z1*z1)+-3.9774756441743300e+00*z3*z4*z2*f[166]+2.3107045394749196e+01*z3*f[204]*(z0*z0)*z1*(z2*z2)+-1.9887378220871650e+00*z0*(z2*z2)*f[177]+-4.2790824805091104e-01*f[215]+-2.8704957923240366e+00*z3*z1*f[240]+1.0333784852366533e+01*(z0*z0)*z4*(z1*z1)*z2*f[192]+4.0022576636506052e+01*z3*z0*z4*f[225]*(z1*z1)*(z2*z2)+3.5575623676894268e+00*z3*f[67]*z1*z2+2.5674494883054662e+00*z3*z2*f[203]; if (dir == 4) return 8.6114873769721108e+00*(z3*z3)*z4*z1*f[240]+2.2234764798058917e+00*(z3*z3)*z1*f[224]+-6.6704294394176751e+00*z3*(z0*z0)*f[222]*(z1*z1)+-1.4915533665653737e+01*(z3*z3)*(z0*z0)*f[234]*z4+1.1932426932522990e+01*z3*(z0*z0)*z4*z1*f[173]+-1.9887378220871650e+00*z3*(z1*z1)*f[163]+2.0011288318253026e+01*(z3*z3)*z0*f[225]*(z1*z1)*(z2*z2)+2.3107045394749196e+01*(z0*z0)*z4*z1*f[211]*(z2*z2)+-1.9887378220871650e+00*(z0*z0)*z1*f[159]+-1.0269797953221864e+00*z1*f[101]*z2+-1.3258252147247767e+00*z4*f[94]+1.4823176532039277e+00*z4*f[186]+5.3363435515341404e+00*z3*z0*(z1*z1)*f[148]*z2+3.4445949507888440e+00*(z0*z0)*f[129]*(z1*z1)+-1.3340858878835350e+01*z3*z4*(z1*z1)*f[226]*z2+6.6291260736238833e-01*f[167]*z2+5.9662134662614950e+00*(z3*z3)*z0*(z1*z1)*f[165]+-1.1481983169296148e+00*(z0*z0)*f[132]+1.7787811838447134e+00*(z0*z0)*f[70]*z2+-6.6704294394176751e+00*(z0*z0)*(z1*z1)*f[223]*z2+2.5674494883054662e+00*f[221]*z4*z1+-1.2917231065458166e+01*(z3*z3)*(z1*z1)*f[237]*(z2*z2)+1.2837247441527331e+00*(z2*z2)*f[209]+4.3057436884860554e+00*(z3*z3)*f[237]*(z2*z2)+2.5674494883054662e+00*z3*z4*f[214]+2.5674494883054662e+00*z3*z4*f[215]+-2.5834462130916332e+01*(z3*z3)*z0*z4*(z2*z2)*f[241]+-1.4915533665653737e+01*(z3*z3)*(z0*z0)*z4*f[235]+-2.2963966338592297e+00*z0*z4*f[136]+-7.7023484649163985e+00*z0*z4*(z1*z1)*f[217]+-7.7023484649163985e+00*(z3*z3)*f[216]*z4*z1+-7.7023484649163985e+00*(z3*z3)*z4*z2*f[218]+5.3363435515341404e+00*(z3*z3)*z0*f[150]*z1*z2+-1.3340858878835350e+01*(z0*z0)*z4*z1*z2*f[229]+4.9718445552179125e+00*f[236]*z4*(z2*z2)+-1.4352478961620183e+00*(z3*z3)*f[237]+4.3057436884860554e+00*(z3*z3)*(z1*z1)*f[237]+-1.0269797953221864e+00*z3*z0*f[105]+5.9662134662614950e+00*z3*(z1*z1)*(z2*z2)*f[163]+1.1932426932522990e+01*z3*f[178]*z4*z1*(z2*z2)+1.7787811838447134e+00*z0*(z1*z1)*f[69]+5.3363435515341404e+00*z3*(z0*z0)*z1*f[147]*z2+-7.7023484649163985e+00*(z0*z0)*z4*z1*f[211]+-1.9887378220871650e+00*f[158]*(z1*z1)*z2+-6.6704294394176751e+00*(z3*z3)*z0*f[225]*(z1*z1)+3.9774756441743300e+00*(z0*z0)*z4*f[92]+-1.3340858878835350e+01*z3*z0*f[228]*z4*(z2*z2)+2.2234764798058917e+00*z1*(z2*z2)*f[224]+2.3107045394749196e+01*z0*z4*(z1*z1)*(z2*z2)*f[212]+-5.9292706128157113e-01*z1*f[78]+8.6114873769721108e+00*z3*z4*(z1*z1)*f[238]+1.3340858878835350e+01*(z3*z3)*f[190]*z4*(z1*z1)+2.5674494883054662e+00*z0*z4*f[220]+4.4469529596117834e+00*z0*z4*z2*f[230]+4.4469529596117834e+00*z3*z0*f[228]*z4+-7.7023484649163985e+00*z0*z4*f[220]*(z2*z2)+-1.9887378220871650e+00*z3*f[161]*(z1*z1)+-1.6572815184059708e+00*f[236]*z4+-2.2963966338592297e+00*z4*z1*f[145]+5.3033008588991060e-01*f[14]*z2+2.3107045394749196e+01*(z3*z3)*(z0*z0)*z4*z2*f[218]+-4.4469529596117834e+00*(z0*z0)*f[187]*z4+1.2837247441527331e+00*(z0*z0)*f[207]+1.2837247441527331e+00*(z0*z0)*f[206]+2.5674494883054662e+00*f[219]*z4*z2+-1.6572815184059708e+00*f[234]*z4+-3.8511742324581992e+00*(z3*z3)*f[207]*(z1*z1)+-1.9887378220871650e+00*z0*f[168]*(z2*z2)+-1.4915533665653737e+01*(z0*z0)*z4*(z2*z2)*f[235]+-5.9292706128157113e-01*z3*f[74]+1.1481983169296148e+00*z3*f[193]*z1+-2.2963966338592297e+00*z4*z2*f[146]+-5.0028220795632564e+01*(z0*z0)*f[242]*z4*(z1*z1)*(z2*z2)+1.6676073598544189e+01*(z0*z0)*f[242]*z4*(z2*z2)+-3.4445949507888440e+00*z3*(z0*z0)*z2*f[192]+2.3107045394749196e+01*(z0*z0)*f[210]*z4*(z1*z1)*z2+1.0333784852366533e+01*z3*(z0*z0)*(z1*z1)*z2*f[192]+-3.8511742324581992e+00*(z0*z0)*f[208]*(z2*z2)+5.9662134662614950e+00*(z0*z0)*z1*f[159]*(z2*z2)+-5.5586911995147297e+00*f[242]*z4*(z1*z1)+-3.9774756441743300e+00*z3*f[175]*z4*z2+3.8273277230987157e-01*f[132]+6.6291260736238833e-01*z3*f[162]+6.6291260736238833e-01*z3*f[163]+1.3340858878835350e+01*z4*(z1*z1)*f[188]*(z2*z2)+8.6114873769721108e+00*f[239]*z4*(z1*z1)*z2+1.7787811838447134e+00*(z1*z1)*z2*f[71]+-2.2963966338592297e+00*z3*z4*f[141]+2.0011288318253026e+01*z3*(z0*z0)*f[222]*(z1*z1)*(z2*z2)+-1.6572815184059708e+00*z4*f[235]+9.1855865354369182e-01*z3*z1*f[29]+-6.8891899015776881e+00*z3*z0*z4*f[199]*z2+-1.1481983169296148e+00*(z2*z2)*f[131]+5.3033008588991060e-01*z1*f[13]+-2.5834462130916332e+01*(z3*z3)*z4*z1*f[240]*(z2*z2)+-2.5834462130916332e+01*(z3*z3)*(z0*z0)*z4*z1*f[240]+-5.9292706128157113e-01*f[79]*z2+-7.7023484649163985e+00*(z3*z3)*z0*z4*f[217]+3.0809393859665595e+00*(z3*z3)*z0*z1*f[110]+4.0022576636506052e+01*z3*(z0*z0)*z4*(z1*z1)*f[226]*z2+-4.4469529596117834e+00*(z0*z0)*z4*f[189]+-7.7023484649163985e+00*z3*z4*(z2*z2)*f[215]+1.7787811838447134e+00*z0*f[72]*(z2*z2)+-1.1481983169296148e+00*f[130]*(z2*z2)+-4.2790824805091104e-01*f[207]+3.8751693196374497e+01*(z3*z3)*(z0*z0)*(z1*z1)*f[237]*(z2*z2)+-7.7023484649163985e+00*z3*z4*f[214]*(z2*z2)+-3.8511742324581992e+00*(z3*z3)*(z0*z0)*f[208]+-3.4445949507888440e+00*z0*f[196]*(z1*z1)*z2+-1.0269797953221864e+00*z3*z0*f[108]+-1.3258252147247767e+00*f[93]*z4+6.8891899015776881e+00*(z0*z0)*z4*f[135]*z1+-1.9887378220871650e+00*(z3*z3)*z0*f[168]+-3.4445949507888440e+00*z0*z1*f[197]*(z2*z2)+2.2234764798058917e+00*(z0*z0)*f[223]*z2+-1.0269797953221864e+00*z0*f[111]*z2+-5.9292706128157113e-01*f[73]*z1+6.6291260736238833e-01*z0*f[160]+-7.7023484649163985e+00*f[221]*z4*z1*(z2*z2)+2.5674494883054662e+00*z3*f[213]*z4+-6.8891899015776881e+00*z3*z0*z4*z1*f[200]+3.5575623676894268e+00*f[80]*z0*z4*z1+2.3107045394749196e+01*(z3*z3)*(z0*z0)*f[216]*z4*z1+-1.3258252147247767e+00*z4*f[92]+1.1932426932522990e+01*(z3*z3)*z0*z4*z1*f[179]+-3.9774756441743300e+00*z0*z4*z1*f[172]+-3.4445949507888440e+00*f[195]*(z3*z3)*z1*z2+4.0022576636506052e+01*(z3*z3)*z0*z4*z1*f[231]*(z2*z2)+1.1932426932522990e+01*(z3*z3)*f[181]*z4*z1*z2+-1.0269797953221864e+00*z0*z1*f[110]+8.6114873769721108e+00*(z0*z0)*f[239]*z4*z2+3.0809393859665595e+00*z0*f[102]*(z1*z1)*z2+2.5674494883054662e+00*z0*z4*f[217]+2.5674494883054662e+00*f[210]*z4*z2+-1.9887378220871650e+00*z3*(z2*z2)*f[163]+-2.2963966338592297e+00*f[138]*z4*z2+2.2234764798058917e+00*z3*(z0*z0)*f[222]+4.9718445552179125e+00*f[233]*z4*(z1*z1)+1.3340858878835350e+01*(z3*z3)*(z0*z0)*z4*f[189]+6.8891899015776881e+00*z0*z4*(z1*z1)*f[136]+5.9662134662614950e+00*f[158]*(z0*z0)*(z1*z1)*z2+6.1618787719331189e+00*z3*z0*z4*z1*f[114]+6.6291260736238833e-01*z3*f[161]+3.0809393859665595e+00*(z3*z3)*z0*f[111]*z2+-6.6704294394176751e+00*(z3*z3)*(z0*z0)*f[223]*z2+-1.4915533665653737e+01*(z0*z0)*f[233]*z4*(z2*z2)+-4.4469529596117834e+00*(z3*z3)*f[190]*z4+3.8273277230987157e-01*f[129]+-3.9774756441743300e+00*z3*z0*z4*f[177]+1.3340858878835350e+01*(z0*z0)*z4*(z1*z1)*f[186]+-1.3340858878835350e+01*z3*f[227]*(z0*z0)*z4*z1+-1.4915533665653737e+01*f[236]*z4*(z1*z1)*(z2*z2)+1.2837247441527331e+00*(z1*z1)*f[209]+4.4469529596117834e+00*z4*z1*z2*f[229]+7.7503386392748993e+01*(z3*z3)*(z0*z0)*z4*z1*f[240]*(z2*z2)+-2.5834462130916332e+01*(z3*z3)*z0*z4*(z1*z1)*f[241]+-5.9292706128157113e-01*f[70]*z2+6.8891899015776881e+00*(z3*z3)*z4*z2*f[146]+-1.7787811838447134e+00*z3*z0*f[148]*z2+2.0667569704733065e+01*z3*z0*z4*z1*f[200]*(z2*z2)+3.0618621784789724e-01*f[5]+1.7787811838447134e+00*f[77]*(z3*z3)*z0+-4.4469529596117834e+00*(z0*z0)*z4*f[186]+-1.9887378220871650e+00*(z3*z3)*z2*f[166]+-1.1481983169296148e+00*f[129]*(z1*z1)+6.6291260736238833e-01*z1*f[159]+-7.7023484649163985e+00*(z3*z3)*f[219]*z4*z2+-7.7023484649163985e+00*f[221]*(z3*z3)*z4*z1+1.7787811838447134e+00*f[73]*z1*(z2*z2)+2.3107045394749196e+01*(z3*z3)*f[219]*z4*(z1*z1)*z2+5.9662134662614950e+00*(z3*z3)*z0*f[168]*(z2*z2)+1.2837247441527331e+00*(z3*z3)*f[207]+4.0022576636506052e+01*(z3*z3)*z0*z4*(z1*z1)*z2*f[230]+-1.9887378220871650e+00*(z3*z3)*f[164]*z1+-2.2963966338592297e+00*z4*z1*f[140]+4.0022576636506052e+01*z3*z0*f[228]*z4*(z1*z1)*(z2*z2)+3.0809393859665595e+00*z3*z0*f[108]*(z2*z2)+1.1553522697374598e+01*(z3*z3)*(z0*z0)*f[208]*(z2*z2)+1.0269797953221864e+00*(z3*z3)*f[46]+4.4469529596117834e+00*z0*z4*z1*f[231]+9.1855865354369182e-01*z0*f[26]*z2+-1.0269797953221864e+00*z0*f[102]*z2+8.6114873769721108e+00*z3*z4*(z2*z2)*f[238]+2.0011288318253026e+01*(z3*z3)*(z0*z0)*z1*(z2*z2)*f[224]+-3.4232659844072882e-01*f[45]+-7.7023484649163985e+00*z4*z1*f[211]*(z2*z2)+1.6676073598544189e+01*(z3*z3)*f[242]*z4*(z1*z1)+-5.9292706128157113e-01*z3*f[76]+1.0269797953221864e+00*(z0*z0)*f[43]+3.4445949507888440e+00*(z0*z0)*f[130]*(z2*z2)+-2.2963966338592297e+00*z0*z4*f[139]+-1.0269797953221864e+00*f[103]*z0*z1+2.2234764798058917e+00*z0*f[225]*(z1*z1)+2.0667569704733065e+01*(z3*z3)*z0*f[201]*z4*z1*z2+-1.3340858878835350e+01*z3*(z0*z0)*z4*f[226]*z2+2.0539595906443728e+00*z4*z1*f[48]+-2.8704957923240366e+00*z3*z4*f[238]+9.1855865354369182e-01*z3*z0*f[28]+-1.4352478961620183e+00*(z0*z0)*f[237]+-3.8511742324581992e+00*(z1*z1)*(z2*z2)*f[206]+1.4823176532039277e+00*z4*f[189]+-1.3258252147247767e+00*z4*f[95]+1.4823176532039277e+00*z4*f[188]+2.5674494883054662e+00*z4*z2*f[218]+-3.4445949507888440e+00*z3*f[193]*z1*(z2*z2)+-1.4915533665653737e+01*(z3*z3)*f[236]*z4*(z2*z2)+1.1932426932522990e+01*(z3*z3)*z0*z4*z2*f[180]+-3.9774756441743300e+00*z0*z4*z2*f[171]+-1.4915533665653737e+01*(z0*z0)*f[234]*z4*(z1*z1)+-4.2790824805091104e-01*f[208]+2.3107045394749196e+01*z3*(z0*z0)*f[213]*z4*(z1*z1)+-1.1481983169296148e+00*(z2*z2)*f[134]+6.6291260736238833e-01*f[169]*z1+-5.5586911995147297e+00*(z3*z3)*f[242]*z4+-7.4115882660196386e-01*f[223]*z2+3.0809393859665595e+00*z3*(z0*z0)*f[106]*z2+6.8891899015776881e+00*(z3*z3)*z4*z1*f[145]+6.1618787719331189e+00*z3*z0*f[115]*z4*z2+-1.1481983169296148e+00*(z1*z1)*f[131]+-7.7023484649163985e+00*(z3*z3)*z0*z4*f[220]+2.0539595906443728e+00*z4*z2*f[49]+6.1618787719331189e+00*z0*z4*z1*z2*f[113]+-4.4469529596117834e+00*f[190]*z4*(z1*z1)+-6.6704294394176751e+00*(z3*z3)*z1*(z2*z2)*f[224]+6.8891899015776881e+00*z0*z4*(z2*z2)*f[139]+1.0269797953221864e+00*(z1*z1)*f[44]+1.3340858878835350e+01*(z0*z0)*f[187]*z4*(z2*z2)+2.2234764798058917e+00*z3*f[222]*(z2*z2)+-5.0028220795632564e+01*(z3*z3)*(z0*z0)*f[242]*z4*(z1*z1)+3.4445949507888440e+00*(z3*z3)*(z1*z1)*f[133]+-2.2963966338592297e+00*z3*f[143]*z4+1.1481983169296148e+00*f[195]*z1*z2+-1.1481983169296148e+00*(z3*z3)*f[132]+-1.1481983169296148e+00*(z3*z3)*f[133]+6.8891899015776881e+00*f[138]*z4*(z1*z1)*z2+1.1932426932522990e+01*z3*z4*f[176]*(z1*z1)*z2+-1.9887378220871650e+00*z0*(z1*z1)*f[165]+4.4469529596117834e+00*z3*f[227]*z4*z1+-7.7023484649163985e+00*f[210]*z4*(z1*z1)*z2+4.9718445552179125e+00*(z0*z0)*f[234]*z4+-2.8704957923240366e+00*z4*z1*f[240]+1.1932426932522990e+01*z3*z0*z4*(z2*z2)*f[177]+-7.7023484649163985e+00*z3*z4*(z1*z1)*f[215]+-2.5834462130916332e+01*(z0*z0)*f[239]*z4*(z1*z1)*z2+-7.4115882660196386e-01*z0*f[225]+-2.5834462130916332e+01*z0*z4*(z1*z1)*(z2*z2)*f[241]+1.4823176532039277e+00*f[187]*z4+-1.9887378220871650e+00*(z3*z3)*z0*f[165]+4.9718445552179125e+00*(z0*z0)*z4*f[235]+-1.9887378220871650e+00*z3*f[162]*(z2*z2)+2.5674494883054662e+00*f[216]*z4*z1+3.8273277230987157e-01*f[130]+1.6676073598544189e+01*f[242]*z4*(z1*z1)*(z2*z2)+4.3057436884860554e+00*(z1*z1)*f[237]*(z2*z2)+-1.0269797953221864e+00*z3*z1*f[104]+-4.4469529596117834e+00*(z3*z3)*z4*f[191]+3.5575623676894268e+00*z0*z4*z2*f[81]+1.2837247441527331e+00*f[208]*(z2*z2)+2.5674494883054662e+00*z0*z4*f[212]+3.0809393859665595e+00*z3*(z1*z1)*z2*f[107]+3.5575623676894268e+00*z4*z1*f[82]*z2+-4.4469529596117834e+00*z4*(z1*z1)*f[188]+-2.5834462130916332e+01*z3*(z0*z0)*z4*(z1*z1)*f[238]+1.2837247441527331e+00*(z0*z0)*f[208]+-5.5586911995147297e+00*(z0*z0)*f[242]*z4+1.6676073598544189e+01*(z0*z0)*f[242]*z4*(z1*z1)+2.3107045394749196e+01*f[221]*(z3*z3)*z4*z1*(z2*z2)+-5.9292706128157113e-01*z3*f[75]+6.6291260736238833e-01*z0*f[168]+-1.9887378220871650e+00*z1*f[159]*(z2*z2)+-5.5586911995147297e+00*f[242]*z4*(z2*z2)+5.3033008588991060e-01*z3*f[15]+9.1855865354369182e-01*z3*f[30]*z2+1.1481983169296148e+00*z0*z1*f[197]+1.7787811838447134e+00*(z3*z3)*f[79]*z2+5.9662134662614950e+00*(z3*z3)*f[169]*z1*(z2*z2)+-1.2917231065458166e+01*(z3*z3)*(z0*z0)*(z1*z1)*f[237]+-3.9774756441743300e+00*z0*z4*z2*f[180]+4.4746600996961213e+01*(z3*z3)*(z0*z0)*f[234]*z4*(z1*z1)+4.9718445552179125e+00*z4*(z2*z2)*f[235]+-1.9887378220871650e+00*z0*(z1*z1)*f[160]+-1.7787811838447134e+00*z3*z1*f[147]*z2+-1.3340858878835350e+01*z0*z4*(z1*z1)*z2*f[230]+-5.9292706128157113e-01*z0*f[72]+-7.7023484649163985e+00*z0*z4*(z2*z2)*f[212]+7.7503386392748993e+01*z3*(z0*z0)*z4*(z1*z1)*(z2*z2)*f[238]+-5.0028220795632564e+01*(z3*z3)*f[242]*z4*(z1*z1)*(z2*z2)+-1.2917231065458166e+01*(z3*z3)*(z0*z0)*f[237]*(z2*z2)+4.9718445552179125e+00*(z3*z3)*z4*f[235]+-1.3340858878835350e+01*z0*z4*z1*f[231]*(z2*z2)+-2.2963966338592297e+00*z4*f[135]*z1+-3.4445949507888440e+00*(z3*z3)*z0*f[196]*z2+-1.1481983169296148e+00*(z3*z3)*f[134]+-6.6704294394176751e+00*(z3*z3)*(z0*z0)*z1*f[224]+1.2837247441527331e+00*f[207]*(z1*z1)+4.9718445552179125e+00*(z3*z3)*f[234]*z4+-2.5834462130916332e+01*(z0*z0)*z4*z1*f[240]*(z2*z2)+-3.4232659844072882e-01*f[43]+8.6114873769721108e+00*(z3*z3)*z0*z4*f[241]+-3.9774756441743300e+00*z3*z4*z1*f[173]+1.5909902576697319e+00*f[52]*z0*z1*z2+4.7841596538733949e-01*f[237]+-3.8511742324581992e+00*(z3*z3)*(z0*z0)*f[207]+1.7787811838447134e+00*(z0*z0)*z1*f[68]+-3.9774756441743300e+00*z3*f[178]*z4*z1+8.6114873769721108e+00*(z3*z3)*f[239]*z4*z2+-7.4115882660196386e-01*z3*f[222]+2.0667569704733065e+01*z3*z0*z4*f[199]*(z1*z1)*z2+7.7503386392748993e+01*(z3*z3)*(z0*z0)*f[239]*z4*(z1*z1)*z2+-4.4469529596117834e+00*z4*f[191]*(z2*z2)+7.7503386392748993e+01*(z3*z3)*z0*z4*(z1*z1)*(z2*z2)*f[241]+5.3033008588991060e-01*f[12]*z0+1.7787811838447134e+00*(z3*z3)*z1*f[78]+2.3107045394749196e+01*z3*(z0*z0)*z4*f[214]*(z2*z2)+-1.4915533665653737e+01*f[233]*z4*(z1*z1)*(z2*z2)+-6.6704294394176751e+00*z3*(z0*z0)*f[222]*(z2*z2)+-1.3340858878835350e+01*(z3*z3)*z4*z1*z2*f[229]+4.9718445552179125e+00*(z3*z3)*f[236]*z4+8.6114873769721108e+00*z0*z4*(z1*z1)*f[241]+-5.9292706128157113e-01*z0*f[69]+4.4746600996961213e+01*(z3*z3)*f[236]*z4*(z1*z1)*(z2*z2)+2.2234764798058917e+00*(z1*z1)*f[223]*z2+-1.1481983169296148e+00*(z0*z0)*f[130]+3.9774756441743300e+00*z4*(z2*z2)*f[94]+-1.0269797953221864e+00*z3*f[106]*z2+1.0269797953221864e+00*f[45]*(z2*z2)+-2.5834462130916332e+01*z3*z4*(z1*z1)*(z2*z2)*f[238]+1.2837247441527331e+00*(z2*z2)*f[206]+-3.9774756441743300e+00*f[181]*z4*z1*z2+-1.4352478961620183e+00*(z1*z1)*f[237]+8.6114873769721108e+00*z3*(z0*z0)*z4*f[238]+3.8273277230987157e-01*f[133]+5.9662134662614950e+00*z0*(z1*z1)*(z2*z2)*f[160]+-3.9774756441743300e+00*z0*z4*z1*f[179]+3.0809393859665595e+00*z3*z0*f[105]*(z1*z1)+6.8891899015776881e+00*(z3*z3)*z0*f[144]*z4+2.7556759606310752e+00*z3*z0*f[96]*z1*z2+1.7787811838447134e+00*z3*(z1*z1)*f[75]+1.1932426932522990e+01*(z0*z0)*f[170]*z4*z1*z2+3.0809393859665595e+00*(z0*z0)*z1*f[101]*z2+-1.9887378220871650e+00*z3*(z0*z0)*f[161]+-3.9774756441743300e+00*z3*z0*z4*f[174]+-3.4445949507888440e+00*f[195]*(z0*z0)*z1*z2+-2.5834462130916332e+01*(z3*z3)*(z0*z0)*f[239]*z4*z2+-3.4445949507888440e+00*z3*z0*f[194]*(z2*z2)+-1.4352478961620183e+00*f[237]*(z2*z2)+-3.8511742324581992e+00*(z3*z3)*(z2*z2)*f[209]+4.9718445552179125e+00*f[236]*z4*(z1*z1)+3.0809393859665595e+00*z3*(z0*z0)*z1*f[104]+1.1932426932522990e+01*z3*(z0*z0)*f[175]*z4*z2+4.9718445552179125e+00*(z0*z0)*f[233]*z4+-3.4445949507888440e+00*z3*(z1*z1)*z2*f[192]+1.1553522697374598e+01*(z3*z3)*(z1*z1)*(z2*z2)*f[209]+4.0022576636506052e+01*z3*f[227]*(z0*z0)*z4*z1*(z2*z2)+6.8891899015776881e+00*f[137]*(z0*z0)*z4*z2+-6.6704294394176751e+00*(z3*z3)*z0*f[225]*(z2*z2)+-6.6704294394176751e+00*z3*f[222]*(z1*z1)*(z2*z2)+-6.8891899015776881e+00*z0*f[201]*z4*z1*z2+-1.3340858878835350e+01*(z3*z3)*z0*z4*z1*f[231]+-6.6704294394176751e+00*(z0*z0)*z1*(z2*z2)*f[224]+6.8891899015776881e+00*z3*z4*(z1*z1)*f[142]+5.9662134662614950e+00*z3*(z0*z0)*f[162]*(z2*z2)+-1.9887378220871650e+00*(z0*z0)*f[164]*z1+1.1932426932522990e+01*z0*z4*z1*(z2*z2)*f[172]+2.5674494883054662e+00*z4*z1*f[211]+3.0809393859665595e+00*z3*f[109]*z1*(z2*z2)+-4.2790824805091104e-01*f[206]+3.0809393859665595e+00*(z3*z3)*f[112]*z1*z2+9.1855865354369182e-01*f[27]*z1*z2+1.1553522697374598e+01*(z3*z3)*(z0*z0)*f[207]*(z1*z1)+-1.3340858878835350e+01*z3*z0*f[228]*z4*(z1*z1)+-7.4115882660196386e-01*z1*f[224]+-3.8511742324581992e+00*(z0*z0)*(z1*z1)*f[206]+-1.4915533665653737e+01*(z3*z3)*f[234]*z4*(z1*z1)+-1.9887378220871650e+00*(z3*z3)*f[167]*z2+-3.4232659844072882e-01*f[46]+-7.7023484649163985e+00*f[219]*z4*(z1*z1)*z2+3.4445949507888440e+00*(z3*z3)*(z0*z0)*f[132]+1.0672687103068281e+01*z3*z0*z4*z1*z2*f[151]+-1.9887378220871650e+00*(z0*z0)*z2*f[166]+3.5575623676894268e+00*z3*z4*z1*f[84]+5.9662134662614950e+00*(z3*z3)*(z1*z1)*f[167]*z2+-4.4469529596117834e+00*f[187]*z4*(z2*z2)+-2.5834462130916332e+01*(z3*z3)*f[239]*z4*(z1*z1)*z2+2.2234764798058917e+00*z0*f[225]*(z2*z2)+5.9662134662614950e+00*(z3*z3)*(z0*z0)*f[164]*z1+1.7787811838447134e+00*z3*(z0*z0)*f[74]+6.6291260736238833e-01*z0*f[165]+-1.1481983169296148e+00*(z0*z0)*f[129]+4.0022576636506052e+01*(z3*z3)*(z0*z0)*z4*z1*z2*f[229]+-3.8511742324581992e+00*(z3*z3)*f[208]*(z2*z2)+8.6114873769721108e+00*z4*z1*f[240]*(z2*z2)+2.0539595906443728e+00*f[47]*z0*z4+-1.4915533665653737e+01*(z3*z3)*f[236]*z4*(z1*z1)+-3.9774756441743300e+00*z3*z4*f[176]*z2+-2.5834462130916332e+01*z3*(z0*z0)*z4*(z2*z2)*f[238]+-3.8511742324581992e+00*(z1*z1)*(z2*z2)*f[209]+-7.7023484649163985e+00*z3*(z0*z0)*z4*f[214]+1.4823176532039277e+00*z4*f[191]+4.4746600996961213e+01*(z3*z3)*(z0*z0)*z4*(z2*z2)*f[235]+2.3107045394749196e+01*z3*z4*(z1*z1)*(z2*z2)*f[215]+1.0333784852366533e+01*f[195]*(z3*z3)*(z0*z0)*z1*z2+4.9718445552179125e+00*f[234]*z4*(z1*z1)+5.3363435515341404e+00*z3*z0*f[149]*z1*(z2*z2)+1.1553522697374598e+01*(z0*z0)*(z1*z1)*(z2*z2)*f[206]+-1.3340858878835350e+01*z3*f[227]*z4*z1*(z2*z2)+-1.9887378220871650e+00*(z1*z1)*f[167]*z2+-1.9887378220871650e+00*z0*(z2*z2)*f[160]+-2.2963966338592297e+00*z3*z4*f[142]+-1.1481983169296148e+00*(z1*z1)*f[133]+-5.9292706128157113e-01*z1*f[68]+-7.7023484649163985e+00*(z0*z0)*z4*z2*f[218]+5.9662134662614950e+00*(z3*z3)*(z0*z0)*z2*f[166]+-7.7023484649163985e+00*z0*z4*(z1*z1)*f[212]+1.5909902576697319e+00*z3*f[55]*z1*z2+-1.0269797953221864e+00*z3*f[109]*z1+-1.9887378220871650e+00*z3*(z0*z0)*f[162]+-1.0269797953221864e+00*f[112]*z1*z2+2.2234764798058917e+00*z3*f[222]*(z1*z1)+-5.0028220795632564e+01*(z3*z3)*(z0*z0)*f[242]*z4*(z2*z2)+2.2234764798058917e+00*(z3*z3)*z0*f[225]+6.8891899015776881e+00*z3*f[143]*z4*(z2*z2)+-3.8511742324581992e+00*(z0*z0)*f[207]*(z1*z1)+1.1481983169296148e+00*z3*z0*f[194]+2.2234764798058917e+00*(z3*z3)*f[223]*z2+1.1932426932522990e+01*z3*z0*z4*(z1*z1)*f[174]+5.9662134662614950e+00*z3*(z0*z0)*f[161]*(z1*z1)+-6.8891899015776881e+00*z3*z4*z1*z2*f[198]+-1.2917231065458166e+01*(z0*z0)*(z1*z1)*f[237]*(z2*z2)+-1.9887378220871650e+00*(z3*z3)*f[169]*z1+3.4445949507888440e+00*(z3*z3)*(z2*z2)*f[134]+1.0333784852366533e+01*(z3*z3)*z0*f[196]*(z1*z1)*z2+-6.6704294394176751e+00*(z3*z3)*(z1*z1)*f[223]*z2+2.0539595906443728e+00*z3*f[50]*z4+1.8528970665049098e+00*f[242]*z4+-7.7023484649163985e+00*(z0*z0)*f[216]*z4*z1+1.3340858878835350e+01*(z3*z3)*z4*f[191]*(z2*z2)+-1.0269797953221864e+00*z3*z2*f[107]+1.0333784852366533e+01*(z3*z3)*z0*z1*f[197]*(z2*z2)+1.5909902576697319e+00*z3*z0*z2*f[54]+1.5909902576697319e+00*z3*z0*f[53]*z1+3.5575623676894268e+00*z3*z4*f[85]*z2+3.8273277230987157e-01*f[134]+-2.2963966338592297e+00*z0*f[144]*z4+-1.9887378220871650e+00*f[158]*(z0*z0)*z2+8.6114873769721108e+00*(z0*z0)*z4*z1*f[240]+4.3057436884860554e+00*(z3*z3)*(z0*z0)*f[237]+-4.4469529596117834e+00*(z3*z3)*z4*f[189]+3.9774756441743300e+00*(z3*z3)*z4*f[95]+6.6291260736238833e-01*f[164]*z1+6.8891899015776881e+00*z3*(z0*z0)*z4*f[141]+-5.9292706128157113e-01*z2*f[71]+8.6114873769721108e+00*z0*z4*(z2*z2)*f[241]+3.4445949507888440e+00*(z1*z1)*(z2*z2)*f[131]+2.0011288318253026e+01*(z3*z3)*(z0*z0)*(z1*z1)*f[223]*z2+-4.4469529596117834e+00*z4*(z1*z1)*f[186]+1.1481983169296148e+00*z0*f[196]*z2+-4.4469529596117834e+00*z4*f[188]*(z2*z2)+4.9718445552179125e+00*f[233]*z4*(z2*z2)+1.1481983169296148e+00*z3*z2*f[192]+-3.4445949507888440e+00*z3*z0*(z1*z1)*f[194]+-1.6572815184059708e+00*f[233]*z4+1.0333784852366533e+01*z3*z0*(z1*z1)*f[194]*(z2*z2)+2.3107045394749196e+01*(z3*z3)*z0*z4*(z1*z1)*f[217]+2.0667569704733065e+01*z3*(z0*z0)*z4*z1*z2*f[198]+4.3057436884860554e+00*(z0*z0)*f[237]*(z2*z2)+1.1858541225631423e+00*z4*f[20]+3.5575623676894268e+00*z3*z0*f[83]*z4+-4.2790824805091104e-01*f[209]+-1.4915533665653737e+01*(z0*z0)*f[233]*z4*(z1*z1)+-3.4445949507888440e+00*z3*(z0*z0)*f[193]*z1+-6.6704294394176751e+00*z0*f[225]*(z1*z1)*(z2*z2)+6.6291260736238833e-01*z2*f[166]+3.0809393859665595e+00*f[103]*z0*z1*(z2*z2)+-2.8704957923240366e+00*f[239]*z4*z2+-7.7023484649163985e+00*(z0*z0)*f[210]*z4*z2+1.2837247441527331e+00*(z1*z1)*f[206]+-5.9292706128157113e-01*f[77]*z0+2.2234764798058917e+00*(z0*z0)*z1*f[224]+1.7787811838447134e+00*z3*f[76]*(z2*z2)+9.1855865354369182e-01*z0*z1*f[25]+-2.8704957923240366e+00*z0*z4*f[241]+-3.9774756441743300e+00*f[170]*z4*z1*z2+1.5008466238689769e+02*(z3*z3)*(z0*z0)*f[242]*z4*(z1*z1)*(z2*z2)+1.4823176532039277e+00*f[190]*z4+1.1932426932522990e+01*z0*z4*(z1*z1)*z2*f[171]+1.6676073598544189e+01*(z3*z3)*(z0*z0)*f[242]*z4+-1.3340858878835350e+01*(z3*z3)*z0*z4*z2*f[230]+-7.7023484649163985e+00*z3*(z0*z0)*f[213]*z4+-1.7787811838447134e+00*z3*z0*f[149]*z1+-7.7023484649163985e+00*z3*f[213]*z4*(z1*z1)+6.1618787719331189e+00*z3*z4*z1*z2*f[116]+-3.8511742324581992e+00*(z3*z3)*(z1*z1)*f[209]+6.6291260736238833e-01*f[158]*z2+1.2837247441527331e+00*(z3*z3)*f[208]+1.2837247441527331e+00*(z3*z3)*f[209]+2.3107045394749196e+01*(z3*z3)*z0*z4*f[220]*(z2*z2)+-3.4232659844072882e-01*f[44]+-1.4915533665653737e+01*(z3*z3)*z4*(z2*z2)*f[235]+3.8273277230987157e-01*f[131]+3.9774756441743300e+00*f[93]*z4*(z1*z1)+-1.7787811838447134e+00*z0*f[150]*z1*z2+6.8891899015776881e+00*z4*z1*(z2*z2)*f[140]+-3.4445949507888440e+00*(z3*z3)*z0*z1*f[197]+-2.2963966338592297e+00*f[137]*z4*z2+1.6676073598544189e+01*(z3*z3)*f[242]*z4*(z2*z2)+1.0333784852366533e+01*z3*(z0*z0)*f[193]*z1*(z2*z2)+4.3057436884860554e+00*(z0*z0)*(z1*z1)*f[237]+4.4746600996961213e+01*(z0*z0)*f[233]*z4*(z1*z1)*(z2*z2)+-3.8511742324581992e+00*(z0*z0)*(z2*z2)*f[206]+-1.9887378220871650e+00*f[169]*z1*(z2*z2)+4.4469529596117834e+00*z3*z4*f[226]*z2; }
475.061185
45,107
0.715311
460a384ec009a4b36e92ee073708e8a1f4d9fbc8
957
h
C
Class_exercises/Animal_inheritance/Animal_class.h
UAH-s-Telematics-Engineering-Tasks/adv_programming
a31750a2ad2d998208d240a5f4a0d78d4b39f801
[ "MIT" ]
null
null
null
Class_exercises/Animal_inheritance/Animal_class.h
UAH-s-Telematics-Engineering-Tasks/adv_programming
a31750a2ad2d998208d240a5f4a0d78d4b39f801
[ "MIT" ]
null
null
null
Class_exercises/Animal_inheritance/Animal_class.h
UAH-s-Telematics-Engineering-Tasks/adv_programming
a31750a2ad2d998208d240a5f4a0d78d4b39f801
[ "MIT" ]
null
null
null
#include "Library_includes.h" #if !defined(__ANIMAL_CLASS__) #define __ANIMAL_CLASS__ /*enum color { undefined, red, green, blue };*/ class Animal_class { private: int age; /*color col;*/ std::string color; public: /*Animal_class(int a = 0, color c = undefined) : age{a}, col{c} {}*/ Animal_class(int a, std::string c) : age{a}, color{c} {} void set_age(int a) {this->age = a;} int get_age(void) const {return this->age;} void set_color(std::string c) {this->color = c;} std::string get_color(void) const {return this->color;} virtual void how_do_i_move(void) {}; virtual void show(void) const { std::cout << "\n\tAge: " << this->age << "\n\tColor: " << this->color << '\n'; } // void show(void) const { // std::cout << "\n\tAge: " << this->age << "\n\tColor: " << this->color << '\n'; // } virtual Animal_class* clone(void) {return new Animal_class(*this);} }; #endif
24.538462
87
0.589342
2f6a9b8acddc9206730c84745663e5b22346b4eb
599
c
C
src/interface/socket_connector_interface.c
RickySu/respondphp
9316f019356afeab25bfe073b6a01dfc6da75ef8
[ "MIT" ]
null
null
null
src/interface/socket_connector_interface.c
RickySu/respondphp
9316f019356afeab25bfe073b6a01dfc6da75ef8
[ "MIT" ]
null
null
null
src/interface/socket_connector_interface.c
RickySu/respondphp
9316f019356afeab25bfe073b6a01dfc6da75ef8
[ "MIT" ]
null
null
null
#include "respondphp.h" #include "interface/socket_connector_interface.h" DECLARE_FUNCTION_ENTRY(respond_socket_connector_interface) = { ZEND_FENTRY(__construct, NULL, NULL, ZEND_ACC_PRIVATE | ZEND_ACC_ABSTRACT) ZEND_FENTRY(connect, NULL, ARGINFO(respond_socket_connector_interface, connect), ZEND_ACC_PUBLIC | ZEND_ACC_ABSTRACT | ZEND_ACC_STATIC) PHP_FE_END }; CLASS_ENTRY_FUNCTION_D(respond_socket_connector_interface) { INIT_CLASS(respond_socket_connector_interface, "Respond\\Socket\\ConnectorInterface"); REGISTER_INTERNAL_INTERFACE(respond_socket_connector_interface); }
37.4375
139
0.833055
448170a3348f55ac45d63f487fd7f516bb8e8fbf
1,455
h
C
ZJBaseUtils/ZJLabel/ZJLabel.h
Eafy/ZJBaseUtils_iOS
a47bf89317fe748d3d9f68ef83a4c52b0a20a93e
[ "MIT" ]
null
null
null
ZJBaseUtils/ZJLabel/ZJLabel.h
Eafy/ZJBaseUtils_iOS
a47bf89317fe748d3d9f68ef83a4c52b0a20a93e
[ "MIT" ]
null
null
null
ZJBaseUtils/ZJLabel/ZJLabel.h
Eafy/ZJBaseUtils_iOS
a47bf89317fe748d3d9f68ef83a4c52b0a20a93e
[ "MIT" ]
1
2021-12-27T06:15:45.000Z
2021-12-27T06:15:45.000Z
// // ZJLabel.h // ZJBaseUtils // // Created by eafy on 2020/7/25. // Copyright © 2020 ZJ. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN typedef NS_ENUM(NSUInteger, ZJLabelStyle) { ZJLabelStyleNormal, //普通样式 ZJLabelStyleLine = 1 << 1, //线条框样式 ZJLabelStyleDottedLine = 1 << 2, //虚线线条框 ZJLabelStyleSelectable = 1 << 3, //可选样式 ZJLabelStyleCorner = 1 << 4, //圆角样式 }; @interface ZJLabel : UILabel + (instancetype)labelWithStyle:(ZJLabelStyle)style; /// 样式,默认普通 @property (nonatomic,assign) ZJLabelStyle style; /// 普通背景颜色,同backgroundColor @property (nonatomic,strong) UIColor *bgNorColcor; /// 普通文字颜色,同textColor @property (nonatomic,strong) UIColor *textNorColcor; #pragma mark - ZJLabelStyleSelectable /// 是否已选择,ZJLabelStyleSelect生效 @property (nonatomic,assign) BOOL selected; /// 选中文字颜色,ZJLabelStyleSelect生效 @property (nonatomic,strong) UIColor *textSelColcor; /// 选中背景颜色,ZJLabelStyleSelect生效 @property (nonatomic,strong) UIColor *bgSelColcor; /// 标签选择的回调block @property (nonatomic,copy) void (^ _Nullable labelSelectBlock)(BOOL isSelected); /// 边框线条颜色 @property (nonatomic,strong) UIColor *lineColor; #pragma mark - 渐变色 /// 渐变色开关 @property (nonatomic,assign) BOOL isGradientEnable; /// 渐变颜色 @property (nonatomic,strong) NSArray<UIColor *> *gradientColors; /// 渐变百分比 @property (nonatomic,strong) NSArray<NSNumber *> *gradientPercents; @end NS_ASSUME_NONNULL_END
25.086207
80
0.72646
44a1b329f9ffd0e58fbb4cfd5aaeb0f6c30d335e
1,072
h
C
rxnes/core/cpu.h
shangluo/rxnes
c723e3f1cc9a2aa1fb22b27f3f92d070f8136c55
[ "BSD-3-Clause" ]
2
2016-01-21T08:54:19.000Z
2017-05-17T15:21:59.000Z
rxnes/core/cpu.h
shangluo/rxnes
c723e3f1cc9a2aa1fb22b27f3f92d070f8136c55
[ "BSD-3-Clause" ]
null
null
null
rxnes/core/cpu.h
shangluo/rxnes
c723e3f1cc9a2aa1fb22b27f3f92d070f8136c55
[ "BSD-3-Clause" ]
null
null
null
//cpu.h #ifndef _CPU_H #define _CPU_H #include "types.h" //cpu memory extern u8 memory[0x10000]; void cpu_init( void ); u32 cpu_execute_translate( u32 n_cycles ); void cpu_test( void ); //cpu memory management void cpu_mm_write( u16 addr, u8 *buf, u16 len ); void cpu_mm_read( u16 addr, u8 *buf, u16 len ); //set one byte to memory #define cpu_mm_set( addr, data ) \ do \ { \ u8 _d = data; \ cpu_mm_write( addr, &_d, 1 ); \ } while (0) //get one byte from memory #define cpu_mm_get( addr, data ) \ do \ { \ cpu_mm_read(addr, (u8 *)&data, 1); \ } while (0) // interrupt void cpu_set_nmi_pending(); void cpu_set_irq_pending(); //debugging u8 cpu_disassemble_intruction(u16 addr, char *buf, int len); u16 cpu_read_register_value(char *register_name); // state void cpu_state_write(FILE *fp); void cpu_state_read(FILE *fp); #endif //_CPU_H
23.304348
62
0.555037
2896e1b3734d9cbab86d0c54cd6eeb3a1b41d9fc
2,914
h
C
ftemplate.h
harkaitz/c-ftemplate
a000a2eb0cdd421a14b9722a6735bd190654d896
[ "MIT" ]
null
null
null
ftemplate.h
harkaitz/c-ftemplate
a000a2eb0cdd421a14b9722a6735bd190654d896
[ "MIT" ]
null
null
null
ftemplate.h
harkaitz/c-ftemplate
a000a2eb0cdd421a14b9722a6735bd190654d896
[ "MIT" ]
null
null
null
#ifndef FTEMPLATE_H #define FTEMPLATE_H #include <stdio.h> #include <stdbool.h> #include <string.h> #include <unistd.h> __attribute__((weak)) bool ftemplate_key (FILE *_fp1, const char _k[]) { return false; } static __attribute__((unused)) bool ftemplate(FILE *_o, FILE *_i, const char _start[], const char _end[], size_t _keysz, char _key[_keysz]) { int start_match = 0; int end_match = 0; bool is_inside_block = false; size_t key_position = 0; int res = 0; for (;;) { int character_int = fgetc(_i); if (character_int == EOF) { return false; } char character = character_int; /* Inside a block. */ if (is_inside_block) { if (character != _end[end_match++]) { _key[key_position++] = character; if (key_position==_keysz/*err*/) return false; end_match = 0; } else if (_end[end_match] == '\0') { _key[key_position] = '\0'; return true; } } /* Outside a block. */ else if (character != _start[start_match++]) { start_match--; if (_o) { for(int j=0; j<start_match; j++) { res = fputc(_start[j], _o); if (res==EOF/*err*/) return false; } res = fputc(character, _o); if (res==EOF/*err*/) return false; } start_match = 0; } else if (_start[start_match] == '\0') { is_inside_block = true; } } return false; } #endif /**l* * * MIT License * * Bug reports, feature requests to gemini|https://harkadev.com/oss * Copyright (c) 2022 Harkaitz Agirre, harkaitz.aguirre@gmail.com * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **l*/
35.536585
110
0.603638
138cecb14dc12036be1272557cac2af19f9c1f48
285
c
C
gcc-gcc-7_3_0-release/gcc/testsuite/gcc.dg/pr52769.c
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/testsuite/gcc.dg/pr52769.c
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/gcc.dg/pr52769.c
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
/* PR c/52769 */ /* { dg-do run } */ /* { dg-options "-O3" } */ typedef struct { int should_be_zero; char s[6]; int x; } foo_t; int main (void) { volatile foo_t foo = { .s = "123456", .x = 2 }; if (foo.should_be_zero != 0) __builtin_abort (); return 0; }
11.4
30
0.522807
7a6213ef519985fa952904103e58eadd334b09b1
924
h
C
third_party/blink/public/platform/web_text_input_mode.h
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
third_party/blink/public/platform/web_text_input_mode.h
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
third_party/blink/public/platform/web_text_input_mode.h
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef THIRD_PARTY_BLINK_PUBLIC_PLATFORM_WEB_TEXT_INPUT_MODE_H_ #define THIRD_PARTY_BLINK_PUBLIC_PLATFORM_WEB_TEXT_INPUT_MODE_H_ namespace blink { // This mode corrensponds to inputmode // https://html.spec.whatwg.org/#attr-fe-inputmode // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.blink_public.web // GENERATED_JAVA_PREFIX_TO_STRIP: WebTextInputMode enum WebTextInputMode { kWebTextInputModeDefault, kWebTextInputModeNone, kWebTextInputModeText, kWebTextInputModeTel, kWebTextInputModeUrl, kWebTextInputModeEmail, kWebTextInputModeNumeric, kWebTextInputModeDecimal, kWebTextInputModeSearch, kWebTextInputModeMax = kWebTextInputModeSearch, }; } // namespace blink #endif // THIRD_PARTY_BLINK_PUBLIC_PLATFORM_WEB_TEXT_INPUT_MODE_H_
30.8
73
0.830087
2875175029201650f80a215d50d6a3b723132ca1
1,099
c
C
day11/ex09/ft_list_foreach.c
k-k-s/42-Piscine
3daba77790258018adbc0e8997970a1c6669b10d
[ "MIT" ]
70
2018-07-06T13:03:16.000Z
2022-03-24T19:51:48.000Z
day11/ex09/ft_list_foreach.c
k-k-s/42-Piscine
3daba77790258018adbc0e8997970a1c6669b10d
[ "MIT" ]
null
null
null
day11/ex09/ft_list_foreach.c
k-k-s/42-Piscine
3daba77790258018adbc0e8997970a1c6669b10d
[ "MIT" ]
17
2018-07-13T08:40:28.000Z
2021-11-16T07:52:58.000Z
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_list_foreach.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: skuntoji <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2018/07/04 22:55:14 by skuntoji #+# #+# */ /* Updated: 2018/07/04 22:55:17 by skuntoji ### ########.fr */ /* */ /* ************************************************************************** */ #include "ft_list.h" void ft_list_foreach(t_list *begin_list, void (*f)(void *)) { t_list *list_ptr; list_ptr = begin_list; while (list_ptr) { (*f)(list_ptr->data); list_ptr = list_ptr->next; } }
42.269231
80
0.215651
ffb05ec436b16f1e78b66cc04f39574037ad56a1
925
h
C
Project/cri/samples/common/include/CriSmpVideoOutput.h
HirooSugiyama/ReleaseHousekeeper
5a1dd913f704160c2b72ab526029e91247909ec8
[ "Unlicense" ]
null
null
null
Project/cri/samples/common/include/CriSmpVideoOutput.h
HirooSugiyama/ReleaseHousekeeper
5a1dd913f704160c2b72ab526029e91247909ec8
[ "Unlicense" ]
null
null
null
Project/cri/samples/common/include/CriSmpVideoOutput.h
HirooSugiyama/ReleaseHousekeeper
5a1dd913f704160c2b72ab526029e91247909ec8
[ "Unlicense" ]
null
null
null
#ifndef CRISMPVIDEOINPUT_H_INCLUDED /* Re-definition prevention */ #define CRISMPVIDEOINPUT_H_INCLUDED /**************************************************************************** * * CRI Middleware SDK * * Copyright (c) 2006 CRI Middleware Co., Ltd. * * Library : Sample Library * Module : Video Output * File : CriSmpVideoOutput.h * ****************************************************************************/ #include <cri_le_xpt.h> class CriSmpVideoOutput { public: static CriSmpVideoOutput* Create(void); virtual void Destroy(void)=0; virtual void Printf(CriUint32 lx, CriUint32 ly, const char *fmt, ...)=0; virtual void WaitVBlank(void)=0; virtual void BeginDraw(void)=0; virtual void EndDraw(void)=0; protected: CriSmpVideoOutput(void) {} virtual ~CriSmpVideoOutput(void) {} }; void CriSmpPrintf(CriUint32 lx, CriUint32 ly, const char *fmt,...); #endif // CRISMPVIDEOINPUT_H_INCLUDED
26.428571
78
0.608649
d22466b303e13b9f3d1c0fc95d3480b7a3e526b8
10,724
c
C
src/sgx/sgx_enclave_config.c
eyeKill/rkt-io
7981814bc58d5071e0a4c3ce22040ee840cdf7d7
[ "MIT" ]
15
2021-02-02T13:25:27.000Z
2022-03-02T12:23:49.000Z
src/sgx/sgx_enclave_config.c
eyeKill/rkt-io
7981814bc58d5071e0a4c3ce22040ee840cdf7d7
[ "MIT" ]
null
null
null
src/sgx/sgx_enclave_config.c
eyeKill/rkt-io
7981814bc58d5071e0a4c3ce22040ee840cdf7d7
[ "MIT" ]
4
2021-05-18T11:07:49.000Z
2022-03-16T07:25:51.000Z
/* * Copyright 2016, 2017, 2018 Imperial College London * Copyright 2016, 2017 TU Dresden (under SCONE source code license) */ #ifdef SGXLKL_HW #include <assert.h> #include <setjmp.h> #include <stdio.h> #include <string.h> #include "mpmc_queue.h" #include "sgx_enclave_config.h" #include "sgx_hostcall_interface.h" #include "pthread_impl.h" //TODO We should not keep another copy of the capabilities here. A copy of //this feature map (as defined in lkl/arch/lkl/include/asm/x86/cpufeatures.h) is //already stored within the kernel (see 'boot_cpu'). We also might decide in //the future to keep a copy of the original enclave configuration around which //does include the feature map. static uint32_t x86_capabilities[X86NCAPINTS]; /* we need this initializer for signer to find this struct in the TLS image */ static __thread enclave_parms_t enclave_parms = {.base = 0xbaadf00ddeadbabe}; enclave_parms_t* get_enclave_parms() { // The enclave parameters are stored in thread-local storage of each // ethread. Early on they can be accessed at an offset added to the fs // segment base which stores the current thread pointer. However, later on // the fs base is modified to point at the TLS of the currently running // lthread. By then, the scheduling context has been initialised and we can // use it to get the address of the enclave parameter struct. enclave_parms_t* ret; if (__scheduler_self()) { ret = __scheduler_self()->enclave_parms; } if (!ret) { __asm("movq %%fs:16,%0\n" : "=r"(ret) : : ); } return ret; } /* * Do not delete. This is required to prevent the thread-local variable from * being removed during optimization. */ void* never_called() { return &enclave_parms; } void* get_exit_address() { if (get_enclave_parms()->eh_handling) return (void*) get_enclave_parms()->eh_exit_addr; return (void*) get_enclave_parms()->exit_addr; } uint64_t get_ursp() { if (get_enclave_parms()->eh_handling) return get_enclave_parms()->eh_ursp; return get_enclave_parms()->ursp; } uint64_t get_urbp() { if (get_enclave_parms()->eh_handling) return get_enclave_parms()->eh_urbp; return get_enclave_parms()->urbp; } uint64_t get_eh_handling() { return get_enclave_parms()->eh_handling; } void set_eh_handling(uint64_t val) { get_enclave_parms()->eh_handling = val; } int get_thread_state() { return get_enclave_parms()->thread_state; } void set_thread_state(int state) { get_enclave_parms()->thread_state = state; } void leave_enclave(uint64_t rdi, uint64_t rsi) { set_thread_state(OUTSIDE); void* exit_address = get_exit_address(); uint64_t ursp = get_ursp(); uint64_t urbp = get_urbp(); if (setjmp(get_enclave_parms()->regs) == 0) { //TODO: clear registers __asm__ volatile( "mov %0,%%rsp\n" "mov %1,%%rbp\n" ".byte 0x0f \n" ".byte 0x01 \n" ".byte 0xd7 \n" : : "r"(ursp), "r"(urbp), "a"(0x4), "b"(exit_address), "D"(rdi), "S"(rsi) : ); } set_thread_state(ACTIVE); } void exit_enclave(uint64_t rdi, uint64_t rsi, void* exit_address, int exit_thread_state) { set_thread_state(exit_thread_state); uint64_t ursp = get_ursp(); uint64_t urbp = get_urbp(); if (get_eh_handling()) set_eh_handling(0); //TODO: clear registers __asm__ volatile( "mov %0,%%rsp\n" "mov %1,%%rbp\n" ".byte 0x0f \n" ".byte 0x01 \n" ".byte 0xd7 \n" : : "r"(ursp), "r"(urbp), "a"(0x4), "b"(exit_address), "D"(rdi), "S"(rsi) : ); } void ereport(void *target, char *report_data, char *report) { __asm__ volatile( ".byte 0x0f \n" ".byte 0x01 \n" ".byte 0xd7 \n" : : "a"(0x0), // EAX = 00H ENCLU[EREPORT] "b"(target), // RBX = Address of TARGETINFO (In) "c"(report_data), // RCX = Address of REPORTDATA (In) "d"(report) // RDX = Address where the REPORT is // written to : ); } /* Exit enclave to do cpuid * TODO: We should do sanity checks on return values * Input: unsigned int request[4], eax in request[0], ecx in request[2] * Output: values of eax, ebx, ecx, edx returned by cpuid in corresponding elements of request array */ void ocall_cpuid(unsigned int* request) { if (request == NULL) return; Arena *a = NULL; getsyscallslot(&a); size_t len = sizeof(*request) * 4; unsigned int* req = (unsigned int*)arena_alloc(a, len) ; if (!req) { req[0] = request[0]; req[1] = request[1]; req[2] = request[2]; req[3] = request[3]; } //if (req != NULL) memcpy(req, request, len); leave_enclave(SGXLKL_EXIT_CPUID, (uint64_t) req); if (!req) { request[0] = req[0]; request[1] = req[1]; request[2] = req[2]; request[3] = req[3]; } //if (req != NULL) memcpy(request, req, len); arena_free(a); } /* Handle CPUID ecall after an illegal instruction has been caught on the host */ void ecall_cpuid(gprsgx_t *regs) { unsigned int request[4]; int clear_tsc = 0; request[0] = (unsigned int)regs->rax; request[2] = (unsigned int)regs->rcx; if (request[0] == 1) clear_tsc = 1; // Use cached results if possible // TODO The x86_capabilities feature map does not hold complete CPUID // results for most leafs/subleafs, so we can't use it for caching. // Obtain and cache CPUID results separately instead. //if (request[0] == 0x1) { // regs->rax = 0; // regs->rbx = 0; // regs->rcx = x86_capabilities[4]; // regs->rdx = x86_capabilities[0]; //} else if (request[0] == 0x7 && request[2] == 0x0) { if (request[0] == 0x7 && request[2] == 0x0) { regs->rax = 0; regs->rbx = x86_capabilities[9]; regs->rcx = x86_capabilities[16]; regs->rdx = x86_capabilities[18]; //} else if (request[0] == 0xd && request[2] == 0x1) { // regs->rax = x86_capabilities[10]; // regs->rbx = 0; // regs->rcx = 0; // regs->rdx = 0; } else { ocall_cpuid(request); regs->rax = request[0]; regs->rbx = request[1]; regs->rcx = request[2]; regs->rdx = request[3]; } if (clear_tsc) { /* clear TSC bit in edx, CPUID_FEAT_EDX_TSC - 5th bit */ uint64_t mask; mask = ~(1<<4); regs->rdx &= mask; } regs->rip += 2; } /* Handle RDTSC ecall after an illegal instruction has been caught on the host */ void ecall_rdtsc(gprsgx_t *regs, uint64_t ts) { uint64_t mask; mask = 0xffffffff; regs->rax = ts & mask; regs->rdx = (ts & ~mask) >> 32; regs->rip += 2; } int in_enclave_range(void *addr, size_t len) { char *encl_start = (char *) get_enclave_parms()->base; char *encl_end = encl_start + get_enclave_parms()->enclave_size; return (char *)addr >= encl_start && (char *)addr + len < encl_end; } static void enclave_config_fail(void) { exit_enclave(SGXLKL_EXIT_ERROR, SGXLKL_CONFIG_ASSERT_VIOLATION, get_exit_address(), UNUSED); } static char *enclave_safe_str_copy(char *s) { char *safe_s = NULL; if (s) { size_t s_len = strlen(s); if (in_enclave_range(s, s_len)) enclave_config_fail(); if (!(safe_s = strndup(s, s_len + 1))) enclave_config_fail(); } return safe_s; } enclave_config_t *enclave_config_copy_and_check(enclave_config_t *untrusted) { enclave_config_t *encl; if (!(encl = malloc(sizeof(*encl)))) enclave_config_fail(); *encl = *untrusted; // Check pointers // Panic on assertion failure. The enclave is not set up yet to print // anything/fail gracefully. // TODO Leave the enclave with exit code to indicate assertion failure? // Set base/heap/heapsize to known good values encl->base = (void*)get_enclave_parms()->base; encl->heap = (void*)get_enclave_parms()->heap; encl->heapsize = get_enclave_parms()->heap_size; // Must be outside enclave range if (in_enclave_range(encl->syscallpage, PAGE_SIZE)) enclave_config_fail(); if (in_enclave_range(encl->syscallq, sizeof(struct mpmcq))) enclave_config_fail(); if (in_enclave_range(encl->returnq, sizeof(struct mpmcq))) enclave_config_fail(); if (in_enclave_range(encl->disks, sizeof(*encl->disks) * encl->num_disks)) enclave_config_fail(); if (encl->vvar && in_enclave_range(encl->vvar, PAGE_SIZE)) enclave_config_fail(); // TODO Should the kernel command line arguments actually be trusted at // all? // Copy kernel cmd line into enclave encl->kernel_cmd = enclave_safe_str_copy(encl->kernel_cmd); // Same with sysctl encl->sysctl = enclave_safe_str_copy(encl->sysctl); // Copy WG key and peers into enclave encl->wg.key = enclave_safe_str_copy(encl->wg.key); enclave_wg_peer_config_t *safe_peers = malloc(encl->wg.num_peers * sizeof(*safe_peers)); for (int i = 0; i < encl->wg.num_peers; i++) { safe_peers[i].key = enclave_safe_str_copy(encl->wg.peers[i].key); safe_peers[i].allowed_ips = enclave_safe_str_copy(encl->wg.peers[i].allowed_ips); safe_peers[i].endpoint = enclave_safe_str_copy(encl->wg.peers[i].endpoint); } encl->wg.peers = safe_peers; if (in_enclave_range(encl->quote_target_info, sizeof(sgx_target_info_t))) enclave_config_fail(); if (in_enclave_range(encl->report, sizeof(sgx_report_t))) enclave_config_fail(); // Comments on other fields // encl->disks: Individual disk configurations are checked in startmain // encl->auxv: auxv is handled in init_auxv // encl->argv: argv/envp are set before application launch. Host-provided // argv/envp are ignored in release mode // encl->app_config app config is provided remotely in release mode // Keep copy of x86 capability feature map to satisfy CPUID from the // feature map rather than requiring a host call. assert(sizeof(x86_capabilities) == sizeof(encl->x86_capabilities)); memcpy(x86_capabilities, encl->x86_capabilities, sizeof(x86_capabilities)); return encl; } void enclave_config_free(enclave_config_t *encl) { free(encl->kernel_cmd); free(encl->wg.key); for (int i = 0; i < encl->wg.num_peers; i++) { free(encl->wg.peers[i].key); free(encl->wg.peers[i].allowed_ips); free(encl->wg.peers[i].endpoint); } free(encl->wg.peers); free(encl); } #endif
33.304348
103
0.632227
89ed951b6d749bfe4ec79f596b22b0e0eec742ab
414
h
C
AsciiEngine/StaticBackground.h
RandyGaul/AsciiEngine
ffd4766e0f81c5b2efa347484585d09a6e4d2b26
[ "MIT" ]
106
2015-02-09T17:31:32.000Z
2022-03-29T11:30:26.000Z
AsciiEngine/StaticBackground.h
RandyGaul/AsciiEngine
ffd4766e0f81c5b2efa347484585d09a6e4d2b26
[ "MIT" ]
null
null
null
AsciiEngine/StaticBackground.h
RandyGaul/AsciiEngine
ffd4766e0f81c5b2efa347484585d09a6e4d2b26
[ "MIT" ]
25
2015-03-02T09:32:01.000Z
2022-02-07T03:47:53.000Z
//////////////////////////////////////////////////// // Copyright (c) 2012 ICRL // See the file LICENSE.txt for copying permission. // // Original Author: Randy Gaul // Date: 7/20/2012 // Contact: r.gaul@digipen.edu //////////////////////////////////////////////////// #pragma once #include "EntityCreator.h" // Definition of the creator of this entity extern ENTITY_CREATOR STATICBG_CREATOR;
25.875
53
0.519324
9632439f2b89f9d5036c07ce863bce08467dfb67
2,467
h
C
frs/include/huaweicloud/frs/v2/model/AddFacesBase64Req.h
huaweicloud/huaweicloud-sdk-cpp-v3
d3b5e07b0ee8367d1c7f6dad17be0212166d959c
[ "Apache-2.0" ]
5
2021-03-03T08:23:43.000Z
2022-02-16T02:16:39.000Z
frs/include/huaweicloud/frs/v2/model/AddFacesBase64Req.h
ChenwxJay/huaweicloud-sdk-cpp-v3
f821ec6d269b50203e0c1638571ee1349c503c41
[ "Apache-2.0" ]
null
null
null
frs/include/huaweicloud/frs/v2/model/AddFacesBase64Req.h
ChenwxJay/huaweicloud-sdk-cpp-v3
f821ec6d269b50203e0c1638571ee1349c503c41
[ "Apache-2.0" ]
7
2021-02-26T13:53:35.000Z
2022-03-18T02:36:43.000Z
#ifndef HUAWEICLOUD_SDK_FRS_V2_MODEL_AddFacesBase64Req_H_ #define HUAWEICLOUD_SDK_FRS_V2_MODEL_AddFacesBase64Req_H_ #include <huaweicloud/frs/v2/FrsExport.h> #include <huaweicloud/core/utils/ModelBase.h> #include <huaweicloud/core/http/HttpResponse.h> #include <huaweicloud/core/utils/Object.h> #include <string> namespace HuaweiCloud { namespace Sdk { namespace Frs { namespace V2 { namespace Model { using namespace HuaweiCloud::Sdk::Core::Utils; using namespace HuaweiCloud::Sdk::Core::Http; /// <summary> /// /// </summary> class HUAWEICLOUD_FRS_V2_EXPORT AddFacesBase64Req : public ModelBase { public: AddFacesBase64Req(); virtual ~AddFacesBase64Req(); ///////////////////////////////////////////// /// ModelBase overrides void validate() override; web::json::value toJson() const override; bool fromJson(const web::json::value& json) override; ///////////////////////////////////////////// /// AddFacesBase64Req members /// <summary> /// 图像数据,Base64编码,要求: • Base64编码后大小不超过8MB,建议小于1MB。 • 图片为JPG/JPEG/BMP/PNG格式。 /// </summary> std::string getImageBase64() const; bool imageBase64IsSet() const; void unsetimageBase64(); void setImageBase64(const std::string& value); /// <summary> /// 根据用户自定义数据类型,填入相应的数值。 创建faceset时定义该字段,Json字符串不校验重复性,参考[自定义字段](https://support.huaweicloud.com/api-face/face_02_0012.html)。 /// </summary> Object getExternalFields() const; bool externalFieldsIsSet() const; void unsetexternalFields(); void setExternalFields(const Object& value); /// <summary> /// 用户指定的图片外部ID,与当前图像绑定。用户没提供,系统会生成一个。 该ID长度范围为1~36位,可以包含字母、数字、中划线或者下划线,不包含其他的特殊字符。 /// </summary> std::string getExternalImageId() const; bool externalImageIdIsSet() const; void unsetexternalImageId(); void setExternalImageId(const std::string& value); /// <summary> /// 是否将图片中的最大人脸添加至人脸库。可选值包括: • true: 传入的单张图片中如果包含多张人脸,则只将最大人脸添加到人脸库中。 • false: 默认为false。传入的单张图片中如果包含多张人脸,则将所有人脸添加至人脸库中。 /// </summary> bool isSingle() const; bool singleIsSet() const; void unsetsingle(); void setSingle(bool value); protected: std::string imageBase64_; bool imageBase64IsSet_; Object externalFields_; bool externalFieldsIsSet_; std::string externalImageId_; bool externalImageIdIsSet_; bool single_; bool singleIsSet_; }; } } } } } #endif // HUAWEICLOUD_SDK_FRS_V2_MODEL_AddFacesBase64Req_H_
24.67
129
0.688285
306d895c453747af9c5af2200154017a48ed6e6f
1,710
h
C
System/Library/PrivateFrameworks/PassKitCore.framework/PKPaymentDeviceMetadataFetchTask.h
lechium/iOS1351Headers
6bed3dada5ffc20366b27f7f2300a24a48a6284e
[ "MIT" ]
2
2021-11-02T09:23:27.000Z
2022-03-28T08:21:57.000Z
System/Library/PrivateFrameworks/PassKitCore.framework/PKPaymentDeviceMetadataFetchTask.h
lechium/iOS1351Headers
6bed3dada5ffc20366b27f7f2300a24a48a6284e
[ "MIT" ]
null
null
null
System/Library/PrivateFrameworks/PassKitCore.framework/PKPaymentDeviceMetadataFetchTask.h
lechium/iOS1351Headers
6bed3dada5ffc20366b27f7f2300a24a48a6284e
[ "MIT" ]
1
2022-03-28T08:21:59.000Z
2022-03-28T08:21:59.000Z
/* * This header is generated by classdump-dyld 1.5 * on Friday, April 30, 2021 at 11:36:41 AM Mountain Standard Time * Operating System: Version 13.5.1 (Build 17F80) * Image Source: /System/Library/PrivateFrameworks/PassKitCore.framework/PassKitCore * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos. Updated by Kevin Bradley. */ @class PKPaymentDeviceMetadata; @interface PKPaymentDeviceMetadataFetchTask : NSObject { PKPaymentDeviceMetadata* _deviceMetadata; unsigned long long _remaningFields; unsigned long long _requestedFields; /*^block*/id _completion; } @property (nonatomic,retain) PKPaymentDeviceMetadata * deviceMetadata; //@synthesize deviceMetadata=_deviceMetadata - In the implementation block @property (assign,nonatomic) unsigned long long remaningFields; //@synthesize remaningFields=_remaningFields - In the implementation block @property (assign,nonatomic) unsigned long long requestedFields; //@synthesize requestedFields=_requestedFields - In the implementation block @property (nonatomic,copy) id completion; //@synthesize completion=_completion - In the implementation block -(void)setCompletion:(id)arg1 ; -(id)completion; -(PKPaymentDeviceMetadata *)deviceMetadata; -(void)setDeviceMetadata:(PKPaymentDeviceMetadata *)arg1 ; -(unsigned long long)remaningFields; -(void)setRemaningFields:(unsigned long long)arg1 ; -(unsigned long long)requestedFields; -(void)setRequestedFields:(unsigned long long)arg1 ; @end
48.857143
160
0.695322
a92b85c61815e0fb11e54a1f7bcd6495e681134a
381
h
C
Supporting Files/RxMoyaGloss.h
Cartaxo/Moya-Gloss
5260a75764b87130488d3ba1a6196c1b9de8ed2e
[ "MIT" ]
42
2016-04-14T20:00:31.000Z
2020-07-01T07:01:13.000Z
Supporting Files/RxMoyaGloss.h
Cartaxo/Moya-Gloss
5260a75764b87130488d3ba1a6196c1b9de8ed2e
[ "MIT" ]
30
2016-04-05T18:38:50.000Z
2018-10-03T08:56:56.000Z
Supporting Files/RxMoyaGloss.h
Cartaxo/Moya-Gloss
5260a75764b87130488d3ba1a6196c1b9de8ed2e
[ "MIT" ]
29
2016-05-21T01:21:20.000Z
2020-05-15T23:29:57.000Z
#import <Foundation/Foundation.h> //! Project version number for RxMoyaGloss. FOUNDATION_EXPORT double RxMoyaGlossVersionNumber; //! Project version string for RxMoyaGloss. FOUNDATION_EXPORT const unsigned char RxMoyaGlossVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import <RxMoyaGloss/PublicHeader.h>
31.75
136
0.813648
a96efb89ac11ae3e1c7049ea4754aba4018ee5e0
12,883
c
C
src/tool/hpcrun/unwind/x86-family/x86-validate-retn-addr.c
Paul-Ferrell/hpctoolkit
d7062c3747e8747ff16a9f5764fa4cf57a21ee36
[ "BSD-3-Clause" ]
null
null
null
src/tool/hpcrun/unwind/x86-family/x86-validate-retn-addr.c
Paul-Ferrell/hpctoolkit
d7062c3747e8747ff16a9f5764fa4cf57a21ee36
[ "BSD-3-Clause" ]
null
null
null
src/tool/hpcrun/unwind/x86-family/x86-validate-retn-addr.c
Paul-Ferrell/hpctoolkit
d7062c3747e8747ff16a9f5764fa4cf57a21ee36
[ "BSD-3-Clause" ]
null
null
null
// -*-Mode: C++;-*- // technically C99 // * BeginRiceCopyright ***************************************************** // // $HeadURL$ // $Id$ // // -------------------------------------------------------------------------- // Part of HPCToolkit (hpctoolkit.org) // // Information about sources of support for research and development of // HPCToolkit is at 'hpctoolkit.org' and in 'README.Acknowledgments'. // -------------------------------------------------------------------------- // // Copyright ((c)) 2002-2022, Rice University // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // // * 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. // // * Neither the name of Rice University (RICE) nor the names of its // contributors may be used to endorse or promote products derived from // this software without specific prior written permission. // // This software is provided by RICE 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 RICE 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. // // ******************************************************* EndRiceCopyright * // // Validate a return address obtained from an hpcrun_unw_step: // Most useful after a troll operation, but may still be used for // QC on all unwinds // //*************************************************************************** // system include files //*************************************************************************** #include <stdbool.h> //*************************************************************************** // local include files //*************************************************************************** #include "x86-decoder.h" #include "x86-validate-retn-addr.h" #include "x86-unwind-analysis.h" #include "fnbounds_interface.h" #include "validate_return_addr.h" #include "uw_recipe_map.h" #include "x86-unwind-interval.h" #include <unwind/common/unw-datatypes.h> #include <messages/messages.h> #include <lib/isa-lean/x86/instruction-set.h> //**************************************************************************** // local types //**************************************************************************** typedef struct xed_decode_t { xed_decoded_inst_t xedd; xed_error_enum_t err; } xed_decode_t; //**************************************************************************** // local operations //**************************************************************************** // this function provides a convenient single breakpoint location for stopping // when an invalid unwind is found. static validation_status status_is_wrong() { return UNW_ADDR_WRONG; } static void xed_decode_i(void *ins, xed_decode_t *res) { xed_decoded_inst_t *xptr = &(res->xedd); xed_decoded_inst_zero_set_mode(xptr, &x86_decoder_settings.xed_settings); xed_decoded_inst_zero_keep_mode(xptr); res->err = xed_decode(xptr, (uint8_t *)ins, 15); } static bool confirm_call_fetch_addr(void *addr, size_t offset, void **the_call) { xed_decode_t xed; void *possible_call = addr - offset; *the_call = NULL; xed_decode_i(possible_call, &xed); if (xed.err != XED_ERROR_NONE) { return false; } xed_decoded_inst_t *xptr = &xed.xedd; if ( xed_decoded_inst_get_length(xptr) != offset ){ TMSG(VALIDATE_UNW,"instruction @ offset %d from %p does not have length corresponding to the offset", offset, addr); return false; } switch(xed_decoded_inst_get_iclass(xptr)) { case XED_ICLASS_CALL_FAR: case XED_ICLASS_CALL_NEAR: TMSG(VALIDATE_UNW,"call instruction confirmed @ %p", possible_call); *the_call = x86_get_branch_target(possible_call, xptr); return true; break; default: return false; } EMSG("MAJOR PROGRAMMING ERROR: impossible fall thru @confirm_call_fetch_addr"); return false; } static bool confirm_call(void *addr, void *routine) { TMSG(VALIDATE_UNW,"Checking for true call immediately preceding %p",addr); void *the_call; if ( ! confirm_call_fetch_addr(addr, 5, &the_call)) { TMSG(VALIDATE_UNW,"No true call instruction found, so true call REJECTED"); return false; } TMSG(VALIDATE_UNW,"comparing called routine %p to actual routine %p", the_call, routine); return (the_call == routine); } static bool confirm_indirect_call_specific(void* addr, size_t offset, void** call_ins) { void *callee; if ( ! confirm_call_fetch_addr(addr, offset, &callee)) { TMSG(VALIDATE_UNW,"No call instruction found @ %p, so indirect call at this location rejected", addr - offset); return false; } if (callee == NULL) { *call_ins = addr - offset; } return (callee == NULL); } static bool confirm_indirect_call(void* addr, void** call_ins) { TMSG(VALIDATE_UNW,"trying to confirm an indirect call preceeding %p", addr); for (size_t i=1;i <= 7;i++) { if (confirm_indirect_call_specific(addr, i, call_ins)){ return true; } } return false; } static validation_status contains_tail_call_to_f(void *callee, void *target_fn) { void *routine_start, *routine_end; if (! fnbounds_enclosing_addr(callee, &routine_start, &routine_end, NULL)) { TMSG(VALIDATE_UNW,"unwind addr %p does NOT have function bounds, so it is invalid",callee); return status_is_wrong(); // hard error: callee is nonsense } xed_decoded_inst_t xedd; xed_decoded_inst_t *xptr = &xedd; xed_error_enum_t xed_error; validation_status status = UNW_ADDR_WRONG; xed_decoded_inst_zero_set_mode(xptr, &x86_decoder_settings.xed_settings); void *ins = routine_start; while (ins < routine_end) { xed_decoded_inst_zero_keep_mode(xptr); xed_error = xed_decode(xptr, (uint8_t*) ins, 15); if (xed_error != XED_ERROR_NONE) { ins++; /* skip this byte */ continue; /* continue onward ... */ } xed_iclass_enum_t xiclass = xed_decoded_inst_get_iclass(xptr); switch(xiclass) { // branches case XED_ICLASS_JBE: case XED_ICLASS_JL: case XED_ICLASS_JLE: case XED_ICLASS_JNB: case XED_ICLASS_JNBE: case XED_ICLASS_JNL: case XED_ICLASS_JNLE: case XED_ICLASS_JNO: case XED_ICLASS_JNP: case XED_ICLASS_JNS: case XED_ICLASS_JNZ: case XED_ICLASS_JO: case XED_ICLASS_JP: case XED_ICLASS_JRCXZ: case XED_ICLASS_JS: case XED_ICLASS_JZ: // jumps case XED_ICLASS_JMP: case XED_ICLASS_JMP_FAR: { void *target = x86_get_branch_target(ins, xptr); if ((target >= routine_end) || (target < routine_start)) { // tail call if (target == target_fn) return UNW_ADDR_CONFIRMED; status = UNW_ADDR_PROBABLE_TAIL; } } break; default: break; } ins = ins + xed_decoded_inst_get_length(xptr); } return status; } static validation_status confirm_tail_call(void *addr, void *target_fn) { TMSG(VALIDATE_UNW,"trying to confirm that instruction before %p is call to a routine with tail calls", addr); void *callee; if ( ! confirm_call_fetch_addr(addr, 5, &callee)) { TMSG(VALIDATE_UNW,"No call instruction found @ %p, so tail call REJECTED", addr - 5); return UNW_ADDR_WRONG; // soft error: this case doesn't apply } TMSG(VALIDATE_UNW,"Checking routine %p for possible tail calls", callee); unwindr_info_t unwr_info; bool found = uw_recipe_map_lookup(callee, NATIVE_UNWINDER, &unwr_info); if (found && (unwr_info.treestat == READY) && UWI_RECIPE(unwr_info.btuwi)->has_tail_calls) return contains_tail_call_to_f(callee, target_fn); return status_is_wrong(); } static void * x86_plt_branch_target(void *ins, xed_decoded_inst_t *xptr) { const xed_inst_t *xi = xed_decoded_inst_inst(xptr); const xed_operand_t *op0 = xed_inst_operand(xi, 0); xed_operand_enum_t op0_name = xed_operand_name(op0); xed_operand_type_enum_t op0_type = xed_operand_type(op0); if (op0_name == XED_OPERAND_MEM0 && op0_type == XED_OPERAND_TYPE_IMM_CONST) { xed_operand_values_t *vals = xed_decoded_inst_operands(xptr); xed_reg_enum_t reg = xed_operand_values_get_base_reg(vals,0); if (x86_isReg_IP(reg)) { int ins_len = xed_decoded_inst_get_length(xptr); xed_int64_t disp = xed_operand_values_get_memory_displacement_int64(vals); xed_int64_t **memloc = ins + disp + ins_len; xed_int64_t *memval = *memloc; return memval; } } return NULL; } static validation_status confirm_plt_call(void *addr, void *callee) { TMSG(VALIDATE_UNW,"trying to confirm that instruction before %p is call to a routine through the PLT", addr); void *plt_ins; if ( ! confirm_call_fetch_addr(addr, 5, &plt_ins)) { TMSG(VALIDATE_UNW,"No call instruction found @ %p, so PLT call REJECTED", addr - 5); return UNW_ADDR_WRONG; } TMSG(VALIDATE_UNW,"Checking at %p for PLT call", plt_ins); xed_decode_t xed; xed_decode_i(plt_ins, &xed); xed_decoded_inst_t *xptr = &xed.xedd; void *plt_callee = x86_plt_branch_target(plt_ins, xptr); if (plt_callee == callee) return UNW_ADDR_CONFIRMED; #if 0 unwind_interval *plt_callee_ui; bool found = uw_recipe_map_lookup(plt_callee, NATIVE_UNWINDER, NULL, &plt_callee_ui); if (found && UWI_RECIPE(plt_callee_ui)->has_tail_calls) return contains_tail_call_to_f(plt_callee, callee); #else unwindr_info_t unwr_info; bool found = uw_recipe_map_lookup(plt_callee, NATIVE_UNWINDER, &unwr_info); if (found && (unwr_info.treestat == READY) && UWI_RECIPE(unwr_info.btuwi)->has_tail_calls) return contains_tail_call_to_f(plt_callee, callee); #endif return UNW_ADDR_WRONG; } static int return_addr_valid(void *addr, unwindr_info_t *unwr_info) { return (uw_recipe_map_lookup(addr, NATIVE_UNWINDER, unwr_info) && unwr_info->treestat != NEVER); } //**************************************************************************** // interface operations //**************************************************************************** validation_status deep_validate_return_addr(void* addr, void* generic) { hpcrun_unw_cursor_t* cursor = (hpcrun_unw_cursor_t*) generic; TMSG(VALIDATE_UNW,"validating unwind step from %p ==> %p",cursor->pc_unnorm, addr); unwindr_info_t unwr_info; if (addr == 0 || !return_addr_valid(addr, &unwr_info) ) { TMSG(VALIDATE_UNW,"unwind addr %p does NOT have function bounds, so it is invalid", addr); return status_is_wrong(); } if (!return_addr_valid(cursor->pc_unnorm, &unwr_info)) return status_is_wrong(); void* callee = (void*)unwr_info.interval.start; TMSG(VALIDATE_UNW, "beginning of my routine = %p", callee); if (confirm_call(addr, callee)) { TMSG(VALIDATE_UNW, "Instruction preceeding %p is a call to this routine. Unwind confirmed", addr); return UNW_ADDR_CONFIRMED; } validation_status result = confirm_plt_call(addr, callee); if (result != UNW_ADDR_WRONG) { TMSG(VALIDATE_UNW, "Instruction preceeding %p is a call through the PLT to this routine. Unwind confirmed", addr); return result; } result = confirm_tail_call(addr, callee); if (result != UNW_ADDR_WRONG) { TMSG(VALIDATE_UNW,"Instruction preceeding %p is a call to a routine that has tail calls. Unwind is LIKELY ok", addr); return result; } void* call_ins; if (confirm_indirect_call(addr, &call_ins)){ TMSG(VALIDATE_UNW,"Instruction preceeding %p is an indirect call. Unwind is LIKELY ok", addr); return UNW_ADDR_PROBABLE_INDIRECT; } TMSG(VALIDATE_UNW,"Unwind addr %p is NOT confirmed", addr); return status_is_wrong(); } validation_status dbg_val(void *addr, void *pc) { hpcrun_unw_cursor_t cursor; cursor.pc_unnorm = pc; return deep_validate_return_addr(addr, &cursor); } validation_status validate_return_addr(void *addr, void *generic) { unwindr_info_t unwr_info; return return_addr_valid(addr, &unwr_info) ? UNW_ADDR_PROBABLE : UNW_ADDR_WRONG; }
30.67381
121
0.664519
aa90c8c616d635b8da205409bc76ada4241ee88f
9,282
h
C
include/freerdp/channels/rdpgfx.h
ApolloSoftwareSolutions/FreeRDP
267dea928c1ef65abdf937049c6cdca920ca2b0b
[ "Apache-2.0" ]
null
null
null
include/freerdp/channels/rdpgfx.h
ApolloSoftwareSolutions/FreeRDP
267dea928c1ef65abdf937049c6cdca920ca2b0b
[ "Apache-2.0" ]
null
null
null
include/freerdp/channels/rdpgfx.h
ApolloSoftwareSolutions/FreeRDP
267dea928c1ef65abdf937049c6cdca920ca2b0b
[ "Apache-2.0" ]
1
2021-10-06T08:55:59.000Z
2021-10-06T08:55:59.000Z
/** * FreeRDP: A Remote Desktop Protocol Implementation * Graphics Pipeline Extension * * Copyright 2013 Marc-Andre Moreau <marcandre.moreau@gmail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef FREERDP_CHANNEL_RDPGFX_H #define FREERDP_CHANNEL_RDPGFX_H #include <freerdp/api.h> #include <freerdp/dvc.h> #include <freerdp/types.h> #define RDPGFX_DVC_CHANNEL_NAME "Microsoft::Windows::RDS::Graphics" /** * Common Data Types */ struct _RDPGFX_POINT16 { UINT16 x; UINT16 y; }; typedef struct _RDPGFX_POINT16 RDPGFX_POINT16; struct _RDPGFX_COLOR32 { BYTE B; BYTE G; BYTE R; BYTE XA; }; typedef struct _RDPGFX_COLOR32 RDPGFX_COLOR32; #define GFX_PIXEL_FORMAT_XRGB_8888 0x20 #define GFX_PIXEL_FORMAT_ARGB_8888 0x21 typedef BYTE RDPGFX_PIXELFORMAT; #define RDPGFX_CMDID_UNUSED_0000 0x0000 #define RDPGFX_CMDID_WIRETOSURFACE_1 0x0001 #define RDPGFX_CMDID_WIRETOSURFACE_2 0x0002 #define RDPGFX_CMDID_DELETEENCODINGCONTEXT 0x0003 #define RDPGFX_CMDID_SOLIDFILL 0x0004 #define RDPGFX_CMDID_SURFACETOSURFACE 0x0005 #define RDPGFX_CMDID_SURFACETOCACHE 0x0006 #define RDPGFX_CMDID_CACHETOSURFACE 0x0007 #define RDPGFX_CMDID_EVICTCACHEENTRY 0x0008 #define RDPGFX_CMDID_CREATESURFACE 0x0009 #define RDPGFX_CMDID_DELETESURFACE 0x000A #define RDPGFX_CMDID_STARTFRAME 0x000B #define RDPGFX_CMDID_ENDFRAME 0x000C #define RDPGFX_CMDID_FRAMEACKNOWLEDGE 0x000D #define RDPGFX_CMDID_RESETGRAPHICS 0x000E #define RDPGFX_CMDID_MAPSURFACETOOUTPUT 0x000F #define RDPGFX_CMDID_CACHEIMPORTOFFER 0x0010 #define RDPGFX_CMDID_CACHEIMPORTREPLY 0x0011 #define RDPGFX_CMDID_CAPSADVERTISE 0x0012 #define RDPGFX_CMDID_CAPSCONFIRM 0x0013 #define RDPGFX_CMDID_UNUSED_0014 0x0014 #define RDPGFX_CMDID_MAPSURFACETOWINDOW 0x0015 #define RDPGFX_CMDID_QOEFRAMEACKNOWLEDGE 0x0016 #define RDPGFX_HEADER_SIZE 8 struct _RDPGFX_HEADER { UINT16 cmdId; UINT16 flags; UINT32 pduLength; }; typedef struct _RDPGFX_HEADER RDPGFX_HEADER; /** * Capability Sets */ #define RDPGFX_CAPVERSION_8 0x00080004 #define RDPGFX_CAPVERSION_81 0x00080105 #define RDPGFX_CAPVERSION_10 0x000A0002 #define RDPGFX_CAPSET_SIZE 12 struct _RDPGFX_CAPSET { UINT32 version; UINT32 flags; }; typedef struct _RDPGFX_CAPSET RDPGFX_CAPSET; #define RDPGFX_CAPS_FLAG_THINCLIENT 0x00000001 /* 8.0+ */ #define RDPGFX_CAPS_FLAG_SMALL_CACHE 0x00000002 /* 8.0+ */ #define RDPGFX_CAPS_FLAG_AVC420_ENABLED 0x00000010 /* 8.1+ */ #define RDPGFX_CAPS_FLAG_AVC_DISABLED 0x00000020 /* 10.0+ */ struct _RDPGFX_CAPSET_VERSION8 { UINT32 version; UINT32 capsDataLength; UINT32 flags; }; typedef struct _RDPGFX_CAPSET_VERSION8 RDPGFX_CAPSET_VERSION8; struct _RDPGFX_CAPSET_VERSION81 { UINT32 version; UINT32 capsDataLength; UINT32 flags; }; typedef struct _RDPGFX_CAPSET_VERSION81 RDPGFX_CAPSET_VERSION81; struct _RDPGFX_CAPSET_VERSION10 { UINT32 version; UINT32 capsDataLength; UINT32 flags; }; typedef struct _RDPGFX_CAPSET_VERSION10 RDPGFX_CAPSET_VERSION10; /** * Graphics Messages */ #define RDPGFX_CODECID_UNCOMPRESSED 0x0000 #define RDPGFX_CODECID_CAVIDEO 0x0003 #define RDPGFX_CODECID_CLEARCODEC 0x0008 #define RDPGFX_CODECID_PLANAR 0x000A #define RDPGFX_CODECID_AVC420 0x000B #define RDPGFX_CODECID_ALPHA 0x000C #define RDPGFX_CODECID_AVC444 0x000E #define RDPGFX_WIRE_TO_SURFACE_PDU_1_SIZE 17 struct _RDPGFX_WIRE_TO_SURFACE_PDU_1 { UINT16 surfaceId; UINT16 codecId; RDPGFX_PIXELFORMAT pixelFormat; RECTANGLE_16 destRect; UINT32 bitmapDataLength; BYTE* bitmapData; }; typedef struct _RDPGFX_WIRE_TO_SURFACE_PDU_1 RDPGFX_WIRE_TO_SURFACE_PDU_1; #define RDPGFX_CODECID_CAPROGRESSIVE 0x0009 #define RDPGFX_CODECID_CAPROGRESSIVE_V2 0x000D #define RDPGFX_WIRE_TO_SURFACE_PDU_2_SIZE 13 struct _RDPGFX_WIRE_TO_SURFACE_PDU_2 { UINT16 surfaceId; UINT16 codecId; UINT32 codecContextId; RDPGFX_PIXELFORMAT pixelFormat; UINT32 bitmapDataLength; BYTE* bitmapData; }; typedef struct _RDPGFX_WIRE_TO_SURFACE_PDU_2 RDPGFX_WIRE_TO_SURFACE_PDU_2; struct _RDPGFX_SURFACE_COMMAND { UINT32 surfaceId; UINT32 codecId; UINT32 contextId; UINT32 format; UINT32 left; UINT32 top; UINT32 right; UINT32 bottom; UINT32 width; UINT32 height; UINT32 length; BYTE* data; void* extra; }; typedef struct _RDPGFX_SURFACE_COMMAND RDPGFX_SURFACE_COMMAND; struct _RDPGFX_DELETE_ENCODING_CONTEXT_PDU { UINT16 surfaceId; UINT32 codecContextId; }; typedef struct _RDPGFX_DELETE_ENCODING_CONTEXT_PDU RDPGFX_DELETE_ENCODING_CONTEXT_PDU; struct _RDPGFX_SOLID_FILL_PDU { UINT16 surfaceId; RDPGFX_COLOR32 fillPixel; UINT16 fillRectCount; RECTANGLE_16* fillRects; }; typedef struct _RDPGFX_SOLID_FILL_PDU RDPGFX_SOLID_FILL_PDU; struct _RDPGFX_SURFACE_TO_SURFACE_PDU { UINT16 surfaceIdSrc; UINT16 surfaceIdDest; RECTANGLE_16 rectSrc; UINT16 destPtsCount; RDPGFX_POINT16* destPts; }; typedef struct _RDPGFX_SURFACE_TO_SURFACE_PDU RDPGFX_SURFACE_TO_SURFACE_PDU; struct _RDPGFX_SURFACE_TO_CACHE_PDU { UINT16 surfaceId; UINT64 cacheKey; UINT16 cacheSlot; RECTANGLE_16 rectSrc; }; typedef struct _RDPGFX_SURFACE_TO_CACHE_PDU RDPGFX_SURFACE_TO_CACHE_PDU; struct _RDPGFX_CACHE_TO_SURFACE_PDU { UINT16 cacheSlot; UINT16 surfaceId; UINT16 destPtsCount; RDPGFX_POINT16* destPts; }; typedef struct _RDPGFX_CACHE_TO_SURFACE_PDU RDPGFX_CACHE_TO_SURFACE_PDU; struct _RDPGFX_EVICT_CACHE_ENTRY_PDU { UINT16 cacheSlot; }; typedef struct _RDPGFX_EVICT_CACHE_ENTRY_PDU RDPGFX_EVICT_CACHE_ENTRY_PDU; struct _RDPGFX_CREATE_SURFACE_PDU { UINT16 surfaceId; UINT16 width; UINT16 height; RDPGFX_PIXELFORMAT pixelFormat; }; typedef struct _RDPGFX_CREATE_SURFACE_PDU RDPGFX_CREATE_SURFACE_PDU; struct _RDPGFX_DELETE_SURFACE_PDU { UINT16 surfaceId; }; typedef struct _RDPGFX_DELETE_SURFACE_PDU RDPGFX_DELETE_SURFACE_PDU; #define RDPGFX_START_FRAME_PDU_SIZE 8 struct _RDPGFX_START_FRAME_PDU { UINT32 timestamp; UINT32 frameId; }; typedef struct _RDPGFX_START_FRAME_PDU RDPGFX_START_FRAME_PDU; #define RDPGFX_END_FRAME_PDU_SIZE 4 struct _RDPGFX_END_FRAME_PDU { UINT32 frameId; }; typedef struct _RDPGFX_END_FRAME_PDU RDPGFX_END_FRAME_PDU; #define QUEUE_DEPTH_UNAVAILABLE 0x00000000 #define SUSPEND_FRAME_ACKNOWLEDGEMENT 0xFFFFFFFF struct _RDPGFX_FRAME_ACKNOWLEDGE_PDU { UINT32 queueDepth; UINT32 frameId; UINT32 totalFramesDecoded; }; typedef struct _RDPGFX_FRAME_ACKNOWLEDGE_PDU RDPGFX_FRAME_ACKNOWLEDGE_PDU; struct _RDPGFX_RESET_GRAPHICS_PDU { UINT32 width; UINT32 height; UINT32 monitorCount; MONITOR_DEF* monitorDefArray; }; typedef struct _RDPGFX_RESET_GRAPHICS_PDU RDPGFX_RESET_GRAPHICS_PDU; struct _RDPGFX_MAP_SURFACE_TO_OUTPUT_PDU { UINT16 surfaceId; UINT16 reserved; UINT32 outputOriginX; UINT32 outputOriginY; }; typedef struct _RDPGFX_MAP_SURFACE_TO_OUTPUT_PDU RDPGFX_MAP_SURFACE_TO_OUTPUT_PDU; struct _RDPGFX_CACHE_ENTRY_METADATA { UINT64 cacheKey; UINT32 bitmapLength; }; typedef struct _RDPGFX_CACHE_ENTRY_METADATA RDPGFX_CACHE_ENTRY_METADATA; struct _RDPGFX_CACHE_IMPORT_OFFER_PDU { UINT16 cacheEntriesCount; RDPGFX_CACHE_ENTRY_METADATA* cacheEntries; }; typedef struct _RDPGFX_CACHE_IMPORT_OFFER_PDU RDPGFX_CACHE_IMPORT_OFFER_PDU; struct _RDPGFX_CACHE_IMPORT_REPLY_PDU { UINT16 importedEntriesCount; UINT16* cacheSlots; }; typedef struct _RDPGFX_CACHE_IMPORT_REPLY_PDU RDPGFX_CACHE_IMPORT_REPLY_PDU; struct _RDPGFX_CAPS_ADVERTISE_PDU { UINT16 capsSetCount; RDPGFX_CAPSET* capsSets; }; typedef struct _RDPGFX_CAPS_ADVERTISE_PDU RDPGFX_CAPS_ADVERTISE_PDU; struct _RDPGFX_CAPS_CONFIRM_PDU { RDPGFX_CAPSET* capsSet; }; typedef struct _RDPGFX_CAPS_CONFIRM_PDU RDPGFX_CAPS_CONFIRM_PDU; struct _RDPGFX_MAP_SURFACE_TO_WINDOW_PDU { UINT16 surfaceId; UINT64 windowId; UINT32 mappedWidth; UINT32 mappedHeight; }; typedef struct _RDPGFX_MAP_SURFACE_TO_WINDOW_PDU RDPGFX_MAP_SURFACE_TO_WINDOW_PDU; /* H264 */ struct _RDPGFX_H264_QUANT_QUALITY { BYTE qpVal; BYTE qualityVal; BYTE qp; BYTE r; BYTE p; }; typedef struct _RDPGFX_H264_QUANT_QUALITY RDPGFX_H264_QUANT_QUALITY; struct _RDPGFX_H264_METABLOCK { UINT32 numRegionRects; RECTANGLE_16* regionRects; RDPGFX_H264_QUANT_QUALITY* quantQualityVals; }; typedef struct _RDPGFX_H264_METABLOCK RDPGFX_H264_METABLOCK; struct _RDPGFX_AVC420_BITMAP_STREAM { RDPGFX_H264_METABLOCK meta; UINT32 length; BYTE* data; }; typedef struct _RDPGFX_AVC420_BITMAP_STREAM RDPGFX_AVC420_BITMAP_STREAM; struct _RDPGFX_AVC444_BITMAP_STREAM { UINT32 cbAvc420EncodedBitstream1; BYTE LC; RDPGFX_AVC420_BITMAP_STREAM bitstream[2]; }; typedef struct _RDPGFX_AVC444_BITMAP_STREAM RDPGFX_AVC444_BITMAP_STREAM; struct _RDPGFX_QOE_FRAME_ACKNOWLEDGE_PDU { UINT32 frameId; UINT32 timestamp; UINT16 timeDiffSE; UINT16 timeDiffEDR; }; typedef struct _RDPGFX_QOE_FRAME_ACKNOWLEDGE_PDU RDPGFX_QOE_FRAME_ACKNOWLEDGE_PDU; #endif /* FREERDP_CHANNEL_RDPGFX_H */
23.263158
76
0.835165
4e00c2d9a92a4588f99ff250339289ec3a273e37
1,404
h
C
fboss/cli/fboss2/CmdArgsLists.h
nathanawmk/fboss
9f36dbaaae47202f9131598560c65715334a9a83
[ "BSD-3-Clause" ]
1
2022-02-10T10:48:41.000Z
2022-02-10T10:48:41.000Z
fboss/cli/fboss2/CmdArgsLists.h
nathanawmk/fboss
9f36dbaaae47202f9131598560c65715334a9a83
[ "BSD-3-Clause" ]
null
null
null
fboss/cli/fboss2/CmdArgsLists.h
nathanawmk/fboss
9f36dbaaae47202f9131598560c65715334a9a83
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright (c) 2004-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #pragma once #include <memory> #include <variant> #include <vector> #include "fboss/cli/fboss2/utils/CmdUtils.h" namespace facebook::fboss { class CmdArgsLists { public: static std::shared_ptr<CmdArgsLists> getInstance(); const std::vector<std::string>& at(int i) const { return data_[i]; } std::vector<std::string>& refAt(int i) { if (i >= MAX_DEPTH) { throw std::runtime_error( "There is a nested command deeper than max depth, need to increase the depth"); } return data_[i]; } template <typename UnfilteredTypes, typename Types> Types getTypedArgs() { const auto& unfiltered = utils::arrayToTuple<std::tuple_size_v<UnfilteredTypes>>(data_); return utils::filterTupleMonostates<UnfilteredTypes>(unfiltered); } private: // since we do a lot of work of figuring out argument types at compile time, // for now we need to know the the theoretical max depth of nested subcommands static constexpr auto MAX_DEPTH = 5; std::array<std::vector<std::string>, MAX_DEPTH> data_; }; } // namespace facebook::fboss
27
89
0.700855
4e53e2a7e21ead866a8be37683f675daf73e8294
465
h
C
src/degnome.h
Darokrithia/PolygenSim
4ef91b1d3cf00d9caca6c4fa2fb5c401a0f8d191
[ "MIT" ]
3
2018-08-14T20:45:40.000Z
2019-02-01T18:53:36.000Z
src/degnome.h
Darokrithia/PopGenSim
4ef91b1d3cf00d9caca6c4fa2fb5c401a0f8d191
[ "MIT" ]
27
2019-09-17T20:12:17.000Z
2020-11-29T23:56:03.000Z
src/degnome.h
Darokrithia/PolygenSim
4ef91b1d3cf00d9caca6c4fa2fb5c401a0f8d191
[ "MIT" ]
1
2021-04-27T23:28:50.000Z
2021-04-27T23:28:50.000Z
#ifndef DEGNOME #define DEGNOME #include <stdlib.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> //Degnomedia Rogerus typedef struct Degnome Degnome; struct Degnome { double* dna_array; double hat_size; }; Degnome* Degnome_new(void); void Degnome_mate(Degnome* location, Degnome* p1, Degnome* p2, gsl_rng* rng, int mutation_rate, int mutation_effect, int crossover_rate); void Degnome_free(Degnome* q); int chrom_size; #endif
20.217391
77
0.731183
ebe22e015566a7a16e1ee4b93595e1c504827ee7
63,885
c
C
src/if-options.c
DanielG/dhcpcd
34399db6978cd4a263c729d23f13e549b9c2d862
[ "BSD-2-Clause" ]
null
null
null
src/if-options.c
DanielG/dhcpcd
34399db6978cd4a263c729d23f13e549b9c2d862
[ "BSD-2-Clause" ]
null
null
null
src/if-options.c
DanielG/dhcpcd
34399db6978cd4a263c729d23f13e549b9c2d862
[ "BSD-2-Clause" ]
null
null
null
/* * dhcpcd - DHCP client daemon * Copyright (c) 2006-2019 Roy Marples <roy@marples.name> * All rights reserved * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ #include <sys/param.h> #include <sys/stat.h> #include <sys/types.h> #include <arpa/inet.h> #include <ctype.h> #include <errno.h> #include <getopt.h> #include <grp.h> #include <inttypes.h> #include <limits.h> #include <paths.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <time.h> #include "config.h" #include "common.h" #include "dhcp.h" #include "dhcp6.h" #include "dhcpcd-embedded.h" #include "if.h" #include "if-options.h" #include "ipv4.h" #include "logerr.h" #include "sa.h" /* These options only make sense in the config file, so don't use any valid short options for them */ #define O_BASE MAX('z', 'Z') + 1 #define O_ARPING O_BASE + 1 #define O_FALLBACK O_BASE + 2 #define O_DESTINATION O_BASE + 3 #define O_IPV6RS O_BASE + 4 #define O_NOIPV6RS O_BASE + 5 #define O_IPV6RA_FORK O_BASE + 6 // unused O_BASE + 7 // unused O_BASE + 8 #define O_NOALIAS O_BASE + 9 #define O_IA_NA O_BASE + 10 #define O_IA_TA O_BASE + 11 #define O_IA_PD O_BASE + 12 #define O_HOSTNAME_SHORT O_BASE + 13 #define O_DEV O_BASE + 14 #define O_NODEV O_BASE + 15 #define O_NOIPV4 O_BASE + 16 #define O_NOIPV6 O_BASE + 17 #define O_IAID O_BASE + 18 #define O_DEFINE O_BASE + 19 #define O_DEFINE6 O_BASE + 20 #define O_EMBED O_BASE + 21 #define O_ENCAP O_BASE + 22 #define O_VENDOPT O_BASE + 23 #define O_VENDCLASS O_BASE + 24 #define O_AUTHPROTOCOL O_BASE + 25 #define O_AUTHTOKEN O_BASE + 26 #define O_AUTHNOTREQUIRED O_BASE + 27 #define O_NODHCP O_BASE + 28 #define O_NODHCP6 O_BASE + 29 #define O_DHCP O_BASE + 30 #define O_DHCP6 O_BASE + 31 #define O_IPV4 O_BASE + 32 #define O_IPV6 O_BASE + 33 #define O_CONTROLGRP O_BASE + 34 #define O_SLAAC O_BASE + 35 #define O_GATEWAY O_BASE + 36 #define O_NOUP O_BASE + 37 #define O_IPV6RA_AUTOCONF O_BASE + 38 #define O_IPV6RA_NOAUTOCONF O_BASE + 39 #define O_REJECT O_BASE + 40 #define O_BOOTP O_BASE + 42 #define O_DEFINEND O_BASE + 43 #define O_NODELAY O_BASE + 44 #define O_INFORM6 O_BASE + 45 #define O_LASTLEASE_EXTEND O_BASE + 46 #define O_INACTIVE O_BASE + 47 #define O_MUDURL O_BASE + 48 const struct option cf_options[] = { {"background", no_argument, NULL, 'b'}, {"script", required_argument, NULL, 'c'}, {"debug", no_argument, NULL, 'd'}, {"env", required_argument, NULL, 'e'}, {"config", required_argument, NULL, 'f'}, {"reconfigure", no_argument, NULL, 'g'}, {"hostname", optional_argument, NULL, 'h'}, {"vendorclassid", optional_argument, NULL, 'i'}, {"logfile", required_argument, NULL, 'j'}, {"release", no_argument, NULL, 'k'}, {"leasetime", required_argument, NULL, 'l'}, {"metric", required_argument, NULL, 'm'}, {"rebind", no_argument, NULL, 'n'}, {"option", required_argument, NULL, 'o'}, {"persistent", no_argument, NULL, 'p'}, {"quiet", no_argument, NULL, 'q'}, {"request", optional_argument, NULL, 'r'}, {"inform", optional_argument, NULL, 's'}, {"inform6", optional_argument, NULL, O_INFORM6}, {"timeout", required_argument, NULL, 't'}, {"userclass", required_argument, NULL, 'u'}, {"vendor", required_argument, NULL, 'v'}, {"waitip", optional_argument, NULL, 'w'}, {"exit", no_argument, NULL, 'x'}, {"allowinterfaces", required_argument, NULL, 'z'}, {"reboot", required_argument, NULL, 'y'}, {"noarp", no_argument, NULL, 'A'}, {"nobackground", no_argument, NULL, 'B'}, {"nohook", required_argument, NULL, 'C'}, {"duid", no_argument, NULL, 'D'}, {"lastlease", no_argument, NULL, 'E'}, {"fqdn", optional_argument, NULL, 'F'}, {"nogateway", no_argument, NULL, 'G'}, {"xidhwaddr", no_argument, NULL, 'H'}, {"clientid", optional_argument, NULL, 'I'}, {"broadcast", no_argument, NULL, 'J'}, {"nolink", no_argument, NULL, 'K'}, {"noipv4ll", no_argument, NULL, 'L'}, {"master", no_argument, NULL, 'M'}, {"renew", no_argument, NULL, 'N'}, {"nooption", required_argument, NULL, 'O'}, {"printpidfile", no_argument, NULL, 'P'}, {"require", required_argument, NULL, 'Q'}, {"static", required_argument, NULL, 'S'}, {"test", no_argument, NULL, 'T'}, {"dumplease", no_argument, NULL, 'U'}, {"variables", no_argument, NULL, 'V'}, {"whitelist", required_argument, NULL, 'W'}, {"blacklist", required_argument, NULL, 'X'}, {"denyinterfaces", required_argument, NULL, 'Z'}, {"oneshot", no_argument, NULL, '1'}, {"ipv4only", no_argument, NULL, '4'}, {"ipv6only", no_argument, NULL, '6'}, {"arping", required_argument, NULL, O_ARPING}, {"destination", required_argument, NULL, O_DESTINATION}, {"fallback", required_argument, NULL, O_FALLBACK}, {"ipv6rs", no_argument, NULL, O_IPV6RS}, {"noipv6rs", no_argument, NULL, O_NOIPV6RS}, {"ipv6ra_autoconf", no_argument, NULL, O_IPV6RA_AUTOCONF}, {"ipv6ra_noautoconf", no_argument, NULL, O_IPV6RA_NOAUTOCONF}, {"ipv6ra_fork", no_argument, NULL, O_IPV6RA_FORK}, {"ipv4", no_argument, NULL, O_IPV4}, {"noipv4", no_argument, NULL, O_NOIPV4}, {"ipv6", no_argument, NULL, O_IPV6}, {"noipv6", no_argument, NULL, O_NOIPV6}, {"noalias", no_argument, NULL, O_NOALIAS}, {"iaid", required_argument, NULL, O_IAID}, {"ia_na", no_argument, NULL, O_IA_NA}, {"ia_ta", no_argument, NULL, O_IA_TA}, {"ia_pd", no_argument, NULL, O_IA_PD}, {"hostname_short", no_argument, NULL, O_HOSTNAME_SHORT}, {"dev", required_argument, NULL, O_DEV}, {"nodev", no_argument, NULL, O_NODEV}, {"define", required_argument, NULL, O_DEFINE}, {"definend", required_argument, NULL, O_DEFINEND}, {"define6", required_argument, NULL, O_DEFINE6}, {"embed", required_argument, NULL, O_EMBED}, {"encap", required_argument, NULL, O_ENCAP}, {"vendopt", required_argument, NULL, O_VENDOPT}, {"vendclass", required_argument, NULL, O_VENDCLASS}, {"authprotocol", required_argument, NULL, O_AUTHPROTOCOL}, {"authtoken", required_argument, NULL, O_AUTHTOKEN}, {"noauthrequired", no_argument, NULL, O_AUTHNOTREQUIRED}, {"dhcp", no_argument, NULL, O_DHCP}, {"nodhcp", no_argument, NULL, O_NODHCP}, {"dhcp6", no_argument, NULL, O_DHCP6}, {"nodhcp6", no_argument, NULL, O_NODHCP6}, {"controlgroup", required_argument, NULL, O_CONTROLGRP}, {"slaac", required_argument, NULL, O_SLAAC}, {"gateway", no_argument, NULL, O_GATEWAY}, {"reject", required_argument, NULL, O_REJECT}, {"bootp", no_argument, NULL, O_BOOTP}, {"nodelay", no_argument, NULL, O_NODELAY}, {"noup", no_argument, NULL, O_NOUP}, {"lastleaseextend", no_argument, NULL, O_LASTLEASE_EXTEND}, {"inactive", no_argument, NULL, O_INACTIVE}, {"mudurl", required_argument, NULL, O_MUDURL}, {NULL, 0, NULL, '\0'} }; static const char *default_script = SCRIPT; static char * add_environ(char ***array, const char *value, int uniq) { char **newlist, **list = *array; size_t i = 0, l, lv; char *match = NULL, *p, *n; match = strdup(value); if (match == NULL) { logerr(__func__); return NULL; } p = strchr(match, '='); if (p == NULL) { logerrx("%s: no assignment: %s", __func__, value); free(match); return NULL; } *p++ = '\0'; l = strlen(match); while (list && list[i]) { if (match && strncmp(list[i], match, l) == 0) { if (uniq) { n = strdup(value); if (n == NULL) { logerr(__func__); free(match); return NULL; } free(list[i]); list[i] = n; } else { /* Append a space and the value to it */ l = strlen(list[i]); lv = strlen(p); n = realloc(list[i], l + lv + 2); if (n == NULL) { logerr(__func__); free(match); return NULL; } list[i] = n; list[i][l] = ' '; memcpy(list[i] + l + 1, p, lv); list[i][l + lv + 1] = '\0'; } free(match); return list[i]; } i++; } free(match); n = strdup(value); if (n == NULL) { logerr(__func__); return NULL; } newlist = reallocarray(list, i + 2, sizeof(char *)); if (newlist == NULL) { logerr(__func__); free(n); return NULL; } newlist[i] = n; newlist[i + 1] = NULL; *array = newlist; return newlist[i]; } #define PARSE_STRING 0 #define PARSE_STRING_NULL 1 #define PARSE_HWADDR 2 #define parse_string(a, b, c) parse_str((a), (b), (c), PARSE_STRING) #define parse_hwaddr(a, b, c) parse_str((a), (b), (c), PARSE_HWADDR) static ssize_t parse_str(char *sbuf, size_t slen, const char *str, int flags) { size_t l; const char *p, *end; int i; char c[4], cmd; end = str + strlen(str); /* If surrounded by quotes then it's a string */ if (*str == '"') { p = end - 1; if (*p == '"') { str++; end = p; } } else { l = (size_t)hwaddr_aton(NULL, str); if ((ssize_t) l != -1 && l > 1) { if (l > slen) { errno = ENOBUFS; return -1; } hwaddr_aton((uint8_t *)sbuf, str); return (ssize_t)l; } } /* Process escapes */ l = 0; /* If processing a string on the clientid, first byte should be * 0 to indicate a non hardware type */ if (flags == PARSE_HWADDR && *str) { if (sbuf) *sbuf++ = 0; l++; } c[3] = '\0'; while (str < end) { if (++l > slen && sbuf) { errno = ENOBUFS; return -1; } if (*str == '\\') { str++; switch((cmd = *str++)) { case '\0': str--; break; case 'b': if (sbuf) *sbuf++ = '\b'; break; case 'n': if (sbuf) *sbuf++ = '\n'; break; case 'r': if (sbuf) *sbuf++ = '\r'; break; case 't': if (sbuf) *sbuf++ = '\t'; break; case 'x': /* Grab a hex code */ c[1] = '\0'; for (i = 0; i < 2; i++) { if (isxdigit((unsigned char)*str) == 0) break; c[i] = *str++; } if (c[1] != '\0' && sbuf) { c[2] = '\0'; *sbuf++ = (char)strtol(c, NULL, 16); } else l--; break; case '0': /* Grab an octal code */ c[2] = '\0'; for (i = 0; i < 3; i++) { if (*str < '0' || *str > '7') break; c[i] = *str++; } if (c[2] != '\0' && sbuf) { i = (int)strtol(c, NULL, 8); if (i > 255) i = 255; *sbuf ++= (char)i; } else l--; break; default: if (sbuf) *sbuf++ = cmd; break; } } else { if (sbuf) *sbuf++ = *str; str++; } } if (flags == PARSE_STRING_NULL && sbuf) *sbuf = '\0'; return (ssize_t)l; } static int parse_iaid1(uint8_t *iaid, const char *arg, size_t len, int n) { int e; uint32_t narg; ssize_t s; narg = (uint32_t)strtou(arg, NULL, 0, 0, UINT32_MAX, &e); if (e == 0) { if (n) narg = htonl(narg); memcpy(iaid, &narg, sizeof(narg)); return 0; } if ((s = parse_string((char *)iaid, len, arg)) < 1) return -1; if (s < 4) iaid[3] = '\0'; if (s < 3) iaid[2] = '\0'; if (s < 2) iaid[1] = '\0'; return 0; } static int parse_iaid(uint8_t *iaid, const char *arg, size_t len) { return parse_iaid1(iaid, arg, len, 1); } #ifdef AUTH static int parse_uint32(uint32_t *i, const char *arg) { return parse_iaid1((uint8_t *)i, arg, sizeof(uint32_t), 0); } #endif static char ** splitv(int *argc, char **argv, const char *arg) { char **n, **v = argv; char *o = strdup(arg), *p, *t, *nt; if (o == NULL) { logerr(__func__); return v; } p = o; while ((t = strsep(&p, ", "))) { nt = strdup(t); if (nt == NULL) { logerr(__func__); free(o); return v; } n = reallocarray(v, (size_t)(*argc) + 1, sizeof(char *)); if (n == NULL) { logerr(__func__); free(o); free(nt); return v; } v = n; v[(*argc)++] = nt; } free(o); return v; } #ifdef INET static int parse_addr(struct in_addr *addr, struct in_addr *net, const char *arg) { char *p; if (arg == NULL || *arg == '\0') { if (addr != NULL) addr->s_addr = 0; if (net != NULL) net->s_addr = 0; return 0; } if ((p = strchr(arg, '/')) != NULL) { int e; intmax_t i; *p++ = '\0'; i = strtoi(p, NULL, 10, 0, 32, &e); if (e != 0 || (net != NULL && inet_cidrtoaddr((int)i, net) != 0)) { logerrx("`%s' is not a valid CIDR", p); return -1; } } if (addr != NULL && inet_aton(arg, addr) == 0) { logerrx("`%s' is not a valid IP address", arg); return -1; } if (p != NULL) *--p = '/'; else if (net != NULL && addr != NULL) net->s_addr = ipv4_getnetmask(addr->s_addr); return 0; } #else static int parse_addr(__unused struct in_addr *addr, __unused struct in_addr *net, __unused const char *arg) { logerrx("No IPv4 support"); return -1; } #endif static const char * set_option_space(struct dhcpcd_ctx *ctx, const char *arg, const struct dhcp_opt **d, size_t *dl, const struct dhcp_opt **od, size_t *odl, struct if_options *ifo, uint8_t *request[], uint8_t *require[], uint8_t *no[], uint8_t *reject[]) { #if !defined(INET) && !defined(INET6) UNUSED(ctx); #endif #ifdef INET6 if (strncmp(arg, "nd_", strlen("nd_")) == 0) { *d = ctx->nd_opts; *dl = ctx->nd_opts_len; *od = ifo->nd_override; *odl = ifo->nd_override_len; *request = ifo->requestmasknd; *require = ifo->requiremasknd; *no = ifo->nomasknd; *reject = ifo->rejectmasknd; return arg + strlen("nd_"); } #ifdef DHCP6 if (strncmp(arg, "dhcp6_", strlen("dhcp6_")) == 0) { *d = ctx->dhcp6_opts; *dl = ctx->dhcp6_opts_len; *od = ifo->dhcp6_override; *odl = ifo->dhcp6_override_len; *request = ifo->requestmask6; *require = ifo->requiremask6; *no = ifo->nomask6; *reject = ifo->rejectmask6; return arg + strlen("dhcp6_"); } #endif #endif #ifdef INET *d = ctx->dhcp_opts; *dl = ctx->dhcp_opts_len; *od = ifo->dhcp_override; *odl = ifo->dhcp_override_len; #else *d = NULL; *dl = 0; *od = NULL; *odl = 0; #endif *request = ifo->requestmask; *require = ifo->requiremask; *no = ifo->nomask; *reject = ifo->rejectmask; return arg; } void free_dhcp_opt_embenc(struct dhcp_opt *opt) { size_t i; struct dhcp_opt *o; free(opt->var); for (i = 0, o = opt->embopts; i < opt->embopts_len; i++, o++) free_dhcp_opt_embenc(o); free(opt->embopts); opt->embopts_len = 0; opt->embopts = NULL; for (i = 0, o = opt->encopts; i < opt->encopts_len; i++, o++) free_dhcp_opt_embenc(o); free(opt->encopts); opt->encopts_len = 0; opt->encopts = NULL; } static char * strwhite(const char *s) { if (s == NULL) return NULL; while (*s != ' ' && *s != '\t') { if (*s == '\0') return NULL; s++; } return UNCONST(s); } static char * strskipwhite(const char *s) { if (s == NULL || *s == '\0') return NULL; while (*s == ' ' || *s == '\t') { s++; if (*s == '\0') return NULL; } return UNCONST(s); } #ifdef AUTH /* Find the end pointer of a string. */ static char * strend(const char *s) { s = strskipwhite(s); if (s == NULL) return NULL; if (*s != '"') return strchr(s, ' '); s++; for (; *s != '"' ; s++) { if (*s == '\0') return NULL; if (*s == '\\') { if (*(++s) == '\0') return NULL; } } return UNCONST(++s); } #endif static int parse_option(struct dhcpcd_ctx *ctx, const char *ifname, struct if_options *ifo, int opt, const char *arg, struct dhcp_opt **ldop, struct dhcp_opt **edop) { int e, i, t; long l; unsigned long u; char *p = NULL, *bp, *fp, *np; ssize_t s; struct in_addr addr, addr2; in_addr_t *naddr; struct rt *rt; const struct dhcp_opt *d, *od; uint8_t *request, *require, *no, *reject; struct dhcp_opt **dop, *ndop; size_t *dop_len, dl, odl; struct vivco *vivco; struct group *grp; #ifdef AUTH struct token *token; #endif #ifdef _REENTRANT struct group grpbuf; #endif #ifdef DHCP6 size_t sl; struct if_ia *ia; uint8_t iaid[4]; #ifndef SMALL struct if_sla *sla, *slap; #endif #endif dop = NULL; dop_len = NULL; #ifdef INET6 i = 0; #endif /* Add a guard for static analysers. * This should not be needed really because of the argument_required option * in the options declaration above. */ #define ARG_REQUIRED if (arg == NULL) goto arg_required switch(opt) { case 'f': /* FALLTHROUGH */ case 'g': /* FALLTHROUGH */ case 'n': /* FALLTHROUGH */ case 'q': /* FALLTHROUGH */ case 'x': /* FALLTHROUGH */ case 'N': /* FALLTHROUGH */ case 'P': /* FALLTHROUGH */ case 'T': /* FALLTHROUGH */ case 'U': /* FALLTHROUGH */ case 'V': /* We need to handle non interface options */ break; case 'b': ifo->options |= DHCPCD_BACKGROUND; break; case 'c': ARG_REQUIRED; if (ifo->script != default_script) free(ifo->script); s = parse_str(NULL, 0, arg, PARSE_STRING_NULL); if (s == 0) { ifo->script = NULL; break; } dl = (size_t)s; if (s == -1 || (ifo->script = malloc(dl)) == NULL) { ifo->script = NULL; logerr(__func__); return -1; } parse_str(ifo->script, dl, arg, PARSE_STRING_NULL); if (ifo->script[0] == '\0' || strcmp(ifo->script, "/dev/null") == 0) { free(ifo->script); ifo->script = NULL; } break; case 'd': ifo->options |= DHCPCD_DEBUG; break; case 'e': ARG_REQUIRED; add_environ(&ifo->environ, arg, 1); break; case 'h': if (!arg) { ifo->options |= DHCPCD_HOSTNAME; break; } s = parse_string(ifo->hostname, HOSTNAME_MAX_LEN, arg); if (s == -1) { logerr("%s: hostname", __func__); return -1; } if (s != 0 && ifo->hostname[0] == '.') { logerrx("hostname cannot begin with ."); return -1; } ifo->hostname[s] = '\0'; if (ifo->hostname[0] == '\0') ifo->options &= ~DHCPCD_HOSTNAME; else ifo->options |= DHCPCD_HOSTNAME; break; case 'i': if (arg) s = parse_string((char *)ifo->vendorclassid + 1, VENDORCLASSID_MAX_LEN, arg); else s = 0; if (s == -1) { logerr("vendorclassid"); return -1; } *ifo->vendorclassid = (uint8_t)s; break; case 'j': ARG_REQUIRED; /* per interface logging is not supported * don't want to overide the commandline */ if (ifname == NULL && ctx->logfile == NULL) { logclose(); ctx->logfile = strdup(arg); logopen(ctx->logfile); } break; case 'k': ifo->options |= DHCPCD_RELEASE; break; case 'l': ARG_REQUIRED; ifo->leasetime = (uint32_t)strtou(arg, NULL, 0, 0, UINT32_MAX, &e); if (e) { logerrx("failed to convert leasetime %s", arg); return -1; } break; case 'm': ARG_REQUIRED; ifo->metric = (int)strtoi(arg, NULL, 0, 0, INT32_MAX, &e); if (e) { logerrx("failed to convert metric %s", arg); return -1; } break; case 'o': ARG_REQUIRED; arg = set_option_space(ctx, arg, &d, &dl, &od, &odl, ifo, &request, &require, &no, &reject); if (make_option_mask(d, dl, od, odl, request, arg, 1) != 0 || make_option_mask(d, dl, od, odl, no, arg, -1) != 0 || make_option_mask(d, dl, od, odl, reject, arg, -1) != 0) { logerrx("unknown option `%s'", arg); return -1; } break; case O_REJECT: ARG_REQUIRED; arg = set_option_space(ctx, arg, &d, &dl, &od, &odl, ifo, &request, &require, &no, &reject); if (make_option_mask(d, dl, od, odl, reject, arg, 1) != 0 || make_option_mask(d, dl, od, odl, request, arg, -1) != 0 || make_option_mask(d, dl, od, odl, require, arg, -1) != 0) { logerrx("unknown option `%s'", arg); return -1; } break; case 'p': ifo->options |= DHCPCD_PERSISTENT; break; case 'r': if (parse_addr(&ifo->req_addr, NULL, arg) != 0) return -1; ifo->options |= DHCPCD_REQUEST; ifo->req_mask.s_addr = 0; break; case 's': if (arg && *arg != '\0') { /* Strip out a broadcast address */ p = strchr(arg, '/'); if (p != NULL) { p = strchr(p + 1, '/'); if (p != NULL) *p = '\0'; } i = parse_addr(&ifo->req_addr, &ifo->req_mask, arg); if (p != NULL) { /* Ensure the original string is preserved */ *p++ = '/'; if (i == 0) i = parse_addr(&ifo->req_brd, NULL, p); } if (i != 0) return -1; } else { ifo->req_addr.s_addr = 0; ifo->req_mask.s_addr = 0; } ifo->options |= DHCPCD_INFORM | DHCPCD_PERSISTENT; ifo->options &= ~DHCPCD_STATIC; break; case O_INFORM6: ifo->options |= DHCPCD_INFORM6; break; case 't': ARG_REQUIRED; ifo->timeout = (time_t)strtoi(arg, NULL, 0, 0, INT32_MAX, &e); if (e) { logerrx("failed to convert timeout %s", arg); return -1; } break; case 'u': s = USERCLASS_MAX_LEN - ifo->userclass[0] - 1; s = parse_string((char *)ifo->userclass + ifo->userclass[0] + 2, (size_t)s, arg); if (s == -1) { logerr("userclass"); return -1; } if (s != 0) { ifo->userclass[ifo->userclass[0] + 1] = (uint8_t)s; ifo->userclass[0] = (uint8_t)(ifo->userclass[0] + s +1); } break; case 'v': ARG_REQUIRED; p = strchr(arg, ','); if (!p || !p[1]) { logerrx("invalid vendor format: %s", arg); return -1; } /* If vendor starts with , then it is not encapsulated */ if (p == arg) { arg++; s = parse_string((char *)ifo->vendor + 1, VENDOR_MAX_LEN, arg); if (s == -1) { logerr("vendor"); return -1; } ifo->vendor[0] = (uint8_t)s; ifo->options |= DHCPCD_VENDORRAW; break; } /* Encapsulated vendor options */ if (ifo->options & DHCPCD_VENDORRAW) { ifo->options &= ~DHCPCD_VENDORRAW; ifo->vendor[0] = 0; } /* Strip and preserve the comma */ *p = '\0'; i = (int)strtoi(arg, NULL, 0, 1, 254, &e); *p = ','; if (e) { logerrx("vendor option should be between" " 1 and 254 inclusive"); return -1; } arg = p + 1; s = VENDOR_MAX_LEN - ifo->vendor[0] - 2; if (inet_aton(arg, &addr) == 1) { if (s < 6) { s = -1; errno = ENOBUFS; } else { memcpy(ifo->vendor + ifo->vendor[0] + 3, &addr.s_addr, sizeof(addr.s_addr)); s = sizeof(addr.s_addr); } } else { s = parse_string((char *)ifo->vendor + ifo->vendor[0] + 3, (size_t)s, arg); } if (s == -1) { logerr("vendor"); return -1; } if (s != 0) { ifo->vendor[ifo->vendor[0] + 1] = (uint8_t)i; ifo->vendor[ifo->vendor[0] + 2] = (uint8_t)s; ifo->vendor[0] = (uint8_t)(ifo->vendor[0] + s + 2); } break; case 'w': ifo->options |= DHCPCD_WAITIP; if (arg != NULL && arg[0] != '\0') { if (arg[0] == '4' || arg[1] == '4') ifo->options |= DHCPCD_WAITIP4; if (arg[0] == '6' || arg[1] == '6') ifo->options |= DHCPCD_WAITIP6; } break; case 'y': ARG_REQUIRED; ifo->reboot = (time_t)strtoi(arg, NULL, 0, 0, UINT32_MAX, &e); if (e) { logerr("failed to convert reboot %s", arg); return -1; } break; case 'z': ARG_REQUIRED; if (ifname == NULL) ctx->ifav = splitv(&ctx->ifac, ctx->ifav, arg); break; case 'A': ifo->options &= ~DHCPCD_ARP; /* IPv4LL requires ARP */ ifo->options &= ~DHCPCD_IPV4LL; break; case 'B': ifo->options &= ~DHCPCD_DAEMONISE; break; case 'C': ARG_REQUIRED; /* Commas to spaces for shell */ while ((p = strchr(arg, ','))) *p = ' '; dl = strlen("skip_hooks=") + strlen(arg) + 1; p = malloc(sizeof(char) * dl); if (p == NULL) { logerr(__func__); return -1; } snprintf(p, dl, "skip_hooks=%s", arg); add_environ(&ifo->environ, p, 0); free(p); break; case 'D': ifo->options |= DHCPCD_CLIENTID | DHCPCD_DUID; break; case 'E': ifo->options |= DHCPCD_LASTLEASE; break; case 'F': if (!arg) { ifo->fqdn = FQDN_BOTH; break; } if (strcmp(arg, "none") == 0) ifo->fqdn = FQDN_NONE; else if (strcmp(arg, "ptr") == 0) ifo->fqdn = FQDN_PTR; else if (strcmp(arg, "both") == 0) ifo->fqdn = FQDN_BOTH; else if (strcmp(arg, "disable") == 0) ifo->fqdn = FQDN_DISABLE; else { logerrx("invalid value `%s' for FQDN", arg); return -1; } break; case 'G': ifo->options &= ~DHCPCD_GATEWAY; break; case 'H': ifo->options |= DHCPCD_XID_HWADDR; break; case 'I': /* Strings have a type of 0 */; ifo->clientid[1] = 0; if (arg) s = parse_hwaddr((char *)ifo->clientid + 1, CLIENTID_MAX_LEN, arg); else s = 0; if (s == -1) { logerr("clientid"); return -1; } ifo->options |= DHCPCD_CLIENTID; ifo->clientid[0] = (uint8_t)s; break; case 'J': ifo->options |= DHCPCD_BROADCAST; break; case 'K': ifo->options &= ~DHCPCD_LINK; break; case 'L': ifo->options &= ~DHCPCD_IPV4LL; break; case 'M': ifo->options |= DHCPCD_MASTER; break; case 'O': ARG_REQUIRED; arg = set_option_space(ctx, arg, &d, &dl, &od, &odl, ifo, &request, &require, &no, &reject); if (make_option_mask(d, dl, od, odl, request, arg, -1) != 0 || make_option_mask(d, dl, od, odl, require, arg, -1) != 0 || make_option_mask(d, dl, od, odl, no, arg, 1) != 0) { logerrx("unknown option `%s'", arg); return -1; } break; case 'Q': ARG_REQUIRED; arg = set_option_space(ctx, arg, &d, &dl, &od, &odl, ifo, &request, &require, &no, &reject); if (make_option_mask(d, dl, od, odl, require, arg, 1) != 0 || make_option_mask(d, dl, od, odl, request, arg, 1) != 0 || make_option_mask(d, dl, od, odl, no, arg, -1) != 0 || make_option_mask(d, dl, od, odl, reject, arg, -1) != 0) { logerrx("unknown option `%s'", arg); return -1; } break; case 'S': ARG_REQUIRED; p = strchr(arg, '='); if (p == NULL) { logerrx("static assignment required"); return -1; } p++; if (strncmp(arg, "ip_address=", strlen("ip_address=")) == 0) { if (parse_addr(&ifo->req_addr, ifo->req_mask.s_addr == 0 ? &ifo->req_mask : NULL, p) != 0) return -1; ifo->options |= DHCPCD_STATIC; ifo->options &= ~DHCPCD_INFORM; } else if (strncmp(arg, "subnet_mask=", strlen("subnet_mask=")) == 0) { if (parse_addr(&ifo->req_mask, NULL, p) != 0) return -1; } else if (strncmp(arg, "broadcast_address=", strlen("broadcast_address=")) == 0) { if (parse_addr(&ifo->req_brd, NULL, p) != 0) return -1; } else if (strncmp(arg, "routes=", strlen("routes=")) == 0 || strncmp(arg, "static_routes=", strlen("static_routes=")) == 0 || strncmp(arg, "classless_static_routes=", strlen("classless_static_routes=")) == 0 || strncmp(arg, "ms_classless_static_routes=", strlen("ms_classless_static_routes=")) == 0) { struct in_addr addr3; fp = np = strwhite(p); if (np == NULL) { logerrx("all routes need a gateway"); return -1; } *np++ = '\0'; np = strskipwhite(np); if (parse_addr(&addr, &addr2, p) == -1 || parse_addr(&addr3, NULL, np) == -1) { *fp = ' '; return -1; } if ((rt = rt_new0(ctx)) == NULL) { *fp = ' '; return -1; } sa_in_init(&rt->rt_dest, &addr); sa_in_init(&rt->rt_netmask, &addr2); sa_in_init(&rt->rt_gateway, &addr3); TAILQ_INSERT_TAIL(&ifo->routes, rt, rt_next); *fp = ' '; add_environ(&ifo->config, arg, 0); } else if (strncmp(arg, "routers=", strlen("routers=")) == 0) { if (parse_addr(&addr, NULL, p) == -1) return -1; if ((rt = rt_new0(ctx)) == NULL) return -1; addr2.s_addr = INADDR_ANY; sa_in_init(&rt->rt_dest, &addr2); sa_in_init(&rt->rt_netmask, &addr2); sa_in_init(&rt->rt_gateway, &addr); TAILQ_INSERT_TAIL(&ifo->routes, rt, rt_next); add_environ(&ifo->config, arg, 0); } else if (strncmp(arg, "interface_mtu=", strlen("interface_mtu=")) == 0 || strncmp(arg, "mtu=", strlen("mtu=")) == 0) { ifo->mtu = (unsigned int)strtou(p, NULL, 0, MTU_MIN, MTU_MAX, &e); if (e) { logerrx("invalid MTU %s", p); return -1; } } else if (strncmp(arg, "ip6_address=", strlen("ip6_address=")) == 0) { np = strchr(p, '/'); if (np) *np++ = '\0'; if (inet_pton(AF_INET6, p, &ifo->req_addr6) == 1) { if (np) { ifo->req_prefix_len = (uint8_t)strtou(np, NULL, 0, 0, 128, &e); if (e) { logerrx("%s: failed to " "convert prefix len", ifname); return -1; } } else ifo->req_prefix_len = 128; } } else add_environ(&ifo->config, arg, 1); break; case 'W': if (parse_addr(&addr, &addr2, arg) != 0) return -1; if (strchr(arg, '/') == NULL) addr2.s_addr = INADDR_BROADCAST; naddr = reallocarray(ifo->whitelist, ifo->whitelist_len + 2, sizeof(in_addr_t)); if (naddr == NULL) { logerr(__func__); return -1; } ifo->whitelist = naddr; ifo->whitelist[ifo->whitelist_len++] = addr.s_addr; ifo->whitelist[ifo->whitelist_len++] = addr2.s_addr; break; case 'X': if (parse_addr(&addr, &addr2, arg) != 0) return -1; if (strchr(arg, '/') == NULL) addr2.s_addr = INADDR_BROADCAST; naddr = reallocarray(ifo->blacklist, ifo->blacklist_len + 2, sizeof(in_addr_t)); if (naddr == NULL) { logerr(__func__); return -1; } ifo->blacklist = naddr; ifo->blacklist[ifo->blacklist_len++] = addr.s_addr; ifo->blacklist[ifo->blacklist_len++] = addr2.s_addr; break; case 'Z': ARG_REQUIRED; if (ifname == NULL) ctx->ifdv = splitv(&ctx->ifdc, ctx->ifdv, arg); break; case '1': ifo->options |= DHCPCD_ONESHOT; break; case '4': ifo->options &= ~DHCPCD_IPV6; ifo->options |= DHCPCD_IPV4; break; case '6': ifo->options &= ~DHCPCD_IPV4; ifo->options |= DHCPCD_IPV6; break; case O_IPV4: ifo->options |= DHCPCD_IPV4; break; case O_NOIPV4: ifo->options &= ~DHCPCD_IPV4; break; case O_IPV6: ifo->options |= DHCPCD_IPV6; break; case O_NOIPV6: ifo->options &= ~DHCPCD_IPV6; break; #ifdef INET case O_ARPING: while (arg != NULL) { fp = strwhite(arg); if (fp) *fp++ = '\0'; if (parse_addr(&addr, NULL, arg) != 0) return -1; naddr = reallocarray(ifo->arping, (size_t)ifo->arping_len + 1, sizeof(in_addr_t)); if (naddr == NULL) { logerr(__func__); return -1; } ifo->arping = naddr; ifo->arping[ifo->arping_len++] = addr.s_addr; arg = strskipwhite(fp); } break; case O_DESTINATION: ARG_REQUIRED; arg = set_option_space(ctx, arg, &d, &dl, &od, &odl, ifo, &request, &require, &no, &reject); if (make_option_mask(d, dl, od, odl, ifo->dstmask, arg, 2) != 0) { if (errno == EINVAL) logerrx("option `%s' does not take" " an IPv4 address", arg); else logerrx("unknown option `%s'", arg); return -1; } break; case O_FALLBACK: ARG_REQUIRED; free(ifo->fallback); ifo->fallback = strdup(arg); if (ifo->fallback == NULL) { logerrx(__func__); return -1; } break; #endif case O_IAID: ARG_REQUIRED; if (ifname == NULL) { logerrx("IAID must belong in an interface block"); return -1; } if (parse_iaid(ifo->iaid, arg, sizeof(ifo->iaid)) == -1) { logerrx("invalid IAID %s", arg); return -1; } ifo->options |= DHCPCD_IAID; break; case O_IPV6RS: ifo->options |= DHCPCD_IPV6RS; break; case O_NOIPV6RS: ifo->options &= ~DHCPCD_IPV6RS; break; case O_IPV6RA_FORK: ifo->options &= ~DHCPCD_IPV6RA_REQRDNSS; break; case O_IPV6RA_AUTOCONF: ifo->options |= DHCPCD_IPV6RA_AUTOCONF; break; case O_IPV6RA_NOAUTOCONF: ifo->options &= ~DHCPCD_IPV6RA_AUTOCONF; break; case O_NOALIAS: ifo->options |= DHCPCD_NOALIAS; break; #ifdef DHCP6 case O_IA_NA: i = D6_OPTION_IA_NA; /* FALLTHROUGH */ case O_IA_TA: if (i == 0) i = D6_OPTION_IA_TA; /* FALLTHROUGH */ case O_IA_PD: if (i == 0) { #ifdef SMALL logwarnx("%s: IA_PD not compiled in", ifname); return -1; #else if (ifname == NULL) { logerrx("IA PD must belong in an " "interface block"); return -1; } i = D6_OPTION_IA_PD; #endif } if (ifname == NULL && arg) { logerrx("IA with IAID must belong in an " "interface block"); return -1; } ifo->options |= DHCPCD_IA_FORCED; fp = strwhite(arg); if (fp) { *fp++ = '\0'; fp = strskipwhite(fp); } if (arg) { p = strchr(arg, '/'); if (p) *p++ = '\0'; if (parse_iaid(iaid, arg, sizeof(iaid)) == -1) { logerr("invalid IAID: %s", arg); return -1; } } ia = NULL; for (sl = 0; sl < ifo->ia_len; sl++) { if ((arg == NULL && !ifo->ia[sl].iaid_set) || (arg != NULL && ifo->ia[sl].iaid_set && ifo->ia[sl].ia_type == (uint16_t)i && ifo->ia[sl].iaid[0] == iaid[0] && ifo->ia[sl].iaid[1] == iaid[1] && ifo->ia[sl].iaid[2] == iaid[2] && ifo->ia[sl].iaid[3] == iaid[3])) { ia = &ifo->ia[sl]; break; } } if (ia == NULL) { ia = reallocarray(ifo->ia, ifo->ia_len + 1, sizeof(*ifo->ia)); if (ia == NULL) { logerr(__func__); return -1; } ifo->ia = ia; ia = &ifo->ia[ifo->ia_len++]; ia->ia_type = (uint16_t)i; if (arg) { ia->iaid[0] = iaid[0]; ia->iaid[1] = iaid[1]; ia->iaid[2] = iaid[2]; ia->iaid[3] = iaid[3]; ia->iaid_set = 1; } else ia->iaid_set = 0; if (!ia->iaid_set || p == NULL || ia->ia_type == D6_OPTION_IA_TA) { memset(&ia->addr, 0, sizeof(ia->addr)); ia->prefix_len = 0; } else { arg = p; p = strchr(arg, '/'); if (p) *p++ = '\0'; if (inet_pton(AF_INET6, arg, &ia->addr) == -1) { logerr("%s", arg); memset(&ia->addr, 0, sizeof(ia->addr)); } if (p && ia->ia_type == D6_OPTION_IA_PD) { ia->prefix_len = (uint8_t)strtou(p, NULL, 0, 8, 120, &e); if (e) { logerrx("%s: failed to convert" " prefix len", p); ia->prefix_len = 0; } } } #ifndef SMALL ia->sla_max = 0; ia->sla_len = 0; ia->sla = NULL; #endif } #ifdef SMALL break; #else if (ia->ia_type != D6_OPTION_IA_PD) break; for (p = fp; p; p = fp) { fp = strwhite(p); if (fp) { *fp++ = '\0'; fp = strskipwhite(fp); } sla = reallocarray(ia->sla, ia->sla_len + 1, sizeof(*ia->sla)); if (sla == NULL) { logerr(__func__); return -1; } ia->sla = sla; sla = &ia->sla[ia->sla_len++]; np = strchr(p, '/'); if (np) *np++ = '\0'; if (strlcpy(sla->ifname, p, sizeof(sla->ifname)) >= sizeof(sla->ifname)) { logerrx("%s: interface name too long", arg); goto err_sla; } sla->sla_set = 0; sla->prefix_len = 0; sla->suffix = 1; p = np; if (p) { np = strchr(p, '/'); if (np) *np++ = '\0'; if (*p != '\0') { sla->sla = (uint32_t)strtou(p, NULL, 0, 0, UINT32_MAX, &e); sla->sla_set = 1; if (e) { logerrx("%s: failed to convert " "sla", ifname); goto err_sla; } } p = np; } if (p) { np = strchr(p, '/'); if (np) *np++ = '\0'; if (*p != '\0') { sla->prefix_len = (uint8_t)strtou(p, NULL, 0, 0, 120, &e); if (e) { logerrx("%s: failed to " "convert prefix len", ifname); goto err_sla; } } p = np; } if (p) { np = strchr(p, '/'); if (np) *np = '\0'; if (*p != '\0') { sla->suffix = (uint64_t)strtou(p, NULL, 0, 0, UINT64_MAX, &e); if (e) { logerrx("%s: failed to " "convert suffix", ifname); goto err_sla; } } } /* Sanity check */ for (sl = 0; sl < ia->sla_len - 1; sl++) { slap = &ia->sla[sl]; if (slap->sla_set != sla->sla_set) { logerrx("%s: cannot mix automatic " "and fixed SLA", sla->ifname); goto err_sla; } if (ia->prefix_len && (sla->prefix_len == ia->prefix_len || slap->prefix_len == ia->prefix_len)) { logerrx("%s: cannot delegte the same" "prefix length more than once", sla->ifname); goto err_sla; } if (sla->sla_set == 0 && strcmp(slap->ifname, sla->ifname) == 0) { logwarnx("%s: cannot specify the " "same interface twice with " "an automatic SLA", sla->ifname); goto err_sla; } if (slap->sla_set && sla->sla_set && slap->sla == sla->sla) { logerrx("%s: cannot" " assign the same SLA %u" " more than once", sla->ifname, sla->sla); goto err_sla; } } if (sla->sla_set && sla->sla > ia->sla_max) ia->sla_max = sla->sla; } break; err_sla: ia->sla_len--; return -1; #endif #endif case O_HOSTNAME_SHORT: ifo->options |= DHCPCD_HOSTNAME | DHCPCD_HOSTNAME_SHORT; break; case O_DEV: ARG_REQUIRED; #ifdef PLUGIN_DEV if (ctx->dev_load) free(ctx->dev_load); ctx->dev_load = strdup(arg); #endif break; case O_NODEV: ifo->options &= ~DHCPCD_DEV; break; case O_DEFINE: dop = &ifo->dhcp_override; dop_len = &ifo->dhcp_override_len; /* FALLTHROUGH */ case O_DEFINEND: if (dop == NULL) { dop = &ifo->nd_override; dop_len = &ifo->nd_override_len; } /* FALLTHROUGH */ case O_DEFINE6: if (dop == NULL) { dop = &ifo->dhcp6_override; dop_len = &ifo->dhcp6_override_len; } /* FALLTHROUGH */ case O_VENDOPT: if (dop == NULL) { dop = &ifo->vivso_override; dop_len = &ifo->vivso_override_len; } *edop = *ldop = NULL; /* FALLTHROUGH */ case O_EMBED: if (dop == NULL) { if (*edop) { dop = &(*edop)->embopts; dop_len = &(*edop)->embopts_len; } else if (ldop) { dop = &(*ldop)->embopts; dop_len = &(*ldop)->embopts_len; } else { logerrx("embed must be after a define " "or encap"); return -1; } } /* FALLTHROUGH */ case O_ENCAP: ARG_REQUIRED; if (dop == NULL) { if (*ldop == NULL) { logerrx("encap must be after a define"); return -1; } dop = &(*ldop)->encopts; dop_len = &(*ldop)->encopts_len; } /* Shared code for define, define6, embed and encap */ /* code */ if (opt == O_EMBED) /* Embedded options don't have codes */ u = 0; else { fp = strwhite(arg); if (fp == NULL) { logerrx("invalid syntax: %s", arg); return -1; } *fp++ = '\0'; u = (uint32_t)strtou(arg, NULL, 0, 0, UINT32_MAX, &e); if (e) { logerrx("invalid code: %s", arg); return -1; } arg = strskipwhite(fp); if (arg == NULL) { logerrx("invalid syntax"); return -1; } } /* type */ fp = strwhite(arg); if (fp) *fp++ = '\0'; np = strchr(arg, ':'); /* length */ if (np) { *np++ = '\0'; bp = NULL; /* No bitflag */ l = (long)strtou(np, NULL, 0, 0, LONG_MAX, &e); if (e) { logerrx("failed to convert length"); return -1; } } else { l = 0; bp = strchr(arg, '='); /* bitflag assignment */ if (bp) *bp++ = '\0'; } t = 0; if (strcasecmp(arg, "request") == 0) { t |= OT_REQUEST; arg = strskipwhite(fp); fp = strwhite(arg); if (fp == NULL) { logerrx("incomplete request type"); return -1; } *fp++ = '\0'; } else if (strcasecmp(arg, "norequest") == 0) { t |= OT_NOREQ; arg = strskipwhite(fp); fp = strwhite(arg); if (fp == NULL) { logerrx("incomplete request type"); return -1; } *fp++ = '\0'; } if (strcasecmp(arg, "optional") == 0) { t |= OT_OPTIONAL; arg = strskipwhite(fp); fp = strwhite(arg); if (fp == NULL) { logerrx("incomplete optional type"); return -1; } *fp++ = '\0'; } if (strcasecmp(arg, "index") == 0) { t |= OT_INDEX; arg = strskipwhite(fp); fp = strwhite(arg); if (fp == NULL) { logerrx("incomplete index type"); return -1; } *fp++ = '\0'; } if (strcasecmp(arg, "array") == 0) { t |= OT_ARRAY; arg = strskipwhite(fp); fp = strwhite(arg); if (fp == NULL) { logerrx("incomplete array type"); return -1; } *fp++ = '\0'; } if (strcasecmp(arg, "ipaddress") == 0) t |= OT_ADDRIPV4; else if (strcasecmp(arg, "ip6address") == 0) t |= OT_ADDRIPV6; else if (strcasecmp(arg, "string") == 0) t |= OT_STRING; else if (strcasecmp(arg, "byte") == 0) t |= OT_UINT8; else if (strcasecmp(arg, "bitflags") == 0) t |= OT_BITFLAG; else if (strcasecmp(arg, "uint8") == 0) t |= OT_UINT8; else if (strcasecmp(arg, "int8") == 0) t |= OT_INT8; else if (strcasecmp(arg, "uint16") == 0) t |= OT_UINT16; else if (strcasecmp(arg, "int16") == 0) t |= OT_INT16; else if (strcasecmp(arg, "uint32") == 0) t |= OT_UINT32; else if (strcasecmp(arg, "int32") == 0) t |= OT_INT32; else if (strcasecmp(arg, "flag") == 0) t |= OT_FLAG; else if (strcasecmp(arg, "raw") == 0) t |= OT_STRING | OT_RAW; else if (strcasecmp(arg, "ascii") == 0) t |= OT_STRING | OT_ASCII; else if (strcasecmp(arg, "domain") == 0) t |= OT_STRING | OT_DOMAIN | OT_RFC1035; else if (strcasecmp(arg, "dname") == 0) t |= OT_STRING | OT_DOMAIN; else if (strcasecmp(arg, "binhex") == 0) t |= OT_STRING | OT_BINHEX; else if (strcasecmp(arg, "embed") == 0) t |= OT_EMBED; else if (strcasecmp(arg, "encap") == 0) t |= OT_ENCAP; else if (strcasecmp(arg, "rfc3361") ==0) t |= OT_STRING | OT_RFC3361; else if (strcasecmp(arg, "rfc3442") ==0) t |= OT_STRING | OT_RFC3442; else if (strcasecmp(arg, "option") == 0) t |= OT_OPTION; else { logerrx("unknown type: %s", arg); return -1; } if (l && !(t & (OT_STRING | OT_BINHEX))) { logwarnx("ignoring length for type `%s'", arg); l = 0; } if (t & OT_ARRAY && t & (OT_STRING | OT_BINHEX) && !(t & (OT_RFC1035 | OT_DOMAIN))) { logwarnx("ignoring array for strings"); t &= ~OT_ARRAY; } if (t & OT_BITFLAG) { if (bp == NULL) logwarnx("missing bitflag assignment"); } /* variable */ if (!fp) { if (!(t & OT_OPTION)) { logerrx("type %s requires a variable name", arg); return -1; } np = NULL; } else { arg = strskipwhite(fp); fp = strwhite(arg); if (fp) *fp++ = '\0'; if (strcasecmp(arg, "reserved")) { np = strdup(arg); if (np == NULL) { logerr(__func__); return -1; } } else { np = NULL; t |= OT_RESERVED; } } if (opt != O_EMBED) { for (dl = 0, ndop = *dop; dl < *dop_len; dl++, ndop++) { /* type 0 seems freshly malloced struct * for us to use */ if (ndop->option == u || ndop->type == 0) break; } if (dl == *dop_len) ndop = NULL; } else ndop = NULL; if (ndop == NULL) { ndop = reallocarray(*dop, *dop_len + 1, sizeof(**dop)); if (ndop == NULL) { logerr(__func__); free(np); return -1; } *dop = ndop; ndop = &(*dop)[(*dop_len)++]; ndop->embopts = NULL; ndop->embopts_len = 0; ndop->encopts = NULL; ndop->encopts_len = 0; } else free_dhcp_opt_embenc(ndop); ndop->option = (uint32_t)u; /* could have been 0 */ ndop->type = t; ndop->len = (size_t)l; ndop->var = np; if (bp) { dl = strlen(bp); memcpy(ndop->bitflags, bp, dl); memset(ndop->bitflags + dl, 0, sizeof(ndop->bitflags) - dl); } else memset(ndop->bitflags, 0, sizeof(ndop->bitflags)); /* Save the define for embed and encap options */ switch (opt) { case O_DEFINE: case O_DEFINEND: case O_DEFINE6: case O_VENDOPT: *ldop = ndop; break; case O_ENCAP: *edop = ndop; break; } break; case O_VENDCLASS: ARG_REQUIRED; fp = strwhite(arg); if (fp) *fp++ = '\0'; u = (uint32_t)strtou(arg, NULL, 0, 0, UINT32_MAX, &e); if (e) { logerrx("invalid code: %s", arg); return -1; } fp = strskipwhite(fp); if (fp) { s = parse_string(NULL, 0, fp); if (s == -1) { logerr(__func__); return -1; } dl = (size_t)s; if (dl + (sizeof(uint16_t) * 2) > UINT16_MAX) { logerrx("vendor class is too big"); return -1; } np = malloc(dl); if (np == NULL) { logerr(__func__); return -1; } parse_string(np, dl, fp); } else { dl = 0; np = NULL; } vivco = reallocarray(ifo->vivco, ifo->vivco_len + 1, sizeof(*ifo->vivco)); if (vivco == NULL) { logerr( __func__); return -1; } ifo->vivco = vivco; ifo->vivco_en = (uint32_t)u; vivco = &ifo->vivco[ifo->vivco_len++]; vivco->len = dl; vivco->data = (uint8_t *)np; break; case O_AUTHPROTOCOL: ARG_REQUIRED; #ifdef AUTH fp = strwhite(arg); if (fp) *fp++ = '\0'; if (strcasecmp(arg, "token") == 0) ifo->auth.protocol = AUTH_PROTO_TOKEN; else if (strcasecmp(arg, "delayed") == 0) ifo->auth.protocol = AUTH_PROTO_DELAYED; else if (strcasecmp(arg, "delayedrealm") == 0) ifo->auth.protocol = AUTH_PROTO_DELAYEDREALM; else { logerrx("%s: unsupported protocol", arg); return -1; } arg = strskipwhite(fp); fp = strwhite(arg); if (arg == NULL) { ifo->auth.options |= DHCPCD_AUTH_SEND; if (ifo->auth.protocol == AUTH_PROTO_TOKEN) ifo->auth.protocol = AUTH_ALG_NONE; else ifo->auth.algorithm = AUTH_ALG_HMAC_MD5; ifo->auth.rdm = AUTH_RDM_MONOTONIC; break; } if (fp) *fp++ = '\0'; if (ifo->auth.protocol == AUTH_PROTO_TOKEN) { np = strchr(arg, '/'); if (np) { if (fp == NULL || np < fp) *np++ = '\0'; else np = NULL; } if (parse_uint32(&ifo->auth.token_snd_secretid, arg) == -1) logerrx("%s: not a number", arg); else ifo->auth.token_rcv_secretid = ifo->auth.token_snd_secretid; if (np && parse_uint32(&ifo->auth.token_rcv_secretid, np) == -1) logerrx("%s: not a number", arg); } else { if (strcasecmp(arg, "hmacmd5") == 0 || strcasecmp(arg, "hmac-md5") == 0) ifo->auth.algorithm = AUTH_ALG_HMAC_MD5; else { logerrx("%s: unsupported algorithm", arg); return 1; } } arg = fp; if (arg == NULL) { ifo->auth.options |= DHCPCD_AUTH_SEND; ifo->auth.rdm = AUTH_RDM_MONOTONIC; break; } if (strcasecmp(arg, "monocounter") == 0) { ifo->auth.rdm = AUTH_RDM_MONOTONIC; ifo->auth.options |= DHCPCD_AUTH_RDM_COUNTER; } else if (strcasecmp(arg, "monotonic") ==0 || strcasecmp(arg, "monotime") == 0) ifo->auth.rdm = AUTH_RDM_MONOTONIC; else { logerrx("%s: unsupported RDM", arg); return -1; } ifo->auth.options |= DHCPCD_AUTH_SEND; break; #else logerrx("no authentication support"); return -1; #endif case O_AUTHTOKEN: ARG_REQUIRED; #ifdef AUTH fp = strwhite(arg); if (fp == NULL) { logerrx("authtoken requires a realm"); return -1; } *fp++ = '\0'; token = malloc(sizeof(*token)); if (token == NULL) { logerr(__func__); free(token); return -1; } if (parse_uint32(&token->secretid, arg) == -1) { logerrx("%s: not a number", arg); free(token); return -1; } arg = fp; fp = strend(arg); if (fp == NULL) { logerrx("authtoken requies an a key"); free(token); return -1; } *fp++ = '\0'; s = parse_string(NULL, 0, arg); if (s == -1) { logerr("realm_len"); free(token); return -1; } if (s) { token->realm_len = (size_t)s; token->realm = malloc(token->realm_len); if (token->realm == NULL) { logerr(__func__); free(token); return -1; } parse_string((char *)token->realm, token->realm_len, arg); } else { token->realm_len = 0; token->realm = NULL; } arg = fp; fp = strend(arg); if (fp == NULL) { logerrx("authtoken requies an expiry date"); free(token->realm); free(token); return -1; } *fp++ = '\0'; if (*arg == '"') { arg++; np = strchr(arg, '"'); if (np) *np = '\0'; } if (strcmp(arg, "0") == 0 || strcasecmp(arg, "forever") == 0) token->expire =0; else { struct tm tm; memset(&tm, 0, sizeof(tm)); if (strptime(arg, "%Y-%m-%d %H:%M", &tm) == NULL) { logerrx("%s: invalid date time", arg); free(token->realm); free(token); return -1; } if ((token->expire = mktime(&tm)) == (time_t)-1) { logerr("%s: mktime", __func__); free(token->realm); free(token); return -1; } } arg = fp; s = parse_string(NULL, 0, arg); if (s == -1 || s == 0) { if (s == -1) logerr("token_len"); else logerrx("authtoken needs a key"); free(token->realm); free(token); return -1; } token->key_len = (size_t)s; token->key = malloc(token->key_len); parse_string((char *)token->key, token->key_len, arg); TAILQ_INSERT_TAIL(&ifo->auth.tokens, token, next); #else logerrx("no authentication support"); return -1; #endif break; case O_AUTHNOTREQUIRED: ifo->auth.options &= ~DHCPCD_AUTH_REQUIRE; break; case O_DHCP: ifo->options |= DHCPCD_DHCP | DHCPCD_IPV4; break; case O_NODHCP: ifo->options &= ~DHCPCD_DHCP; break; case O_DHCP6: ifo->options |= DHCPCD_DHCP6 | DHCPCD_IPV6; break; case O_NODHCP6: ifo->options &= ~DHCPCD_DHCP6; break; case O_CONTROLGRP: ARG_REQUIRED; #ifdef _REENTRANT l = sysconf(_SC_GETGR_R_SIZE_MAX); if (l == -1) dl = 1024; else dl = (size_t)l; p = malloc(dl); if (p == NULL) { logerr(__func__); return -1; } while ((i = getgrnam_r(arg, &grpbuf, p, (size_t)l, &grp)) == ERANGE) { size_t nl = dl * 2; if (nl < dl) { logerrx("control_group: out of buffer"); free(p); return -1; } dl = nl; np = realloc(p, dl); if (np == NULL) { logerr(__func__); free(p); return -1; } p = np; } if (i != 0) { errno = i; logerr("getgrnam_r"); free(p); return -1; } if (grp == NULL) { logerrx("controlgroup: %s: not found", arg); free(p); return -1; } ctx->control_group = grp->gr_gid; free(p); #else grp = getgrnam(arg); if (grp == NULL) { logerrx("controlgroup: %s: not found", arg); return -1; } ctx->control_group = grp->gr_gid; #endif break; case O_GATEWAY: ifo->options |= DHCPCD_GATEWAY; break; case O_NOUP: ifo->options &= ~DHCPCD_IF_UP; break; case O_SLAAC: ARG_REQUIRED; if (strcmp(arg, "private") == 0 || strcmp(arg, "stableprivate") == 0 || strcmp(arg, "stable") == 0) ifo->options |= DHCPCD_SLAACPRIVATE; else ifo->options &= ~DHCPCD_SLAACPRIVATE; break; case O_BOOTP: ifo->options |= DHCPCD_BOOTP; break; case O_NODELAY: ifo->options &= ~DHCPCD_INITIAL_DELAY; break; case O_LASTLEASE_EXTEND: ifo->options |= DHCPCD_LASTLEASE | DHCPCD_LASTLEASE_EXTEND; break; case O_INACTIVE: ifo->options |= DHCPCD_INACTIVE; break; case O_MUDURL: ARG_REQUIRED; s = parse_string((char *)ifo->mudurl + 1, MUDURL_MAX_LEN, arg); if (s == -1) { logerr("mudurl"); return -1; } *ifo->mudurl = (uint8_t)s; break; default: return 0; } return 1; #ifdef ARG_REQUIRED arg_required: logerrx("option %d requires an argument", opt); return -1; #undef ARG_REQUIRED #endif } static int parse_config_line(struct dhcpcd_ctx *ctx, const char *ifname, struct if_options *ifo, const char *opt, char *line, struct dhcp_opt **ldop, struct dhcp_opt **edop) { unsigned int i; for (i = 0; i < sizeof(cf_options) / sizeof(cf_options[0]); i++) { if (!cf_options[i].name || strcmp(cf_options[i].name, opt) != 0) continue; if (cf_options[i].has_arg == required_argument && !line) { logerrx("option requires an argument -- %s", opt); return -1; } return parse_option(ctx, ifname, ifo, cf_options[i].val, line, ldop, edop); } logerrx("unknown option: %s", opt); return -1; } static void finish_config(struct if_options *ifo) { /* Terminate the encapsulated options */ if (ifo->vendor[0] && !(ifo->options & DHCPCD_VENDORRAW)) { ifo->vendor[0]++; ifo->vendor[ifo->vendor[0]] = DHO_END; /* We are called twice. * This should be fixed, but in the meantime, this * guard should suffice */ ifo->options |= DHCPCD_VENDORRAW; } } /* Handy routine to read very long lines in text files. * This means we read the whole line and avoid any nasty buffer overflows. * We strip leading space and avoid comment lines, making the code that calls * us smaller. */ static char * get_line(char ** __restrict buf, size_t * __restrict buflen, FILE * __restrict fp) { char *p, *c; ssize_t bytes; int quoted; do { bytes = getline(buf, buflen, fp); if (bytes == -1) return NULL; for (p = *buf; *p == ' ' || *p == '\t'; p++) ; } while (*p == '\0' || *p == '\n' || *p == '#' || *p == ';'); if ((*buf)[--bytes] == '\n') (*buf)[bytes] = '\0'; /* Strip embedded comments unless in a quoted string or escaped */ quoted = 0; for (c = p; *c != '\0'; c++) { if (*c == '\\') { c++; /* escaped */ continue; } if (*c == '"') quoted = !quoted; else if (*c == '#' && !quoted) { *c = '\0'; break; } } return p; } struct if_options * default_config(struct dhcpcd_ctx *ctx) { struct if_options *ifo; /* Seed our default options */ if ((ifo = calloc(1, sizeof(*ifo))) == NULL) { logerr(__func__); return NULL; } ifo->options |= DHCPCD_IF_UP | DHCPCD_LINK | DHCPCD_INITIAL_DELAY; ifo->timeout = DEFAULT_TIMEOUT; ifo->reboot = DEFAULT_REBOOT; ifo->script = UNCONST(default_script); ifo->metric = -1; ifo->auth.options |= DHCPCD_AUTH_REQUIRE; TAILQ_INIT(&ifo->routes); #ifdef AUTH TAILQ_INIT(&ifo->auth.tokens); #endif /* Inherit some global defaults */ if (ctx->options & DHCPCD_PERSISTENT) ifo->options |= DHCPCD_PERSISTENT; if (ctx->options & DHCPCD_SLAACPRIVATE) ifo->options |= DHCPCD_SLAACPRIVATE; return ifo; } struct if_options * read_config(struct dhcpcd_ctx *ctx, const char *ifname, const char *ssid, const char *profile) { struct if_options *ifo; FILE *fp; struct stat sb; char *line, *buf, *option, *p; size_t buflen; ssize_t vlen; int skip, have_profile, new_block, had_block; #ifndef EMBEDDED_CONFIG const char * const *e; size_t ol; #endif #if !defined(INET) || !defined(INET6) size_t i; struct dhcp_opt *opt; #endif struct dhcp_opt *ldop, *edop; /* Seed our default options */ if ((ifo = default_config(ctx)) == NULL) return NULL; ifo->options |= DHCPCD_DAEMONISE | DHCPCD_GATEWAY; #ifdef PLUGIN_DEV ifo->options |= DHCPCD_DEV; #endif #ifdef INET ifo->options |= DHCPCD_IPV4 | DHCPCD_ARP | DHCPCD_DHCP | DHCPCD_IPV4LL; #endif #ifdef INET6 ifo->options |= DHCPCD_IPV6 | DHCPCD_IPV6RS; ifo->options |= DHCPCD_IPV6RA_AUTOCONF | DHCPCD_IPV6RA_REQRDNSS; ifo->options |= DHCPCD_DHCP6; #endif vlen = dhcp_vendor((char *)ifo->vendorclassid + 1, sizeof(ifo->vendorclassid) - 1); ifo->vendorclassid[0] = (uint8_t)(vlen == -1 ? 0 : vlen); buf = NULL; buflen = 0; /* Parse our embedded options file */ if (ifname == NULL && !(ctx->options & DHCPCD_PRINT_PIDFILE)) { /* Space for initial estimates */ #if defined(INET) && defined(INITDEFINES) ifo->dhcp_override = calloc(INITDEFINES, sizeof(*ifo->dhcp_override)); if (ifo->dhcp_override == NULL) logerr(__func__); else ifo->dhcp_override_len = INITDEFINES; #endif #if defined(INET6) && defined(INITDEFINENDS) ifo->nd_override = calloc(INITDEFINENDS, sizeof(*ifo->nd_override)); if (ifo->nd_override == NULL) logerr(__func__); else ifo->nd_override_len = INITDEFINENDS; #endif #if defined(INET6) && defined(INITDEFINE6S) ifo->dhcp6_override = calloc(INITDEFINE6S, sizeof(*ifo->dhcp6_override)); if (ifo->dhcp6_override == NULL) logerr(__func__); else ifo->dhcp6_override_len = INITDEFINE6S; #endif /* Now load our embedded config */ #ifdef EMBEDDED_CONFIG fp = fopen(EMBEDDED_CONFIG, "r"); if (fp == NULL) logerr("%s: fopen `%s'", __func__, EMBEDDED_CONFIG); while (fp && (line = get_line(&buf, &buflen, fp))) { #else buflen = 80; buf = malloc(buflen); if (buf == NULL) { logerr(__func__); free_options(ctx, ifo); return NULL; } ldop = edop = NULL; for (e = dhcpcd_embedded_conf; *e; e++) { ol = strlen(*e) + 1; if (ol > buflen) { char *nbuf; buflen = ol; nbuf = realloc(buf, buflen); if (nbuf == NULL) { logerr(__func__); free(buf); free_options(ctx, ifo); return NULL; } buf = nbuf; } memcpy(buf, *e, ol); line = buf; #endif option = strsep(&line, " \t"); if (line) line = strskipwhite(line); /* Trim trailing whitespace */ if (line) { p = line + strlen(line) - 1; while (p != line && (*p == ' ' || *p == '\t') && *(p - 1) != '\\') *p-- = '\0'; } parse_config_line(ctx, NULL, ifo, option, line, &ldop, &edop); } #ifdef EMBEDDED_CONFIG if (fp) fclose(fp); #endif #ifdef INET ctx->dhcp_opts = ifo->dhcp_override; ctx->dhcp_opts_len = ifo->dhcp_override_len; #else for (i = 0, opt = ifo->dhcp_override; i < ifo->dhcp_override_len; i++, opt++) free_dhcp_opt_embenc(opt); free(ifo->dhcp_override); #endif ifo->dhcp_override = NULL; ifo->dhcp_override_len = 0; #ifdef INET6 ctx->nd_opts = ifo->nd_override; ctx->nd_opts_len = ifo->nd_override_len; #ifdef DHCP6 ctx->dhcp6_opts = ifo->dhcp6_override; ctx->dhcp6_opts_len = ifo->dhcp6_override_len; #endif #else for (i = 0, opt = ifo->nd_override; i < ifo->nd_override_len; i++, opt++) free_dhcp_opt_embenc(opt); free(ifo->nd_override); for (i = 0, opt = ifo->dhcp6_override; i < ifo->dhcp6_override_len; i++, opt++) free_dhcp_opt_embenc(opt); free(ifo->dhcp6_override); #endif ifo->nd_override = NULL; ifo->nd_override_len = 0; ifo->dhcp6_override = NULL; ifo->dhcp6_override_len = 0; ctx->vivso = ifo->vivso_override; ctx->vivso_len = ifo->vivso_override_len; ifo->vivso_override = NULL; ifo->vivso_override_len = 0; } /* Parse our options file */ fp = fopen(ctx->cffile, "r"); if (fp == NULL) { /* dhcpcd can continue without it, but no DNS options * would be requested ... */ logwarn("%s: fopen `%s'", __func__, ctx->cffile); free(buf); return ifo; } if (stat(ctx->cffile, &sb) == 0) ifo->mtime = sb.st_mtime; ldop = edop = NULL; skip = have_profile = new_block = 0; had_block = ifname == NULL ? 1 : 0; while ((line = get_line(&buf, &buflen, fp))) { option = strsep(&line, " \t"); if (line) line = strskipwhite(line); /* Trim trailing whitespace */ if (line) { p = line + strlen(line) - 1; while (p != line && (*p == ' ' || *p == '\t') && *(p - 1) != '\\') *p-- = '\0'; } if (skip == 0 && new_block) { had_block = 1; new_block = 0; ifo->options &= ~DHCPCD_WAITOPTS; } /* Start of an interface block, skip if not ours */ if (strcmp(option, "interface") == 0) { char **n; new_block = 1; if (line == NULL) { /* No interface given */ skip = 1; continue; } if (ifname && strcmp(line, ifname) == 0) skip = 0; else skip = 1; if (ifname) continue; n = reallocarray(ctx->ifcv, (size_t)ctx->ifcc + 1, sizeof(char *)); if (n == NULL) { logerr(__func__); continue; } ctx->ifcv = n; ctx->ifcv[ctx->ifcc] = strdup(line); if (ctx->ifcv[ctx->ifcc] == NULL) { logerr(__func__); continue; } ctx->ifcc++; continue; } /* Start of an ssid block, skip if not ours */ if (strcmp(option, "ssid") == 0) { new_block = 1; if (ssid && line && strcmp(line, ssid) == 0) skip = 0; else skip = 1; continue; } /* Start of a profile block, skip if not ours */ if (strcmp(option, "profile") == 0) { new_block = 1; if (profile && line && strcmp(line, profile) == 0) { skip = 0; have_profile = 1; } else skip = 1; continue; } /* Skip arping if we have selected a profile but not parsing * one. */ if (profile && !have_profile && strcmp(option, "arping") == 0) continue; if (skip) continue; parse_config_line(ctx, ifname, ifo, option, line, &ldop, &edop); } fclose(fp); free(buf); if (profile && !have_profile) { free_options(ctx, ifo); errno = ENOENT; return NULL; } if (!had_block) ifo->options &= ~DHCPCD_WAITOPTS; finish_config(ifo); return ifo; } int add_options(struct dhcpcd_ctx *ctx, const char *ifname, struct if_options *ifo, int argc, char **argv) { int oi, opt, r; unsigned long long wait_opts; if (argc == 0) return 1; optind = 0; r = 1; /* Don't apply the command line wait options to each interface, * only use the dhcpcd.conf entry for that. */ if (ifname != NULL) wait_opts = ifo->options & DHCPCD_WAITOPTS; while ((opt = getopt_long(argc, argv, ctx->options & DHCPCD_PRINT_PIDFILE ? NOERR_IF_OPTS : IF_OPTS, cf_options, &oi)) != -1) { r = parse_option(ctx, ifname, ifo, opt, optarg, NULL, NULL); if (r != 1) break; } if (ifname != NULL) { ifo->options &= ~DHCPCD_WAITOPTS; ifo->options |= wait_opts; } finish_config(ifo); return r; } void free_options(struct dhcpcd_ctx *ctx, struct if_options *ifo) { size_t i; struct dhcp_opt *opt; struct vivco *vo; #ifdef AUTH struct token *token; #endif if (ifo) { if (ifo->environ) { i = 0; while (ifo->environ[i]) free(ifo->environ[i++]); free(ifo->environ); } if (ifo->config) { i = 0; while (ifo->config[i]) free(ifo->config[i++]); free(ifo->config); } rt_headclear0(ctx, &ifo->routes, AF_UNSPEC); if (ifo->script != default_script) free(ifo->script); free(ifo->arping); free(ifo->blacklist); free(ifo->fallback); for (opt = ifo->dhcp_override; ifo->dhcp_override_len > 0; opt++, ifo->dhcp_override_len--) free_dhcp_opt_embenc(opt); free(ifo->dhcp_override); for (opt = ifo->nd_override; ifo->nd_override_len > 0; opt++, ifo->nd_override_len--) free_dhcp_opt_embenc(opt); free(ifo->nd_override); for (opt = ifo->dhcp6_override; ifo->dhcp6_override_len > 0; opt++, ifo->dhcp6_override_len--) free_dhcp_opt_embenc(opt); free(ifo->dhcp6_override); for (vo = ifo->vivco; ifo->vivco_len > 0; vo++, ifo->vivco_len--) free(vo->data); free(ifo->vivco); for (opt = ifo->vivso_override; ifo->vivso_override_len > 0; opt++, ifo->vivso_override_len--) free_dhcp_opt_embenc(opt); free(ifo->vivso_override); #if defined(INET6) && !defined(SMALL) for (; ifo->ia_len > 0; ifo->ia_len--) free(ifo->ia[ifo->ia_len - 1].sla); #endif free(ifo->ia); #ifdef AUTH while ((token = TAILQ_FIRST(&ifo->auth.tokens))) { TAILQ_REMOVE(&ifo->auth.tokens, token, next); if (token->realm_len) free(token->realm); free(token->key); free(token); } #endif free(ifo); } }
23.935931
80
0.575847
8616e964e7d078f0a2655afa63ad591b152b30d5
1,962
c
C
mgmt/mgmt_hw.c
SoulInfernoDE/mt7610u_wifi_sta_v3002_dpo_20130916
d020d81ecbbb6fe0eb914bc5017ab369b1372556
[ "MIT" ]
151
2015-12-09T07:02:37.000Z
2022-03-31T10:02:40.000Z
mgmt/mgmt_hw.c
yangbo/mt7610u_wifi_sta
c271ef4bb9ad6d9f99196fd62ffc2356d9eea6ba
[ "MIT" ]
47
2015-09-09T16:55:59.000Z
2022-03-28T02:24:24.000Z
mgmt/mgmt_hw.c
yangbo/mt7610u_wifi_sta
c271ef4bb9ad6d9f99196fd62ffc2356d9eea6ba
[ "MIT" ]
85
2015-04-26T12:20:57.000Z
2020-07-17T09:00:41.000Z
/* ************************************************************************* * Ralink Tech Inc. * 5F., No.36, Taiyuan St., Jhubei City, * Hsinchu County 302, * Taiwan, R.O.C. * * (c) Copyright 2002-2010, Ralink Technology, Inc. * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * * *************************************************************************/ #include <rt_config.h> INT dev_adjust_radio(RTMP_ADAPTER *pAd) { struct hw_setting *hw_cfg = &pAd->hw_cfg, new_cfg; NdisZeroMemory(&new_cfg, sizeof(struct hw_setting)); /* For all wdev, find the maximum inter-set */ if (hw_cfg->bbp_bw != new_cfg.bbp_bw) { rtmp_bbp_set_bw(pAd, new_cfg.bbp_bw); hw_cfg->bbp_bw = new_cfg.bbp_bw; } if (hw_cfg->cent_ch != new_cfg.cent_ch) { UCHAR ext_ch = EXTCHA_NONE; rtmp_bbp_set_ctrlch(pAd, ext_ch); rtmp_mac_set_ctrlch(pAd, ext_ch); } return TRUE; }
33.254237
75
0.510703
1444cbd884df90f9b7a14c63154e3db42320029a
2,586
h
C
vegastrike/src/gfx/vid_file.h
Ezeer/VegaStrike_win32FR
75891b9ccbdb95e48e15d3b4a9cd977955b97d1f
[ "MIT" ]
null
null
null
vegastrike/src/gfx/vid_file.h
Ezeer/VegaStrike_win32FR
75891b9ccbdb95e48e15d3b4a9cd977955b97d1f
[ "MIT" ]
null
null
null
vegastrike/src/gfx/vid_file.h
Ezeer/VegaStrike_win32FR
75891b9ccbdb95e48e15d3b4a9cd977955b97d1f
[ "MIT" ]
null
null
null
// //C++ Interface: vid_file // #ifndef __VID_FILE_H__INCLUDED__ #define __VID_FILE_H__INCLUDED__ #include <string> #include <vsfilesystem.h> #include <exception> class VidFileImpl; class VidFile { public: class Exception : public std::exception { private: std::string _message; public: Exception() {} Exception( const Exception &other ) : _message( other._message ) {} explicit Exception( const std::string &message ) : _message( message ) {} virtual ~Exception() throw () {} virtual const char * what() const throw () { return _message.c_str(); } }; class UnsupportedCodecException : public Exception { public: UnsupportedCodecException() {} UnsupportedCodecException( const UnsupportedCodecException &other ) : Exception( other ) {} explicit UnsupportedCodecException( const std::string &message ) : Exception( message ) {} }; class FileOpenException : public Exception { public: FileOpenException() {} FileOpenException( const FileOpenException &other ) : Exception( other ) {} explicit FileOpenException( const std::string &message ) : Exception( message ) {} }; class FrameDecodeException : public Exception { public: FrameDecodeException() {} FrameDecodeException( const FrameDecodeException &other ) : Exception( other ) {} explicit FrameDecodeException( const std::string &message ) : Exception( message ) {} }; class EndOfStreamException : public Exception { public: EndOfStreamException() {} EndOfStreamException( const EndOfStreamException &other ) : Exception( other ) {} explicit EndOfStreamException( const std::string &message ) : Exception( message ) {} }; public: VidFile() throw (); ~VidFile(); bool isOpen() const throw (); void open( const std::string &path, size_t maxDimension = 65535, bool forcePOT = false ) throw (Exception); void close() throw (); /** Seeks to the specified time * @Returns true if frame changed, false otherwise. * @Throws EndOfStreamException when time lays past the end. * @Throws FrameDecodeException when an error occurs during frame decode. */ bool seek( float time ) throw (Exception); float getFrameRate() const throw (); float getDuration() const throw (); int getWidth() const throw (); int getHeight() const throw (); void * getFrameBuffer() const throw (); int getFrameBufferStride() const throw (); private: VidFileImpl *impl; }; #endif //__VID_FILE_H__INCLUDED__
29.386364
111
0.673627
886559af766f6972d5ffce8cc425073ac6a97ed1
15,081
h
C
rEFIt_UEFI/cpp_lib/XmlLiteDictTypes.h
crazyinsanejames/CloverBootloader
799880e95aaa2783f27373e91837fc105352e82f
[ "BSD-2-Clause" ]
1
2022-03-18T16:46:31.000Z
2022-03-18T16:46:31.000Z
rEFIt_UEFI/cpp_lib/XmlLiteDictTypes.h
crazyinsanejames/CloverBootloader
799880e95aaa2783f27373e91837fc105352e82f
[ "BSD-2-Clause" ]
null
null
null
rEFIt_UEFI/cpp_lib/XmlLiteDictTypes.h
crazyinsanejames/CloverBootloader
799880e95aaa2783f27373e91837fc105352e82f
[ "BSD-2-Clause" ]
null
null
null
/* * * Copyright (c) 2020 Jief * All rights reserved. * */ #include "../cpp_foundation/XToolsCommon.h" #ifndef XmlLiteDictTypes_h #define XmlLiteDictTypes_h #include <stdio.h> #include "XmlLiteSimpleTypes.h" #include "XmlLiteDictTypes.h" #if defined(_MSC_VER) && !defined(__PRETTY_FUNCTION__) #define __PRETTY_FUNCTION__ __FUNCSIG__ #endif class XmlDictField { public: const char* m_name; XmlAbstractType& xmlAbstractType; XmlDictField(const char* name, XmlAbstractType& XmlAbstractType) : m_name(name), xmlAbstractType(XmlAbstractType) {}; }; class XmlDict : public XmlAbstractType { using super = XmlAbstractType; public: XmlDict() : super() {}; ~XmlDict() {}; virtual const char* getDescription() override { return "dict"; }; virtual void reset() override; virtual void getFields(XmlDictField** fields, size_t* nb) { *fields = NULL; *nb = 0; }; virtual XBool isTheNextTag(XmlLiteParser* xmlLiteParser) override { return xmlLiteParser->nextTagIsOpeningTag("dict"); } virtual XmlAbstractType& parseValueFromXmlLite(XmlLiteParser* xmlLiteParser, const XString8& xmlPath, XBool generateErrors, const XmlParserPosition &keyPos, const char *keyValue, size_t keyValueLength, XBool* keyFound); virtual XmlAbstractType& parseKeyAndValueFromXmlLite(XmlLiteParser* xmlLiteParser, const XString8& xmlPath, XBool generateErrors, const char** keyValuePtr, size_t* keyValueLengthPtr); virtual XBool parseFromXmlLite(XmlLiteParser* xmlLiteParser, const XString8& xmlPath, XBool generateErrors) override; virtual XBool validate(XmlLiteParser* xmlLiteParser, const XString8& xmlPath, const XmlParserPosition& keyPos, XBool generateErrors) override; }; template<class XmlKeyClass, class XmlValueClass, typename T = void> class XmlAddKey : public XmlValueClass { using super = XmlValueClass; private: XmlKeyClass m_key = XmlKeyClass(); // using ValueType = MyXmlAddKey<XmlClass>; public: using keyType = XmlKeyClass; // virtual void setKey(const char* keyValue, size_t keyValueLength) { // m_key.strncpy(keyValue, keyValueLength); // } // XmlKeyClass& key() { return m_key; } const XmlKeyClass& xmlKey() const { return m_key; } decltype(m_key.value()) key() const { return m_key.value(); } void setKey(const XmlKeyClass& aKey) { // if ( aKey.isEmpty() ) { // log_technical_bug("%s : aKey.length() == 0", __PRETTY_FUNCTION__); // } m_key = aKey; } // const XmlClass& value() const { return value(); } }; template<class XmlKeyType, class XmlValueType, class ValueType> class _XmlRepeatingDict : public XmlAbstractType { using super = XmlAbstractType; protected: using ValueArrayType = XObjArray<ValueType>; // XString8Array keyArray; XmlKeyType keyTmp = XmlKeyType(); ValueArrayType m_valueArray = ValueArrayType(); public: XBool ignoreCommented = true; _XmlRepeatingDict() : super() {}; ~_XmlRepeatingDict() {}; virtual const char* getDescription() override { return "dict"; }; virtual void reset() override { super::reset(); m_valueArray.setEmpty(); }; virtual XmlValueType* getNewInstance() { return new XmlValueType; } const ValueArrayType& valueArray() const { if ( !isDefined() ) panic("%s : value is not defined", __PRETTY_FUNCTION__); return m_valueArray; } virtual void addValue(XmlValueType* xmlValueType) = 0; virtual void getFields(XmlDictField** fields, size_t* nb) { panic("BUG : repeating dict don't use getFields()"); }; virtual XBool isTheNextTag(XmlLiteParser* xmlLiteParser) override { return xmlLiteParser->nextTagIsOpeningTag("dict"); } // virtual XmlAbstractType& parseValueFromXmlLite(XmlLiteParser* xmlLiteParser, const XString8& xmlPath, XBool generateErrors, const XmlParserPosition &keyPos, const char *keyValue, size_t keyValueLength, XBool* keyFound); virtual XmlValueType* parseKeyAndValueFromXmlLite(XmlLiteParser* xmlLiteParser, const XString8& xmlPath, XBool generateErrors); virtual XBool parseFromXmlLite(XmlLiteParser* xmlLiteParser, const XString8& xmlPath, XBool generateErrors) override; // virtual XBool validate(XmlLiteParser* xmlLiteParser, const XString8& xmlPath, const XmlParserPosition& keyPos, XBool generateErrors) override; }; template<class XmlKeyType, class XmlValueType, class ValueType> XmlValueType* _XmlRepeatingDict<XmlKeyType, XmlValueType, ValueType>::parseKeyAndValueFromXmlLite(XmlLiteParser* xmlLiteParser, const XString8& xmlPath, XBool generateErrors) { keyTmp.reset(); if ( keyTmp.parseFromXmlLite(xmlLiteParser, xmlPath, generateErrors) ) { XmlValueType* newValue = getNewInstance(); if ( newValue->parseFromXmlLite(xmlLiteParser, xmlPath, generateErrors) ) { return newValue; } } return NULL; // const char* tag; // size_t tagLength; // // XmlParserPosition pos = xmlLiteParser->getPosition(); // if ( !xmlLiteParser->getSimpleTag(&tag, &tagLength, keyValuePtr, keyValueLengthPtr, NULL, generateErrors) ) { // return NULL; // } // if ( !strnIsEqual(tag, tagLength, "key") ) { // xmlLiteParser->addXmlError(generateErrors, S8Printf("Expecting a <key> tag in '%s' at line %d.", xmlPath.c_str(), pos.getLine())); // return NULL; // } // XmlValueType* kv = getNewInstance(); // if ( kv->parseFromXmlLite(xmlLiteParser, xmlPath, generateErrors) ) { // return kv; // } // delete kv; // return NULL; } template<class XmlKeyType, class XmlValueType, class ValueType> XBool _XmlRepeatingDict<XmlKeyType, XmlValueType, ValueType>::parseFromXmlLite(XmlLiteParser* xmlLiteParser, const XString8& xmlPath, XBool generateErrors) { WARNING_IF_DEFINED; RETURN_IF_FALSE ( xmlLiteParser->consumeOpeningTag("dict", generateErrors) ); setDefined(); #ifdef JIEF_DEBUG if ( xmlPath.startWithOrEqualToIC("/Devices/Properties"_XS8) ) { int i=0; (void)i; } #endif // const char* keyValue; // size_t keyValueLength; // XString8 xmlSubPath; size_t n = 0; while ( !xmlLiteParser->nextTagIsClosingTag("dict") ) { // RETURN_IF_FALSE( xmlLiteParser->getKeyTagValue(&keyValue, &keyValueLength, &keyPos, true) ); // xmlSubPath = xmlPath; // xmlSubPath.S8Catf("/%.*s", (int)keyValueLength, keyValue); // #ifdef JIEF_DEBUG XmlParserPosition valuePos = xmlLiteParser->getPosition(); (void)valuePos; #endif // XBool keyFound; // XmlAbstractType& xmlAbstractType = parseValueFromXmlLite(xmlLiteParser, xmlSubPath, generateErrors, keyPos, keyValue, keyValueLength, &keyFound); XmlParserPosition keyPos = xmlLiteParser->getPosition(); XString8 xmlSubPath = xmlPath; xmlSubPath.S8Catf("[%zu]", n); XmlValueType* xmlValueType = parseKeyAndValueFromXmlLite(xmlLiteParser, xmlSubPath, generateErrors); // key goes in keyTmp if ( xmlLiteParser->xmlParsingError ) { return false; } if ( keyTmp.value().length() > 0 ) { if ( !( keyTmp.value()[0] == '#' && ignoreCommented ) ) { if ( xmlValueType != NULL ) { if ( !xmlValueType->isDefined() ) panic("BUG: parseKeyAndValueFromXmlLite must not return an undefined item"); XBool validated = xmlValueType->validate(xmlLiteParser, S8Printf("%s/%s", xmlPath.c_str(), keyTmp.value().c_str()), keyPos, generateErrors); if ( validated ) { xmlValueType->setKey(keyTmp); addValue(xmlValueType); } }else{ // wrong value. Let's try to ignore and continue } }else{ // Commented out. } }else{ xmlLiteParser->addWarning(generateErrors, S8Printf("Empty key, following value is ignored at line %d", keyPos.getLine())); // if !xmlAbstractType.isDefined(), it's because a unknown key, or a comment. // Just try to continue. } ++n; } RETURN_IF_FALSE ( xmlLiteParser->consumeClosingTag("dict", generateErrors) ); return true; } // //template <class _Tp> struct _XmlRepeatingDict_has_ValueType { typedef void Typp; }; // //template<class XmlValueType, typename T = void> //class XmlRepeatingDict : public _XmlRepeatingDict<XmlValueType, XmlValueType> //{ // using super = _XmlRepeatingDict<XmlValueType, XmlValueType>; // // virtual void addValue(XmlValueType* xmlValueType) { // super::arrayValue().AddReference(xmlValueType, true); // } //}; // //template<class XmlValueType> //class XmlRepeatingDict<XmlValueType, typename _XmlRepeatingDict_has_ValueType<typename XmlValueType::ValueType>::Typp> : public _XmlRepeatingDict<XmlValueType, typename XmlValueType::ValueType> //{ // using super = _XmlRepeatingDict<XmlValueType, typename XmlValueType::ValueType>; // // virtual void addValue(XmlValueType* xmlValueType) { // super::arrayValue().AddCopy(xmlValueType->value()); // delete xmlValueType; // TODO improve to avoid memory allocation. At least use stealValueFrom // } //}; // // // // template <class _Tp> _Tp&& __declval(int); template <class _Tp> _Tp __declval(long); template <class _Tp> decltype(__declval<_Tp>(0)) declval() ; template<typename T> struct HasUsedMemoryMethod { template<typename U, size_t (U::*)() const> struct SFINAE {}; template<typename U> static char Test(SFINAE<U, &U::setKey>*); template<typename U> static int Test(...); static const bool Has = sizeof(Test<T>(0)) == sizeof(char); }; template <class _Tp> struct __xmldict__declare_void { typedef void Typp; }; template<class XmlAddKeyType> class XmlRepeatingDict : public _XmlRepeatingDict<typename XmlAddKeyType::keyType, XmlAddKeyType, XmlAddKeyType> { using super = _XmlRepeatingDict<typename XmlAddKeyType::keyType, XmlAddKeyType, XmlAddKeyType>; virtual void addValue(XmlAddKeyType* xmlValueType) { super::m_valueArray.AddReference(xmlValueType, true); } }; // //template<class XmkKeyType, class XmlValueType, typename T = void, typename U = void> //class XmlRepeatingDict : public _XmlRepeatingDict<XmkKeyType, XmlValueType, XmlValueType> //{ //// using super = _XmlRepeatingDict<XmlValueType, XmlValueType>; ////public: //// virtual void addValue(XmlValueType* xmlValueType, const char* keyValue, size_t keyLength) { //// super::valueArray.AddReference(xmlValueType, true); //// } //}; template<class XmkKeyType, class XmlValueType> class XmlRepeatingDict<XmlAddKey<XmkKeyType, XmlValueType>> : public _XmlRepeatingDict<XmkKeyType, XmlAddKey<XmkKeyType, XmlValueType>, XmlAddKey<XmkKeyType, XmlValueType>> { using super = _XmlRepeatingDict<XmkKeyType, XmlAddKey<XmkKeyType, XmlValueType>, XmlAddKey<XmkKeyType, XmlValueType>>; //public: virtual void addValue(XmlAddKey<XmkKeyType, XmlValueType>* xmlValueType) { super::m_valueArray.AddReference(xmlValueType, true); } }; // //template<class XmlValueType> //class XmlRepeatingDict<XmlValueType, // typename __xmldict__declare_void<typename XmlValueType::ValueType>::Typp // > // : public _XmlRepeatingDict<XmlValueType, typename XmlValueType::ValueType> //{ // using super = _XmlRepeatingDict<XmlValueType, typename XmlValueType::ValueType>; //// decltype(declval<XmlValueType>().setKey()) a; // // virtual void addValue(XmlValueType* xmlValueType, const char* keyValue, size_t keyLength) { // super::valueArray.AddCopy(xmlValueType->value(), true); // delete xmlValueType; // } //}; // // //template<class XmlClass> //class XmlAddKey<XmlClass, typename __xmldict__declare_void<typename XmlClass::ValueType>::Typp> : public XmlClass //{ // using super = XmlClass; // private: // XString8 m_key; //// using ValueType = MyXmlAddKey<XmlClass>; // // public: // virtual void setKey(const char* keyValue, size_t keyValueLength) { // m_key.strncpy(keyValue, keyValueLength); // } // const XString8& key() const { return m_key; } // const typename XmlClass::ValueType& value() const { return super::value(); } // //// template<class OtherXStringArrayClass> //// XBool operator ==(const OtherXStringArrayClass &aXStrings) const { return super::operator ==(aXStrings); } //// template<class OtherXStringArrayClass> //// XBool operator !=(const OtherXStringArrayClass &aXStrings) const { return super::operator !=(aXStrings); } // //}; // // // // // //template<class XmlValueType, typename T = void, typename U = void> //class XmlRepeatingDict : public _XmlRepeatingDict<XmlValueType, XmlValueType> //{ // using super = _XmlRepeatingDict<XmlValueType, XmlValueType>; //public: // virtual void addValue(XmlValueType* xmlValueType, const char* keyValue, size_t keyLength) { // super::arrayValue().AddReference(xmlValueType, true); // } //}; // //template<class XmlValueType> //class XmlRepeatingDict<XmlValueType, // typename __xmldict__declare_void<typename XmlValueType::ValueType>::Typp // > // : public _XmlRepeatingDict<XmlAddKey<XmlValueType>, XmlAddKey<XmlValueType>> //{ // using super = _XmlRepeatingDict<XmlAddKey<XmlValueType>, XmlAddKey<XmlValueType>>; //// decltype(declval<XmlValueType>().setKey()) a; // // virtual void addValue(XmlAddKey<XmlValueType>* xmlValueType, const char* keyValue, size_t keyLength) { //// super::arrayValue().AddCopy(xmlValueType->value()); //// delete xmlValueType; // TODO improve to avoid memory allocation. At least use stealValueFrom // xmlValueType->setKey(keyValue, keyLength); // super::valueArray.AddReference(xmlValueType, true); // } //}; // //// ////template<class XmlValueType> ////class XmlRepeatingDict<XmlAddKey<XmlValueType>> //// : public _XmlRepeatingDict<XmlAddKey<XmlValueType>, XmlAddKey<XmlValueType>> ////{ //// using super = _XmlRepeatingDict<XmlAddKey<XmlValueType>, XmlAddKey<XmlValueType>>; ////public: //// ////// decltype(declval<XmlValueType>().setKey()) a; //// XString8Array keyArray = XString8Array(); //// //// virtual void addValue(XmlAddKey<XmlValueType>* xmlValueType, const char* keyValue, size_t keyLength) { //// xmlValueType->setKey(keyValue, keyLength); //// super::valueArray.AddReference(xmlValueType, true); //// } ////}; //// //// // // // //// //// ////template<class XmlValueType> ////class XmlRepeatingDict<XmlValueType, //// typename __xmldict__declare_void<typename XmlValueType::ValueType>::Typp, //// typename __xmldict__declare_void<decltype(XmlValueType().setKey(declval<const char*>(), declval<size_t>()))>::Typp //// > //// : public _XmlRepeatingDict<XmlValueType, typename XmlValueType::ValueType> ////{ //// using super = _XmlRepeatingDict<XmlValueType, typename XmlValueType::ValueType>; ////public: //// ////// decltype(declval<XmlValueType>().setKey()) a; //// XString8Array keyArray = XString8Array(); //// //// virtual void addValue(XmlValueType* xmlValueType, const char* keyValue, size_t keyLength) { ////// super::arrayValue().AddCopy(xmlValueType->value()); ////// keyArray.Add(); //// delete xmlValueType; // TODO improve to avoid memory allocation. At least use stealValueFrom //// } ////}; //// // #endif /* XmlLiteCompositeTypes_h */
34.58945
223
0.710629
bb238ebeba42427a31b883a9ac25563f5cda97dd
25,907
c
C
source/libio.c
macmade/CLibs
0931d64beacbf3d1b96170dee1ace7a0d19885c9
[ "BSL-1.0" ]
1
2020-08-03T17:09:30.000Z
2020-08-03T17:09:30.000Z
source/libio.c
macmade/CLibs
0931d64beacbf3d1b96170dee1ace7a0d19885c9
[ "BSL-1.0" ]
null
null
null
source/libio.c
macmade/CLibs
0931d64beacbf3d1b96170dee1ace7a0d19885c9
[ "BSL-1.0" ]
1
2018-10-17T08:50:19.000Z
2018-10-17T08:50:19.000Z
/******************************************************************************* * Copyright (c) 2010, Jean-David Gadina - www.xs-labs.com * Distributed under the Boost Software License, Version 1.0. * * Boost Software License - Version 1.0 - August 17th, 2003 * * Permission is hereby granted, free of charge, to any person or organization * obtaining a copy of the software and accompanying documentation covered by * this license (the "Software") to use, reproduce, display, distribute, * execute, and transmit the Software, and to prepare derivative works of the * Software, and to permit third-parties to whom the Software is furnished to * do so, all subject to the following: * * The copyright notices in the Software and this entire statement, including * the above license grant, this restriction and the following disclaimer, * must be included in all copies of the Software, in whole or in part, and * all derivative works of the Software, unless such copies or derivative * works are solely in the form of machine-executable object code generated by * a source language processor. * * 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, TITLE AND NON-INFRINGEMENT. IN NO EVENT * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. ******************************************************************************/ /* $Id$ */ /*! * @file libio.c * @copyright (c) 2011 - Jean-David Gadina - www.xs-labs.com * @abstract IO functions */ #include <math.h> #include <stdarg.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> /* Definition of the boolean datatype if not enabled */ #ifndef __bool_true_false_are_defined #define bool _Bool #define true 1 #define false 0 #define __bool_true_false_are_defined 1 #endif #define __LIBIO_INIT( f ) \ if( f->need_init == true ) \ { \ if( f->stdin == true ) \ { \ f->fp = stdin; \ f->need_init = false; \ } \ else if( f->stdout == true ) \ { \ f->fp = stdout; \ f->need_init = false; \ } \ else if( f->stderr == true ) \ { \ f->fp = stderr; \ f->need_init = false; \ } \ } /*! * */ struct libio_file { FILE * fp; char filename[ FILENAME_MAX ]; char mode[ 4 ]; bool writeable; bool readable; bool stdin; bool stdout; bool stderr; bool need_init; uint8_t bit_buffer; uint8_t bit_count; uint8_t bit_offset; struct stat stat_buf; }; /* Default I/O streams */ struct libio_file libio_stdin = { .stdin = true, .need_init = true }; struct libio_file libio_stdout = { .stdout = true, .need_init = true }; struct libio_file libio_stderr = { .stderr = true, .need_init = true }; /* Functions prototypes - stdio replacement */ struct libio_file * libio_fopen( const char * filename, const char * mode ); struct libio_file * libio_freopen( const char * filename, const char * mode, struct libio_file * stream ); int libio_fflush( struct libio_file * stream ); int libio_fclose( struct libio_file * stream ); int libio_fprintf( struct libio_file * stream, const char * format, ... ); int libio_vfprintf( struct libio_file * stream, const char * format, va_list arg ); int libio_fgetc( struct libio_file * stream ); int libio_fputc( int c, struct libio_file * stream ); int libio_fputs( const char * s, struct libio_file * stream ); size_t libio_fread( void * ptr, size_t size, size_t nobj, struct libio_file * stream ); size_t libio_fwrite( const void * ptr, size_t size, size_t nobj, struct libio_file * stream ); int libio_fseek( struct libio_file * stream, long offset, int origin ); long libio_ftell( struct libio_file * stream ); void libio_rewind( struct libio_file * stream ); int libio_fgetpos( struct libio_file * stream, fpos_t * ptr ); int libio_fsetpos( struct libio_file * stream, const fpos_t * ptr ); void libio_clearerr( struct libio_file * stream ); int libio_feof( struct libio_file * stream ); int libio_ferror( struct libio_file * stream ); /* Functions prototypes - Add-ons */ const char * fname( struct libio_file * stream ); const char * fmode( struct libio_file * stream ); bool freadable( struct libio_file * stream ); bool fwriteable( struct libio_file * stream ); bool fcopy( char * name, char * new_name ); int fgetbit( struct libio_file * stream ); int fputbit( struct libio_file * stream, uint8_t bit ); int fgetbits( struct libio_file * stream, unsigned int count ); int fputbits( struct libio_file * stream, uint64_t bits, unsigned int count ); /* Functions prototypes - Stat related functions */ dev_t fdevid( struct libio_file * stream ); ino_t finoid( struct libio_file * stream ); nlink_t fnlink( struct libio_file * stream ); uid_t fuid( struct libio_file * stream ); gid_t fgid( struct libio_file * stream ); size_t fsize( struct libio_file * stream ); double fhsize( struct libio_file * stream, char unit[] ); time_t fatime( struct libio_file * stream ); time_t fmtime( struct libio_file * stream ); time_t fctime( struct libio_file * stream ); bool fblock( struct libio_file * stream ); bool fchar( struct libio_file * stream ); bool ffifo( struct libio_file * stream ); bool freg( struct libio_file * stream ); bool fdir( struct libio_file * stream ); bool flink( struct libio_file * stream ); bool fsock( struct libio_file * stream ); bool fuser_rwx( struct libio_file * stream ); bool fuser_r( struct libio_file * stream ); bool fuser_w( struct libio_file * stream ); bool fuser_x( struct libio_file * stream ); bool fgroup_rwx( struct libio_file * stream ); bool fgroup_r( struct libio_file * stream ); bool fgroup_w( struct libio_file * stream ); bool fgroup_x( struct libio_file * stream ); bool fother_rwx( struct libio_file * stream ); bool fother_r( struct libio_file * stream ); bool fother_w( struct libio_file * stream ); bool fother_x( struct libio_file * stream ); bool fsuid( struct libio_file * stream ); bool fsgid( struct libio_file * stream ); /* Private functions */ static void __libio_write_align( struct libio_file * stream ); static void __libio_update_stat( struct libio_file * stream ); static void __libio_write_align( struct libio_file * stream ) { if( stream->bit_count > 0 ) { fputc( stream->bit_buffer, stream->fp ); } stream->bit_count = 0; stream->bit_buffer = 0; stream->bit_offset = 0; } static void __libio_update_stat( struct libio_file * stream ) { stat( stream->filename, &( stream->stat_buf ) ); } /*! * Opens file named filename and returns a stream, or NULL on failure. * Mode may be one of the following for text files: * * - "r" text reading * - "w" text writing * - "a" text append * - "r+" text update (reading and writing) * - "w+" text update discarding previous content (if any) * - "a+" text append, reading, and writing at end * * or one of those strings with b included (after the first character), * for binary files. */ struct libio_file * libio_fopen( const char * filename, const char * mode ) { FILE * fp; struct libio_file * stream; if( NULL == ( fp = fopen( filename, mode ) ) ) { return NULL; } if( NULL == ( stream = malloc( sizeof( struct libio_file ) ) ) ) { return NULL; } stream->fp = fp; memset( stream->filename, 0, FILENAME_MAX ); memset( stream->mode, 0, 4 ); memset( &( stream->stat_buf ), 0, sizeof( struct stat ) ); strcpy( stream->filename, filename ); strncpy( stream->mode, mode, 3 ); __libio_update_stat( stream ); stream->need_init = false; stream->bit_buffer = 0; stream->bit_count = 0; stream->bit_offset = 0; stream->readable = false; stream->writeable = false; if( strncmp( mode, "r", 1 ) == 0 ) { stream->readable = true; stream->writeable = ( strlen( mode ) > 1 && strncmp( mode + 1, "+", 1 ) ) ? true : false; } else if( strncmp( mode, "w", 1 ) == 0 ) { stream->readable = ( strlen( mode ) > 1 && strncmp( mode + 1, "+", 1 ) ) ? true : false;; stream->writeable = true; } else if( strncmp( mode, "a", 1 ) == 0 ) { stream->readable = ( strlen( mode ) > 1 && strncmp( mode + 1, "+", 1 ) ) ? true : false;; stream->writeable = true; } return stream; } /*! * Flushes stream stream and returns zero on success or EOF on error. * Effect undefined for input stream. fflush( NULL ) flushes all output * streams. */ int libio_fflush( struct libio_file * stream ) { __LIBIO_INIT( stream ); return fflush( stream->fp ); } /*! * Closes stream stream (after flushing, if output stream). Returns EOF on * error, zero otherwise. */ int libio_fclose( struct libio_file * stream ) { int res; __libio_write_align( stream ); res = fclose( stream->fp ); free( stream ); return res; } /*! * Converts (according to format format) and writes output to stream stream. * Number of characters written, or negative value on error, is returned. * Conversion specifications consist of: * * - % * - (optional) flag: * * - left adjust * + always sign * space space if no sign * 0 zero pad * # Alternate form: for conversion character o, first digit will * be zero, for [xX], prefix 0x or 0X to non-zero value, for * [eEfgG], always decimal point, for [gG] trailing zeros not * removed. * * - (optional) minimum width: if specified as *, value taken from next * argument (which must be int). * - (optional) . (separating width from precision): * - (optional) precision: for conversion character s, maximum characters * to be printed from the string, for [eEf], digits after decimal * point, for [gG], significant digits, for an integer, minimum number * of digits to be printed. If specified as *, value taken from next * argument (which must be int). * - (optional) length modifier: * * h short or unsigned short * l long or unsigned long * L long double * * conversion character: * * d,i int argument, printed in signed decimal notation * o int argument, printed in unsigned octal notation * x,X int argument, printed in unsigned hexadecimal notation * u int argument, printed in unsigned decimal notation * c int argument, printed as single character * s char* argument * f double argument, printed with format [-]mmm.ddd * e,E double argument, printed with format [-]m.dddddd(e|E)(+|-)xx * g,G double argument * p void * argument, printed as pointer * n int * argument : the number of characters written to this * point is written into argument * % no argument; prints % */ int libio_fprintf( struct libio_file * stream, const char * format, ... ) { int res; va_list arg; __LIBIO_INIT( stream ); __libio_write_align( stream ); va_start( arg, format ); res = vfprintf( stream->fp, format, arg ); va_end( arg ); return res; } /*! * Equivalent to fprintf with variable argument list replaced by arg, which must * have been initialised by the va_start macro (and may have been used in calls * to va_arg). */ int libio_vfprintf( struct libio_file * stream, const char * format, va_list arg ) { __LIBIO_INIT( stream ); __libio_write_align( stream ); return vfprintf( stream->fp, format, arg ); } /*! * Returns next character from (input) stream stream, or EOF on end-of-file * or error. */ int libio_fgetc( struct libio_file * stream ) { __LIBIO_INIT( stream ); return fgetc( stream->fp ); } /*! * Writes c, to stream stream. Returns c, or EOF on error. */ int libio_fputc( int c, struct libio_file * stream ) { __LIBIO_INIT( stream ); __libio_write_align( stream ); return fputc( c, stream->fp ); } /*! * Writes s, to (output) stream stream. Returns non-negative on success or * EOF on error. */ int libio_fputs( const char * s, struct libio_file * stream ) { __LIBIO_INIT( stream ); __libio_write_align( stream ); return fputs( s, stream->fp ); } /*! * Reads (at most) nobj objects of size size from stream stream into ptr and * returns number of objects read. (feof and ferror can be used to check * status.) */ size_t libio_fread( void * ptr, size_t size, size_t nobj, struct libio_file * stream ) { __LIBIO_INIT( stream ); return fread( ptr, size, nobj, stream->fp ); } /*! * Writes to stream stream, nobj objects of size size from array ptr. * Returns number of objects written. */ size_t libio_fwrite( const void * ptr, size_t size, size_t nobj, struct libio_file * stream ) { __LIBIO_INIT( stream ); __libio_write_align( stream ); return fwrite( ptr, size, nobj, stream->fp ); } /*! * Sets file position for stream stream and clears end-of-file indicator. * For a binary stream, file position is set to offset bytes from the * position indicated by origin: beginning of file for SEEK_SET, current * position for SEEK_CUR, or end of file for SEEK_END. Behaviour is similar * for a text stream, but offset must be zero or, for SEEK_SET only, a value * returned by ftell. * Returns non-zero on error. */ int libio_fseek( struct libio_file * stream, long offset, int origin ) { __LIBIO_INIT( stream ); return fseek( stream->fp, offset, origin ); } /*! * Returns current file position for stream stream, or -1 on error. */ long libio_ftell( struct libio_file * stream ) { __LIBIO_INIT( stream ); return ftell( stream->fp ); } /*! * Equivalent to fseek( stream, 0L, SEEK_SET ); clearerr( stream ). */ void libio_rewind( struct libio_file * stream ) { __LIBIO_INIT( stream ); rewind( stream->fp ); } /*! * Stores current file position for stream stream in * ptr. * Returns non-zero on error. */ int libio_fgetpos( struct libio_file * stream, fpos_t * ptr ) { __LIBIO_INIT( stream ); return fgetpos( stream->fp, ptr ); } /*! * Sets current position of stream stream to * ptr. * Returns non-zero on error. */ int libio_fsetpos( struct libio_file * stream, const fpos_t * ptr ) { __LIBIO_INIT( stream ); return fsetpos( stream->fp, ptr ); } /*! * Clears end-of-file and error indicators for stream stream. */ void libio_clearerr( struct libio_file * stream ) { __LIBIO_INIT( stream ); clearerr( stream->fp ); } /*! * Returns non-zero if end-of-file indicator is set for stream stream. */ int libio_feof( struct libio_file * stream ) { __LIBIO_INIT( stream ); return feof( stream->fp ); } /*! * Returns non-zero if error indicator is set for stream stream. */ int libio_ferror( struct libio_file * stream ) { __LIBIO_INIT( stream ); return ferror( stream->fp ); } /*! * Gets the filename associated to the stream- */ const char * fname( struct libio_file * stream ) { __LIBIO_INIT( stream ); if( stream->stdin == true ) { return "stdin"; } else if( stream->stdout == true ) { return "stdout"; } else if( stream->stderr == true ) { return "stderr"; } else { return stream->filename; } } /*! * Gets the stream's open mode */ const char * fmode( struct libio_file * stream ) { __LIBIO_INIT( stream ); if( stream->stdin == true ) { return "r"; } else if( stream->stdout == true ) { return "a"; } else if( stream->stderr == true ) { return "a"; } else { return stream->mode; } } /*! * Returns true if the file is readable */ bool freadable( struct libio_file * stream ) { __LIBIO_INIT( stream ); if( stream->stdin == true ) { return true; } else if( stream->stdout == true ) { return false; } else if( stream->stderr == true ) { return false; } else { return stream->readable; } } /*! * Returns true if the file is writeable */ bool fwriteable( struct libio_file * stream ) { __LIBIO_INIT( stream ); if( stream->stdin == true ) { return false; } else if( stream->stdout == true ) { return true; } else if( stream->stderr == true ) { return true; } else { return stream->writeable; } } /*! * Copies a file to another destination. */ bool fcopy( char * name, char * new_name ) { FILE * fp1; FILE * fp2; size_t length; unsigned char buffer[ 1024 ]; if( NULL == ( fp1 = fopen( name, "rb" ) ) ) { return false; } if( NULL == ( fp2 = fopen( name, "wb" ) ) ) { fclose( fp1 ); return false; } while( ( length = fread( buffer, sizeof( unsigned char ), 1024, fp1 ) ) ) { if( fwrite( buffer, sizeof( unsigned char ), length, fp2 ) != length ) { fclose( fp1 ); fclose( fp2 ); remove( new_name ); return false; } } fclose( fp1 ); fclose( fp2 ); return true; } /*! * Gets the next bit in the stream */ int fgetbit( struct libio_file * stream ) { if( stream->readable == false ) { return 0; } stream->bit_offset++; stream->bit_offset++; if( stream->bit_offset > 8 ) { if( fread( &( stream->bit_buffer ), sizeof( char ), 1, stream->fp ) != 1 ) { stream->bit_offset = 1; return -1; } } return ( stream->bit_buffer >> ( 8 - stream->bit_offset ) & 1 ); } /*! * Writes a bit in the stream */ int fputbit( struct libio_file * stream, uint8_t bit ) { if( stream->writeable == false ) { return -1; } stream->bit_buffer |= ( stream->bit_buffer << 1 | ( bit & 1 ) ); stream->bit_count += 1; if( stream->bit_count == 8 ) { __libio_write_align( stream ); } return 0; } /*! * Gets bits from the stream */ int fgetbits( struct libio_file * stream, unsigned int count ) { int bits; unsigned int i; if( stream->readable == false ) { return -1; } bits = 0; for( i = 0; i < count; i++ ) { bits |= ( ( bits << 1 ) | fgetbit( stream ) ); } return bits; } /*! * Writes bits to the stream */ int fputbits( struct libio_file * stream, uint64_t bits, unsigned int count ) { unsigned long i; unsigned long bytes; unsigned long bytesF; uint8_t bit; if( stream->writeable == false ) { return -1; } bytesF = floor( count / 8 ); bytes = ( unsigned int )bytesF; count -= bytes * 8; if( bytes > 0 ) { fwrite( &bits, sizeof( uint8_t ), bytes, stream->fp ); } bits &= 0xFF; for( i = 0; i < count; i++ ) { bit = ( uint8_t )( ( uint64_t )bits >> ( ( count - 1 ) - i ) ); fputbit( stream, bit ); } return 0; } /*! * */ dev_t fdevid( struct libio_file * stream ) { return stream->stat_buf.st_dev; } /*! * */ ino_t finoid( struct libio_file * stream ) { return stream->stat_buf.st_ino; } /*! * */ nlink_t fnlink( struct libio_file * stream ) { return stream->stat_buf.st_nlink; } /*! * */ uid_t fuid( struct libio_file * stream ) { return stream->stat_buf.st_uid; } /*! * */ gid_t fgid( struct libio_file * stream ) { return stream->stat_buf.st_gid; } /*! * */ size_t fsize( struct libio_file * stream ) { __libio_update_stat( stream ); return ( size_t )( stream->stat_buf.st_size ); } /*! * */ double fhsize( struct libio_file * stream, char unit[] ) { size_t bytes; double size; bytes = fsize( stream ); memset( unit, 0, 3 ); /* Checks the size range */ if( bytes < 1000000 ) { /* Kilo-Bytes */ size = ( double )bytes / ( double )1000; strcpy( unit, "KB" ); } else if( bytes < 1000000000 ) { /* Mega-Bytes */ size = ( ( double )bytes / ( double )1000 ) / ( double )1000; strcpy( unit, "MB" ); } else { /* Giga-Bytes */ size = ( ( ( double )bytes / ( double )1000 ) / ( double )1000 ) / ( double )1000; strcpy( unit, "GB" ); } return size; } /*! * */ time_t fatime( struct libio_file * stream ) { return stream->stat_buf.st_atime; } /*! * */ time_t fmtime( struct libio_file * stream ) { return stream->stat_buf.st_mtime; } /*! * */ time_t fctime( struct libio_file * stream ) { return stream->stat_buf.st_ctime; } /*! * */ bool fblock( struct libio_file * stream ) { return ( ( ( stream->stat_buf.st_mode & S_IFMT ) == S_IFBLK ) ) ? true : false; } /*! * */ bool fchar( struct libio_file * stream ) { return ( ( ( stream->stat_buf.st_mode & S_IFMT ) == S_IFCHR ) ) ? true : false; } /*! * */ bool ffifo( struct libio_file * stream ) { return ( ( ( stream->stat_buf.st_mode & S_IFMT ) == S_IFIFO ) ) ? true : false; } /*! * */ bool freg( struct libio_file * stream ) { return ( ( ( stream->stat_buf.st_mode & S_IFMT ) == S_IFREG ) ) ? true : false; } /*! * */ bool fdir( struct libio_file * stream ) { return ( ( ( stream->stat_buf.st_mode & S_IFMT ) == S_IFDIR ) ) ? true : false; } /*! * */ bool flink( struct libio_file * stream ) { return ( ( ( stream->stat_buf.st_mode & S_IFMT ) == S_IFLNK ) ) ? true : false; } /*! * */ bool fsock( struct libio_file * stream ) { return ( ( ( stream->stat_buf.st_mode & S_IFMT ) == S_IFSOCK ) ) ? true : false; } /*! * */ bool fuser_r( struct libio_file * stream ) { return ( ( ( stream->stat_buf.st_mode & S_IRWXU ) == S_IRUSR ) ) ? true : false; } /*! * */ bool fuser_w( struct libio_file * stream ) { return ( ( ( stream->stat_buf.st_mode & S_IRWXU ) == S_IWUSR ) ) ? true : false; } /*! * */ bool fuser_x( struct libio_file * stream ) { return ( ( ( stream->stat_buf.st_mode & S_IRWXU ) == S_IXUSR ) ) ? true : false; } /*! * */ bool fgroup_r( struct libio_file * stream ) { return ( ( ( stream->stat_buf.st_mode & S_IRWXG ) == S_IRGRP ) ) ? true : false; } /*! * */ bool fgroup_w( struct libio_file * stream ) { return ( ( ( stream->stat_buf.st_mode & S_IRWXG ) == S_IWGRP ) ) ? true : false; } /*! * */ bool fgroup_x( struct libio_file * stream ) { return ( ( ( stream->stat_buf.st_mode & S_IRWXG ) == S_IXGRP ) ) ? true : false; } /*! * */ bool fother_r( struct libio_file * stream ) { return ( ( ( stream->stat_buf.st_mode & S_IRWXO ) == S_IROTH ) ) ? true : false; } /*! * */ bool fother_w( struct libio_file * stream ) { return ( ( ( stream->stat_buf.st_mode & S_IRWXO ) == S_IWOTH ) ) ? true : false; } /*! * */ bool fother_x( struct libio_file * stream ) { return ( ( ( stream->stat_buf.st_mode & S_IRWXO ) == S_IXOTH ) ) ? true : false; } /*! * */ bool fsuid( struct libio_file * stream ) { return ( stream->stat_buf.st_mode & S_ISUID ) ? true : false; } /*! * */ bool fsgid( struct libio_file * stream ) { return ( stream->stat_buf.st_mode & S_ISGID ) ? true : false; }
25.803785
109
0.560235
63f1d08723707c2d2b70524193bbbda84a1955b6
1,434
h
C
Python/esys/lsm/SphereBodyPrmsPy.h
danielfrascarelli/esys-particle
e56638000fd9c4af77e21c75aa35a4f8922fd9f0
[ "Apache-2.0" ]
null
null
null
Python/esys/lsm/SphereBodyPrmsPy.h
danielfrascarelli/esys-particle
e56638000fd9c4af77e21c75aa35a4f8922fd9f0
[ "Apache-2.0" ]
null
null
null
Python/esys/lsm/SphereBodyPrmsPy.h
danielfrascarelli/esys-particle
e56638000fd9c4af77e21c75aa35a4f8922fd9f0
[ "Apache-2.0" ]
null
null
null
///////////////////////////////////////////////////////////// // // // Copyright (c) 2003-2017 by The University of Queensland // // Centre for Geoscience Computing // // http://earth.uq.edu.au/centre-geoscience-computing // // // // Primary Business: Brisbane, Queensland, Australia // // Licensed under the Open Software License version 3.0 // // http://www.apache.org/licenses/LICENSE-2.0 // // // ///////////////////////////////////////////////////////////// #ifndef ESYS_LSMSPHEREBODYPRMSPY_H #define ESYS_LSMSPHEREBODYPRMSPY_H // --- project includes --- #include "Python/esys/lsm/util/Vec3Py.h" #include "Model/ESphereBodyInteractionGroup.h" // --- STL includes --- #include <string> using namespace esys::lsm; namespace esys { namespace lsm { /*! \class NRotElasticSphereBodyPrmsPy \brief wrapper for CESphereBodyIGP $Revision$ $Date$ */ class NRotElasticSphereBodyPrmsPy : public CESphereBodyIGP { public: NRotElasticSphereBodyPrmsPy( const std::string&, const std::string&, double ); }; void exportSphereBodyPrms(); } // namespace lsm } // namespace esys #endif // ESYS_LSMSPHEREBODYPRMSPY_H
26.555556
63
0.506974
63fd4edfc0ebd4633a27179ae9ca44bd5579cb59
490
c
C
main.c
maxicombina/c-calculator
6a93b0fc381c852d7559b247a0062859c67fec28
[ "MIT" ]
3
2020-02-28T17:07:14.000Z
2022-03-10T18:54:31.000Z
main.c
maxicombina/c-calculator
6a93b0fc381c852d7559b247a0062859c67fec28
[ "MIT" ]
null
null
null
main.c
maxicombina/c-calculator
6a93b0fc381c852d7559b247a0062859c67fec28
[ "MIT" ]
1
2021-11-25T13:08:23.000Z
2021-11-25T13:08:23.000Z
#include <stdio.h> #include "calculator.h" int main(int argc, char* argv[]) { byte_8 result; simple_queue_t output; simple_stack_t ops; if (argc != 2) { fprintf(stderr, "Use %s 'expression'\n", argv[0]); return 1; } queue_init(&output); stack_init(&ops); /* Convert to RPN */ shunting_yard(argv[1], &ops, &output); /* Compute result */ result = compute_rpn(&output); printf("result: %lld\n", result); return 0; }
18.148148
58
0.57551
4b06c2e2247f576c9fb388b810ea3d865e1aceb5
1,304
h
C
include/il2cpp/System/Array/EmptyInternalEnumerator_EvolveDemoTools.Param_.h
martmists-gh/BDSP
d6326c5d3ad9697ea65269ed47aa0b63abac2a0a
[ "MIT" ]
1
2022-01-15T20:20:27.000Z
2022-01-15T20:20:27.000Z
include/il2cpp/System/Array/EmptyInternalEnumerator_EvolveDemoTools.Param_.h
martmists-gh/BDSP
d6326c5d3ad9697ea65269ed47aa0b63abac2a0a
[ "MIT" ]
null
null
null
include/il2cpp/System/Array/EmptyInternalEnumerator_EvolveDemoTools.Param_.h
martmists-gh/BDSP
d6326c5d3ad9697ea65269ed47aa0b63abac2a0a
[ "MIT" ]
null
null
null
#pragma once #include "il2cpp.h" void System_Array_EmptyInternalEnumerator_EvolveDemoTools_Param___Dispose (System_Array_EmptyInternalEnumerator_EvolveDemoTools_Param__o* __this, const MethodInfo* method_info); bool System_Array_EmptyInternalEnumerator_EvolveDemoTools_Param___MoveNext (System_Array_EmptyInternalEnumerator_EvolveDemoTools_Param__o* __this, const MethodInfo* method_info); EvolveDemoTools_Param_o System_Array_EmptyInternalEnumerator_EvolveDemoTools_Param___get_Current (System_Array_EmptyInternalEnumerator_EvolveDemoTools_Param__o* __this, const MethodInfo* method_info); Il2CppObject* System_Array_EmptyInternalEnumerator_EvolveDemoTools_Param___System_Collections_IEnumerator_get_Current (System_Array_EmptyInternalEnumerator_EvolveDemoTools_Param__o* __this, const MethodInfo* method_info); void System_Array_EmptyInternalEnumerator_EvolveDemoTools_Param___System_Collections_IEnumerator_Reset (System_Array_EmptyInternalEnumerator_EvolveDemoTools_Param__o* __this, const MethodInfo* method_info); void System_Array_EmptyInternalEnumerator_EvolveDemoTools_Param____ctor (System_Array_EmptyInternalEnumerator_EvolveDemoTools_Param__o* __this, const MethodInfo* method_info); void System_Array_EmptyInternalEnumerator_EvolveDemoTools_Param____cctor (const MethodInfo* method_info);
108.666667
221
0.92408
4b6a35b340d64d662e4b4a055548c3009068ae4b
1,540
h
C
boinc_new/vda/stats.h
tomasbrod/tbboinc
c125cc355b2dc9a1e536b5e5ded028d4e7f4613a
[ "MIT" ]
null
null
null
boinc_new/vda/stats.h
tomasbrod/tbboinc
c125cc355b2dc9a1e536b5e5ded028d4e7f4613a
[ "MIT" ]
4
2020-09-07T15:54:45.000Z
2020-09-27T16:47:16.000Z
boinc_new/vda/stats.h
tomasbrod/tbboinc
c125cc355b2dc9a1e536b5e5ded028d4e7f4613a
[ "MIT" ]
null
null
null
// This file is part of BOINC. // http://boinc.berkeley.edu // Copyright (C) 2012 University of California // // BOINC is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // // BOINC is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with BOINC. If not, see <http://www.gnu.org/licenses/>. // keeps track of a time-varying property of a file // (server disk usage, up/download rate, fault tolerance level) // #ifndef _STATS_ #define _STATS_ #include <stdio.h> typedef enum {DISK, NETWORK, FAULT_TOLERANCE} STATS_KIND; struct STATS_ITEM { STATS_KIND kind; double value; double integral; double extreme_val; double extreme_val_time; double prev_t; double start_time; bool first; char name[256]; FILE* f; bool log_changes; void init(const char* n, const char* filename, STATS_KIND k); void sample(double v, bool collecting_stats, double now); void sample_inc(double inc, bool collecting_stats, double now, const char* reason=NULL); void print(double now); void print_summary(FILE* f, double now); }; #endif
30.8
92
0.724026
49ed2c972b118f75df47cb1a56b7caf5035519fb
1,536
h
C
src/mplfe/jbc_input/include/jbc_compiler_component.h
MapleSystem/OpenArkCompiler
fc250857642ca38ac8b83ae7486513fadf3ab742
[ "MulanPSL-1.0" ]
5
2019-09-02T04:44:52.000Z
2021-11-08T12:23:51.000Z
src/mplfe/jbc_input/include/jbc_compiler_component.h
MapleSystem/OpenArkCompiler
fc250857642ca38ac8b83ae7486513fadf3ab742
[ "MulanPSL-1.0" ]
2
2020-07-21T01:22:01.000Z
2021-12-06T08:07:16.000Z
src/mplfe/jbc_input/include/jbc_compiler_component.h
MapleSystem/OpenArkCompiler
fc250857642ca38ac8b83ae7486513fadf3ab742
[ "MulanPSL-1.0" ]
4
2019-09-02T04:46:52.000Z
2020-09-10T11:30:03.000Z
/* * Copyright (c) [2020-2021] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR * FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #ifndef MPLFE_INCLUDE_JBC_COMPILER_COMPONENT_H #define MPLFE_INCLUDE_JBC_COMPILER_COMPONENT_H #include "fe_macros.h" #include "mplfe_compiler_component.h" #include "jbc_input.h" #include "fe_function_phase_result.h" namespace maple { class JBCCompilerComponent : public MPLFECompilerComponent { public: JBCCompilerComponent(MIRModule &module); ~JBCCompilerComponent(); protected: bool ParseInputImpl() override; bool LoadOnDemandTypeImpl() override; void ProcessPragmaImpl() override; std::unique_ptr<FEFunction> CreatFEFunctionImpl(FEInputMethodHelper *methodHelper) override; std::string GetComponentNameImpl() const override; bool ParallelableImpl() const override; void DumpPhaseTimeTotalImpl() const override; void ReleaseMemPoolImpl() override; private: MemPool *mp; MapleAllocator allocator; jbc::JBCInput jbcInput; }; // class JBCCompilerComponent } // namespace maple #endif // MPLFE_INCLUDE_JBC_COMPILER_COMPONENT_H
34.909091
94
0.777995
637dadd2f30562152d5dbce913b21a60f7d8ef0d
2,643
h
C
DataFormats/L1TMuon/interface/OMTF/OmtfCscDataWord64.h
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
3
2018-08-24T19:10:26.000Z
2019-02-19T11:45:32.000Z
DataFormats/L1TMuon/interface/OMTF/OmtfCscDataWord64.h
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
3
2018-08-23T13:40:24.000Z
2019-12-05T21:16:03.000Z
DataFormats/L1TMuon/interface/OMTF/OmtfCscDataWord64.h
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
5
2018-08-21T16:37:52.000Z
2020-01-09T13:33:17.000Z
#ifndef DataFormat_L1TMuon_Omtf_CscDataWord64_H #define DataFormat_L1TMuon_Omtf_CscDataWord64_H #include<iostream> #include "DataFormats/L1TMuon/interface/OMTF/OmtfDataWord64.h" namespace omtf { class CscDataWord64 { public: CscDataWord64(const Word64 & data) : rawData(data) {} CscDataWord64() : rawData(Word64(DataWord64::csc)<<60) {} unsigned int type() const { return type_;} unsigned int bxNum() const { return bxNum_; } unsigned int hitNum() const { return hitNum_; } unsigned int wireGroup() const { return keyWG_; } unsigned int quality() const { return quality_; } unsigned int clctPattern() const { return clctPattern_; } unsigned int cscID() const { return cscID_; } unsigned int halfStrip() const { return halfStrip_; } unsigned int linkNum() const { return linkNum_;} unsigned int station() const { return station_; } unsigned int bend() const { return lr_; } unsigned int valid() const { return vp_; } friend class OmtfPacker; friend class CscPacker; friend std::ostream & operator<< (std::ostream &out, const CscDataWord64 &o); private: union { uint64_t rawData; struct { // watch out - bit fields are is implementation-defined uint64_t dummy7_ : 3; //2:0 unused, oryginalnie TBIN Num uint64_t vp_ : 1; //3:3 VP uint64_t station_ : 3; //6:4 Station uint64_t af_ : 1; //7:7 AF uint64_t dummy6_ : 4; //11:8 unused, oryginalnie EPC uint64_t sm_ : 1; //12:12 unused, oryginalnie SM uint64_t se_ : 1; //13:13 SE uint64_t dummy5_ : 1; //14:14 unused, oryginalnie AFEF uint64_t dummy4_ : 2; //16:15 unused, oryginalnie ME BXN [11:0] uint64_t nit_ : 1; //17:17 NIT uint64_t cik_ : 1; //18:18 CIK uint64_t dummy3_ : 1; //19:19 unused, oryginalnie AFFF uint64_t linkNum_ : 6; //25:20 numer linku CSC uint64_t halfStrip_ : 8; //33:26 CLCT key half-strip [7:0] uint64_t cscID_ : 4; //37:34 CSC ID [3:0] uint64_t lr_ : 1; //38:38 L/R uint64_t dummy2_ : 1; //39:39 unused, oryginalnie BXE uint64_t dummy1_ : 1; //40:40 unused, oryginalnie BC0 uint64_t clctPattern_ : 4; //44:41 CLCT pattern [3:0] 4b uint64_t quality_ : 4; //48:45 Quality [3:0] uint64_t keyWG_ : 7; //55:49 Key wire group [6:0] uint64_t hitNum_ : 1; //56:56 int in chamber 0 or 1 uint64_t bxNum_ : 3; //59:57 SBXN uint64_t type_ : 4; //63:60 CSC identifier 0xC }; }; }; } //namespace Omtf #endif
40.045455
83
0.622399
c0d3669853e42c36f9549e66c3c9328db2408877
3,259
h
C
ASNativeActivity/phoenixas/src/main/cpp/input/connect/joypad_connection.h
playbar/android-ndk
34e79bc1de9caa27faa72f5f1fb4ad3202debdc6
[ "Apache-2.0" ]
1
2017-06-01T01:20:57.000Z
2017-06-01T01:20:57.000Z
ASNativeActivity/phoenixas/src/main/cpp/input/connect/joypad_connection.h
playbar/android-ndk
34e79bc1de9caa27faa72f5f1fb4ad3202debdc6
[ "Apache-2.0" ]
1
2018-07-17T07:09:17.000Z
2018-07-17T07:09:17.000Z
ASNativeActivity/phoenixas/src/main/cpp/input/connect/joypad_connection.h
playbar/android-ndk
34e79bc1de9caa27faa72f5f1fb4ad3202debdc6
[ "Apache-2.0" ]
null
null
null
/* RetroArch - A frontend for libretro. * Copyright (C) 2013-2014 - Jason Fetters * Copyright (C) 2011-2017 - Daniel De Matteis * * RetroArch is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Found- * ation, either version 3 of the License, or (at your option) any later version. * * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along with RetroArch. * If not, see <http://www.gnu.org/licenses/>. */ #ifndef _JOYPAD_CONNECTION_H #define _JOYPAD_CONNECTION_H #include <stdint.h> #include <stddef.h> #include <libretro.h> typedef void (*send_control_t)(void *data, uint8_t *buf, size_t size); struct joypad_connection { bool connected; struct pad_connection_interface *iface; void* data; }; typedef struct pad_connection_interface { void* (*init)(void *data, uint32_t slot, send_control_t ptr); void (*deinit)(void* device); void (*packet_handler)(void* device, uint8_t *packet, uint16_t size); void (*set_rumble)(void* device, enum retro_rumble_effect effect, uint16_t strength); uint64_t (*get_buttons)(void *data); int16_t (*get_axis)(void *data, unsigned axis); const char* (*get_name)(void *data); } pad_connection_interface_t; typedef struct joypad_connection joypad_connection_t; extern pad_connection_interface_t pad_connection_wii; extern pad_connection_interface_t pad_connection_wiiupro; extern pad_connection_interface_t pad_connection_ps3; extern pad_connection_interface_t pad_connection_ps4; extern pad_connection_interface_t pad_connection_snesusb; extern pad_connection_interface_t pad_connection_nesusb; extern pad_connection_interface_t pad_connection_wiiugca; extern pad_connection_interface_t pad_connection_ps2adapter; extern pad_connection_interface_t pad_connection_psxadapter; int32_t pad_connection_pad_init(joypad_connection_t *joyconn, const char* name, uint16_t vid, uint16_t pid, void *data, send_control_t ptr); joypad_connection_t *pad_connection_init(unsigned pads); void pad_connection_destroy(joypad_connection_t *joyconn); void pad_connection_pad_deinit(joypad_connection_t *joyconn, uint32_t idx); void pad_connection_packet(joypad_connection_t *joyconn, uint32_t idx, uint8_t* data, uint32_t length); uint64_t pad_connection_get_buttons(joypad_connection_t *joyconn, unsigned idx); int16_t pad_connection_get_axis(joypad_connection_t *joyconn, unsigned idx, unsigned i); /* Determine if connected joypad is a hidpad backed device. * If false, pad_connection_packet cannot be used */ bool pad_connection_has_interface(joypad_connection_t *joyconn, unsigned idx); int pad_connection_find_vacant_pad(joypad_connection_t *joyconn); bool pad_connection_rumble(joypad_connection_t *s, unsigned pad, enum retro_rumble_effect effect, uint16_t strength); const char* pad_connection_get_name(joypad_connection_t *joyconn, unsigned idx); #endif
35.043011
91
0.789506
c0f9cb53b2bda482b0e87a5b3475ef93900c544d
1,110
h
C
WKBCategory/NSDate+wkb/NSDate+wkb.h
a-stupid-wood/WKBCategory
56ffe19802774d1c46974095354309a0cb4f4342
[ "MIT" ]
1
2019-11-03T15:36:43.000Z
2019-11-03T15:36:43.000Z
WKBCategory/NSDate+wkb/NSDate+wkb.h
a-stupid-wood/WKBCategory
56ffe19802774d1c46974095354309a0cb4f4342
[ "MIT" ]
null
null
null
WKBCategory/NSDate+wkb/NSDate+wkb.h
a-stupid-wood/WKBCategory
56ffe19802774d1c46974095354309a0cb4f4342
[ "MIT" ]
null
null
null
// // NSDate+wkb.h // WKBCategory // // Created by 王凯彬 on 2019/11/3. // Copyright © 2019 王凯彬. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface NSDate (wkb) @property (nonatomic, copy, readonly) NSString *wkb_year; @property (nonatomic, copy, readonly) NSString *wkb_month; @property (nonatomic, copy, readonly) NSString *wkb_day; @property (nonatomic, copy, readonly) NSString *wkb_hour; @property (nonatomic, copy, readonly) NSString *wkb_minute; @property (nonatomic, copy, readonly) NSString *wkb_seconds; /**是否为今天*/ - (BOOL)wkb_isToday; /**是否为昨天*/ - (BOOL)wkb_isYesterday; /**是否为今年*/ - (BOOL)wkb_isThisYear; /**返回一个只有年月日的时间*/ - (instancetype)wkb_dateWithYMD; /**返回一个只有年月日的时间字符串*/ + (NSString *)wkb_yearMonthDay; /** 获得与当前时间的差距*/ - (NSDateComponents *)wkb_deltaWithNow; /**生成分秒格式的时间*/ +(NSString *)wkb_formatTimeTominSecWithNumber:(NSNumber *)number; /**生成年-月-日 时:分的时间*/ + (NSString *)wkb_formatTimeToYMDHM:(NSNumber *)number; /**格式化时间: 根据与现在的时间差距返回昨天、一周前、一个月前等字符串*/ + (NSString *)wkb_formatTimeWithNumber:(NSNumber *)number; @end NS_ASSUME_NONNULL_END
25.813953
65
0.73964
77ede3f3ecce4e125454bef5ed93a1eb3bc856e8
416
h
C
src/main/akee/actor/IActorRef.h
shines77/Akee
6b39d0d45455fdc9149618a0b6cf2152e25074b2
[ "MIT" ]
null
null
null
src/main/akee/actor/IActorRef.h
shines77/Akee
6b39d0d45455fdc9149618a0b6cf2152e25074b2
[ "MIT" ]
null
null
null
src/main/akee/actor/IActorRef.h
shines77/Akee
6b39d0d45455fdc9149618a0b6cf2152e25074b2
[ "MIT" ]
1
2017-05-04T18:48:35.000Z
2017-05-04T18:48:35.000Z
#ifndef _AKEE_ACTOR_IACTORREF_H_ #define _AKEE_ACTOR_IACTORREF_H_ #if defined(_MSC_VER) && (_MSC_VER >= 1020) #pragma once #endif #include "akee/actor/ICanTell.h" #include "akee/actor/ISurrogated.h" namespace akee { class ActorPath; class IActorRef : public ICanTell, public ISurrogated { public: virtual ActorPath * getPath() const = 0; }; } /* namespace akee */ #endif /* _AKEE_ACTOR_IACTORREF_H_ */
17.333333
55
0.735577
cb82e211e2b5ca8ff0f4d85abffb7ef187b11743
241
h
C
EmbededData.h
76328/SEA_UP_Computer
27ca725cf838a3395a7da4067edd3a1bd84acb65
[ "MIT" ]
1
2021-12-20T14:08:10.000Z
2021-12-20T14:08:10.000Z
EmbededData.h
76328/SEA_UP_Computer
27ca725cf838a3395a7da4067edd3a1bd84acb65
[ "MIT" ]
null
null
null
EmbededData.h
76328/SEA_UP_Computer
27ca725cf838a3395a7da4067edd3a1bd84acb65
[ "MIT" ]
null
null
null
#pragma once #ifndef EMBEDEDDATA_H #define EMBEDEDDATA_H typedef struct _embededdata EMBEDED_DATA; struct _embededdata { float pos; char cmd; }; bool EmbededDataModuleRegister(EMBEDED_DATA **p); #endif // ! EmbededData_H
16.066667
50
0.738589
cbb0adc6d32683b8e445ec602e7f5feb2e31e6a1
1,228
c
C
rtos/libwwg/src/mcuio.c
iMorphiy/stm32
4a50098e9d5ff6cec3820c147de557b963544c72
[ "MIT" ]
null
null
null
rtos/libwwg/src/mcuio.c
iMorphiy/stm32
4a50098e9d5ff6cec3820c147de557b963544c72
[ "MIT" ]
null
null
null
rtos/libwwg/src/mcuio.c
iMorphiy/stm32
4a50098e9d5ff6cec3820c147de557b963544c72
[ "MIT" ]
null
null
null
/* MCU I/O: UART or USB on STM32 * Warren W. Gay VE3WWG * Sun Apr 30 16:46:11 2017 */ #include <stdarg.h> #include <mcuio.h> static const struct s_mcuio dev_uart1 = { uart1_putc, uart1_puts, uart1_vprintf, uart1_getc, uart1_peek, uart1_gets, uart1_write, uart1_getline }; static const struct s_mcuio dev_uart2 = { uart2_putc, uart2_puts, uart2_vprintf, uart2_getc, uart2_peek, uart2_gets, uart2_write, uart2_getline }; static const struct s_mcuio dev_uart3 = { uart3_putc, uart3_puts, uart3_vprintf, uart3_getc, uart3_peek, uart3_gets, uart3_write, uart3_getline }; static const struct s_mcuio dev_usb = { usb_putc, usb_puts, usb_vprintf, usb_getc, usb_peek, usb_gets, usb_write, usb_getline }; const struct s_mcuio *mcu_uart1 = &dev_uart1, *mcu_uart2 = &dev_uart2, *mcu_uart3 = &dev_uart3, *mcu_usb = &dev_usb; const struct s_mcuio *mcu_stdio = &dev_usb; // By default int mcu_printf(const struct s_mcuio *dev,const char *format,...) { va_list ap; int rc; va_start(ap,format); rc = dev->vprintf(format,ap); va_end(ap); return rc; } int std_printf(const char *format,...) { va_list ap; int rc; va_start(ap,format); rc = mcu_stdio->vprintf(format,ap); va_end(ap); return rc; } // End mcuio.c
23.615385
107
0.730456
5b41e30b197307260a998f3b29742ed5bd03831c
1,718
c
C
corewar/libft/srcs/ft_lstdelif.c
fflorens/portofolio42
4368c33460129beaebea0c983a133f717bc9fe13
[ "MIT" ]
null
null
null
corewar/libft/srcs/ft_lstdelif.c
fflorens/portofolio42
4368c33460129beaebea0c983a133f717bc9fe13
[ "MIT" ]
null
null
null
corewar/libft/srcs/ft_lstdelif.c
fflorens/portofolio42
4368c33460129beaebea0c983a133f717bc9fe13
[ "MIT" ]
null
null
null
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lstdelif.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: nmokrane <nmokrane@student.42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2013/12/31 09:51:37 by nmokrane #+# #+# */ /* Updated: 2014/01/15 15:54:16 by nmokrane ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" /* ** This function runs through a linked list, removing the ones that must be. ** Each link's data is compared with data_ref through the cmp function; ** If comparison don't returns zero, the link is then removed with the del ** function (through libft's ft_lstdelone() function). */ void ft_lstdelif(t_list **alst, void (*del)(void *, size_t), void *data_ref, int (*cmp)(void *, void *)) { t_list *link; t_list *next; while (*alst != NULL && cmp(data_ref, (*alst)->data) != 0) { next = (*alst)->next; ft_lstdelone(alst, del); *alst = next; } if (*alst == NULL) return ; link = *alst; while (link != NULL && link->next != NULL) { next = link->next; if (cmp(data_ref, next->data) != 0) { link->next = next->next; ft_lstdelone(&next, del); } else link = next; } }
35.791667
80
0.361467
e268389036c068096da9f77dbbfb2849baefcb0c
1,858
h
C
include/my.h
iliam-12/CPE_lemin_2019
789ddb683d1eccb39d8818b64ea8f7130c7ad2ba
[ "MIT" ]
null
null
null
include/my.h
iliam-12/CPE_lemin_2019
789ddb683d1eccb39d8818b64ea8f7130c7ad2ba
[ "MIT" ]
null
null
null
include/my.h
iliam-12/CPE_lemin_2019
789ddb683d1eccb39d8818b64ea8f7130c7ad2ba
[ "MIT" ]
null
null
null
/* ** EPITECH PROJECT, 2020 ** CPE_lemin_2019 ** File description: ** my */ #ifndef MY_H_ #define MY_H_ /* ___ INCLUDES ___ */ #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <dirent.h> #include <fcntl.h> /* ___ STRUCTURES ___ */ struct elem { int count; int one; int two; }; typedef struct elem init_t; /* _____--------- FONCTIONS ---------_____ */ int lemin(void); /* _UTILS _*/ int str_isnbr(char *str); int rooms(char *str); int check_tiret2(char *str); int tiret(char *str); int char_isnbr(char nb); /* _OTHER_UTILS_ */ char **skip_hashtag(char **tab); int hash_tag(char *str); char **delete_coms(char **tab, char **hash_tab); char **delete_spaces(char **new_tab, char **tab); /* _CHECK_ERROR_1_ */ int check_error_1(char **tab); int start_end(char **tab); int char_is_nbr_or_space(char nb); // *check2 int check_again(char **tab); int three(char *str); /* _CHECK_ERROR_2_ */ int check_nb_ants(char **tab); int check_position(char **tab); int check_tiret(char **tab); int check_error_2(char **tab); /* _SWAPY_ */ char **swap_rooms_tunnels(char **tab, int i); char **swap_ants(char **tab, int i); char **swapy(char **tab); /* _TOOLBOX_ */ int printtab(char **tab, init_t *elem); int nb_line(char const *str); int nb_char(char const *str, int i); char **my_str_to_word_array(char const *str); void my_putchar(char c); void my_putstr(char const *str); int my_strcmp(char const *s1, char const *s2); char *my_strcat(char *debut, char *fin); char *my_strdup(char *src); int my_strlen(char const *str); void write_coms(char **tab, int i, init_t *elem); int _line(char **tab); int _len(char **tab); char **my_malloc(char **tab); int nb_ants(char *str); #endif /* !MY_H_ */
21.113636
49
0.653929
274ba810874d29b1f0f0614516114238a2174aa8
1,374
h
C
src/CyPhyCriticalityMeter/ComponentConfig.h
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
src/CyPhyCriticalityMeter/ComponentConfig.h
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
src/CyPhyCriticalityMeter/ComponentConfig.h
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
#define RAWCOMPONENT // COM UUID-s, names and ProgID #define TYPELIB_UUID "0268F5DC-6F7B-46B8-9503-703E4F4075BD" #define TYPELIB_NAME "MGA Interpreter TypeLibrary CyPhyCriticalityMeter)" #define COCLASS_UUID "B59C028E-D9FF-4E2E-9D85-D1FBE9E1F6E5" #define COCLASS_NAME "MGA Interpreter CoClass (CyPhyCriticalityMeter)" #define COCLASS_PROGID "MGA.Interpreter.CyPhyCriticalityMeter" // This name will appear in the popup window for interpreter selection. #define COMPONENT_NAME L"CyPhyCriticalityMeter" #define TOOLTIP_TEXT "Design Space Criticality/Complexity Meter" // This #define determines the interpreter type: #define GME_INTERPRETER // The name of the paradigm(s). The GME will use this component // for this paradigm. Separate the names of paradigms by commas. #define PARADIGMS "CyPhyML" #define BON_ICON_SUPPORT #define REGISTER_SYSTEMWIDE // Just to please the whims of those Microsoft jerks: #define COCLASS_UUID_EXPLODED1 0xB59C028E #define COCLASS_UUID_EXPLODED2 0xD9FF #define COCLASS_UUID_EXPLODED3 0x4E2E #define COCLASS_UUID_EXPLODED4 0x9D #define COCLASS_UUID_EXPLODED5 0x85 #define COCLASS_UUID_EXPLODED6 0xD1 #define COCLASS_UUID_EXPLODED7 0xFB #define COCLASS_UUID_EXPLODED8 0xE9 #define COCLASS_UUID_EXPLODED9 0xE1 #define COCLASS_UUID_EXPLODED10 0xF6 #define COCLASS_UUID_EXPLODED11 0xE5
32.714286
74
0.802766
6a7b00af8801f3190a012cdb2c98cc4d53398fa3
255
h
C
MultiThreadingTesting/MultiThreadingTesting/MemDeallocation.h
Lusane/FractalGen
77d7f776542b57561770b3509b440f7fcba99e4f
[ "BSD-3-Clause" ]
null
null
null
MultiThreadingTesting/MultiThreadingTesting/MemDeallocation.h
Lusane/FractalGen
77d7f776542b57561770b3509b440f7fcba99e4f
[ "BSD-3-Clause" ]
null
null
null
MultiThreadingTesting/MultiThreadingTesting/MemDeallocation.h
Lusane/FractalGen
77d7f776542b57561770b3509b440f7fcba99e4f
[ "BSD-3-Clause" ]
null
null
null
#define VERITAS_FACTA 420 #include "MemAllocation.cpp" void RTA_Deallocate(); void TVA_Deallocate(); void RemoveFrac(); void MemDeallocationThreadCreation(); void MemDeallocationThreadDestruction(); void JoinMemDeallocationThreads(); void DeallocateMem();
28.333333
40
0.827451
b9e4b0f63fda95df0a523584e48ab1a7e3c0a373
23,444
c
C
software/sensor/thirdparty/lwip/lwip-port-1.4.1/sam/netif/sam_spi_ksz8851snl.c
ghsecuritylab/project-powerline
6c0ec13bbfc11c3790c506f644db4fe45021440a
[ "MIT" ]
null
null
null
software/sensor/thirdparty/lwip/lwip-port-1.4.1/sam/netif/sam_spi_ksz8851snl.c
ghsecuritylab/project-powerline
6c0ec13bbfc11c3790c506f644db4fe45021440a
[ "MIT" ]
null
null
null
software/sensor/thirdparty/lwip/lwip-port-1.4.1/sam/netif/sam_spi_ksz8851snl.c
ghsecuritylab/project-powerline
6c0ec13bbfc11c3790c506f644db4fe45021440a
[ "MIT" ]
1
2020-03-08T01:50:58.000Z
2020-03-08T01:50:58.000Z
/** * \file * * \brief KSZ8851SNL SAM driver for lwIP. * * Copyright (c) 2013-2015 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page 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. * * 3. The name of Atmel may not be used to endorse or promote products derived * from this software without specific prior written permission. * * 4. This software may only be redistributed and used in connection with an * Atmel microcontroller product. * * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL 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. * * \asf_license_stop * */ #include "lwip/opt.h" #include "lwip/sys.h" #include "lwip/def.h" #include "lwip/mem.h" #include "lwip/pbuf.h" #include "lwip/stats.h" #include "lwip/snmp.h" #include "netif/etharp.h" #include "netif/ppp_oe.h" #include <string.h> #include "ksz8851snl.h" #include "ksz8851snl_reg.h" #include "netif/sam_spi_ksz8851snl.h" #include "sysclk.h" #include "spi.h" #include "pdc.h" #include "conf_eth.h" /** Network interface identifier. */ #define IFNAME0 'e' #define IFNAME1 'n' /** Maximum transfer unit. */ #define NET_MTU 1500 /** Network link speed. */ #define NET_LINK_SPEED 100000000 /** * ksz8851snl driver structure. */ struct ksz8851snl_device { /** Set to 1 when owner is software (ready to read), 0 for Micrel. */ uint32_t rx_desc[NETIF_RX_BUFFERS]; /** Set to 1 when owner is Micrel, 0 for software. */ uint32_t tx_desc[NETIF_TX_BUFFERS]; /** RX pbuf pointer list */ struct pbuf *rx_pbuf[NETIF_RX_BUFFERS]; /** TX pbuf pointer list */ struct pbuf *tx_pbuf[NETIF_TX_BUFFERS]; struct pbuf *tx_cur_pbuf; /** Circular buffer head pointer for packet received. */ uint32_t us_rx_head; /** Circular buffer tail pointer for packet to be read. */ uint32_t us_rx_tail; /** Circular buffer head pointer by upper layer (buffer to be sent). */ uint32_t us_tx_head; /** Circular buffer tail pointer incremented by handlers (buffer sent). */ uint32_t us_tx_tail; /** Reference to lwIP netif structure. */ struct netif *netif; #if NO_SYS == 0 /** RX task notification semaphore. */ sys_sem_t sync_sem; #endif }; /** * ksz8851snl driver instance. */ COMPILER_ALIGNED(8) static struct ksz8851snl_device gs_ksz8851snl_dev; static uint16_t pending_frame = 0; /** * MAC address to use. */ static uint8_t gs_uc_mac_address[] = { ETHERNET_CONF_ETHADDR0, ETHERNET_CONF_ETHADDR1, ETHERNET_CONF_ETHADDR2, ETHERNET_CONF_ETHADDR3, ETHERNET_CONF_ETHADDR4, ETHERNET_CONF_ETHADDR5 }; #if LWIP_STATS /** Used to compute lwIP bandwidth. */ uint32_t lwip_tx_count = 0; uint32_t lwip_rx_count = 0; uint32_t lwip_tx_rate = 0; uint32_t lwip_rx_rate = 0; #endif volatile uint32_t g_intn_flag = 0; volatile uint32_t g_spi_pdc_flag = 0; extern Pdc *g_p_spi_pdc; #define SPI_PDC_IDLE 0 #define SPI_PDC_RX_START 1 #define SPI_PDC_RX_COMPLETE 2 #define SPI_PDC_TX_START 3 #define SPI_PDC_TX_COMPLETE 4 extern uint8_t tmpbuf[]; /** * \brief Handler for SPI interrupt. */ void SPI_Handler(void) { pdc_packet_t g_pdc_spi_tx_npacket; pdc_packet_t g_pdc_spi_rx_npacket; uint32_t status; status = spi_read_status(KSZ8851SNL_SPI); status &= spi_read_interrupt_mask(KSZ8851SNL_SPI); if (SPI_PDC_RX_START == g_spi_pdc_flag) { /* Transfer complete, disable SPI interrupt. */ if (status & SPI_SR_RXBUFF) { spi_disable_interrupt(KSZ8851SNL_SPI, SPI_IDR_RXBUFF); g_spi_pdc_flag = SPI_PDC_RX_COMPLETE; } } else if (SPI_PDC_TX_START == g_spi_pdc_flag) { /* Middle of TX. */ if (status & SPI_SR_ENDRX) { /* Fetch next pbuf in the pbuf chain. */ if (gs_ksz8851snl_dev.tx_cur_pbuf) gs_ksz8851snl_dev.tx_cur_pbuf = gs_ksz8851snl_dev.tx_cur_pbuf->next; /* If next pbuf is available, enqueue for transfer. */ if (gs_ksz8851snl_dev.tx_cur_pbuf) { g_pdc_spi_tx_npacket.ul_addr = (uint32_t) gs_ksz8851snl_dev.tx_cur_pbuf->payload; g_pdc_spi_tx_npacket.ul_size = gs_ksz8851snl_dev.tx_cur_pbuf->len; g_pdc_spi_rx_npacket.ul_addr = (uint32_t) tmpbuf; g_pdc_spi_rx_npacket.ul_size = gs_ksz8851snl_dev.tx_cur_pbuf->len; pdc_tx_init(g_p_spi_pdc, NULL, &g_pdc_spi_tx_npacket); pdc_rx_init(g_p_spi_pdc, NULL, &g_pdc_spi_rx_npacket); } else { /* Enable RX complete interrupt. */ spi_disable_interrupt(KSZ8851SNL_SPI, SPI_IDR_ENDRX); spi_enable_interrupt(KSZ8851SNL_SPI, SPI_IER_RXBUFF); } } /* End of TX. */ if (status & SPI_SR_RXBUFF) { /* Transfer complete, disable SPI interrupt. */ spi_disable_interrupt(KSZ8851SNL_SPI, SPI_IDR_RXBUFF); g_spi_pdc_flag = SPI_PDC_TX_COMPLETE; } } } /** * \brief Handler for INTN falling edge interrupt. */ static void INTN_Handler(uint32_t id, uint32_t mask) { #if NO_SYS == 0 portBASE_TYPE xKSZTaskWoken = pdFALSE; #endif if ((INTN_ID == id) && (INTN_PIN_MSK == mask)) { /* Clear the PIO interrupt flags. */ pio_get_interrupt_status(INTN_PIO); /* Set the INTN flag. */ g_intn_flag = 1; #if NO_SYS == 0 xSemaphoreGiveFromISR(gs_ksz8851snl_dev.sync_sem, &xKSZTaskWoken); portEND_SWITCHING_ISR(xKSZTaskWoken); #endif } } /** * \brief Populate the RX descriptor ring buffers with pbufs. * * \param p_ksz8851snl_dev Pointer to driver data structure. */ static void ksz8851snl_rx_populate_queue(struct ksz8851snl_device *p_ksz8851snl_dev) { uint32_t ul_index = 0; struct pbuf *p = 0; /* Set up the RX descriptors */ for (ul_index = 0; ul_index < NETIF_RX_BUFFERS; ul_index++) { if (p_ksz8851snl_dev->rx_pbuf[ul_index] == 0) { /* Allocate a new pbuf with the maximum size. */ p = pbuf_alloc(PBUF_RAW, PBUF_POOL_BUFSIZE, PBUF_POOL); if (0 == p) { LWIP_DEBUGF(NETIF_DEBUG, ("ksz8851snl_rx_populate_queue: pbuf allocation failure\n")); } /* Make sure lwIP is well configured so one pbuf can contain the maximum packet size. */ LWIP_ASSERT("ksz8851snl_rx_populate_queue: pbuf size too small!", pbuf_clen(p) <= 1); /* Set owner as Micrel. */ p_ksz8851snl_dev->rx_desc[ul_index] = 0; /* Save pbuf pointer to be sent to lwIP upper layer. */ p_ksz8851snl_dev->rx_pbuf[ul_index] = p; LWIP_DEBUGF(NETIF_DEBUG, ("ksz8851snl_rx_populate_queue: new pbuf allocated with size %d: 0x%p [pos=%u]\n", PBUF_POOL_BUFSIZE, p, ul_index)); } } } /** * \brief Update Micrel state machine and perform required actions. * * \param netif the lwIP network interface structure for this ethernetif. */ static void ksz8851snl_update(struct netif *netif) { struct ksz8851snl_device *ps_ksz8851snl_dev = netif->state; uint16_t status = 0; uint16_t len = 0; uint16_t txmir = 0; /* Check for free PDC. */ if (SPI_PDC_IDLE == g_spi_pdc_flag) { /* Handle TX. */ /* Fetch next packet marked as owned by Micrel. */ if (ps_ksz8851snl_dev->tx_desc[ps_ksz8851snl_dev->us_tx_tail] && (pending_frame == 0)) { len = ps_ksz8851snl_dev->tx_pbuf[ps_ksz8851snl_dev->us_tx_tail]->tot_len; /* TX step1: check if TXQ memory size is available for transmit. */ txmir = ksz8851_reg_read(REG_TX_MEM_INFO) & TX_MEM_AVAILABLE_MASK; if (txmir < len + 8) { LWIP_DEBUGF(NETIF_DEBUG, ("ksz8851snl_update: TX not enough memory in queue: %d required %d\n", txmir, len + 8)); return; } /* TX step2: disable all interrupts. */ ksz8851_reg_write(REG_INT_MASK, 0); LWIP_DEBUGF(NETIF_DEBUG, ("ksz8851snl_update: TX start packet transmit len=%d [tail=%u head=%u]\n", len, ps_ksz8851snl_dev->us_tx_tail, ps_ksz8851snl_dev->us_tx_head)); /* TX step3: enable TXQ write access. */ ksz8851_reg_setbits(REG_RXQ_CMD, RXQ_START); /* TX step4-8: perform FIFO write operation. */ g_spi_pdc_flag = SPI_PDC_TX_START; ps_ksz8851snl_dev->tx_cur_pbuf = ps_ksz8851snl_dev->tx_pbuf[ps_ksz8851snl_dev->us_tx_tail]; gpio_set_pin_low(KSZ8851SNL_CSN_GPIO); ksz8851_fifo_write(ps_ksz8851snl_dev->tx_cur_pbuf->payload, ps_ksz8851snl_dev->tx_cur_pbuf->tot_len, ps_ksz8851snl_dev->tx_cur_pbuf->len); } /* Handle RX. */ else if (g_intn_flag || pending_frame > 0) { g_intn_flag = 0; if (0 == pending_frame) { /* RX step1: read interrupt status for INT_RX flag. */ status = ksz8851_reg_read(REG_INT_STATUS); if (!(status & INT_RX)) { return; } /* RX step2: disable all interrupts. */ ksz8851_reg_write(REG_INT_MASK, 0); /* RX step3: clear INT_RX flag. */ ksz8851_reg_setbits(REG_INT_STATUS, INT_RX); /* RX step4-5: check for received frames. */ pending_frame = ksz8851_reg_read(REG_RX_FRAME_CNT_THRES) >> 8; if (0 == pending_frame) { /* RX step24: enable INT_RX flag. */ ksz8851_reg_write(REG_INT_MASK, INT_RX); return; } } /* Don't break Micrel state machine, wait for a free descriptor first! */ if (ps_ksz8851snl_dev->rx_desc[ps_ksz8851snl_dev->us_rx_head]) { LWIP_DEBUGF(NETIF_DEBUG, ("ksz8851snl_update: out of free descriptor! [tail=%u head=%u]\n", ps_ksz8851snl_dev->us_rx_tail, ps_ksz8851snl_dev->us_rx_head)); return; } if (0 == ps_ksz8851snl_dev->rx_pbuf[ps_ksz8851snl_dev->us_rx_head]) { ksz8851snl_rx_populate_queue(ps_ksz8851snl_dev); LWIP_DEBUGF(NETIF_DEBUG, ("ksz8851snl_update: descriptor with NULL pbuf! [head=%u]\n", ps_ksz8851snl_dev->us_rx_head)); return; } /* RX step6: get RX packet status. */ status = ksz8851_reg_read(REG_RX_FHR_STATUS); if (((status & RX_VALID) == 0) || (status & RX_ERRORS)) { ksz8851_reg_setbits(REG_RXQ_CMD, RXQ_CMD_FREE_PACKET); LWIP_DEBUGF(NETIF_DEBUG, ("ksz8851snl_update: RX packet error!\n")); } else { /* RX step7: read frame length. */ len = ksz8851_reg_read(REG_RX_FHR_BYTE_CNT) & RX_BYTE_CNT_MASK; /* RX step8: Drop packet if len is invalid or no descriptor available. */ if (0 == len) { ksz8851_reg_setbits(REG_RXQ_CMD, RXQ_CMD_FREE_PACKET); LWIP_DEBUGF(NETIF_DEBUG, ("ksz8851snl_update: RX bad len!\n")); } else { LWIP_DEBUGF(NETIF_DEBUG, ("ksz8851snl_update: RX start packet receive len=%d [tail=%u head=%u]\n", len, ps_ksz8851snl_dev->us_rx_tail, ps_ksz8851snl_dev->us_rx_head)); /* RX step9: reset RX frame pointer. */ ksz8851_reg_clrbits(REG_RX_ADDR_PTR, ADDR_PTR_MASK); /* RX step10: start RXQ read access. */ ksz8851_reg_setbits(REG_RXQ_CMD, RXQ_START); /* RX step11-17: start asynchronous FIFO read operation. */ g_spi_pdc_flag = SPI_PDC_RX_START; gpio_set_pin_low(KSZ8851SNL_CSN_GPIO); ksz8851_fifo_read(ps_ksz8851snl_dev->rx_pbuf[ps_ksz8851snl_dev->us_rx_head]->payload, len); /* Remove CRC and update pbuf length. */ len -= 4; ps_ksz8851snl_dev->rx_pbuf[ps_ksz8851snl_dev->us_rx_head]->len = len; ps_ksz8851snl_dev->rx_pbuf[ps_ksz8851snl_dev->us_rx_head]->tot_len = len; } } } } else if (SPI_PDC_RX_COMPLETE == g_spi_pdc_flag) { /* RX step18-19: pad with dummy data to keep dword alignment. */ len = ps_ksz8851snl_dev->rx_pbuf[ps_ksz8851snl_dev->us_rx_head]->tot_len & 3; if (len) { ksz8851_fifo_dummy(4 - len); } /* RX step20: end RX transfer. */ gpio_set_pin_high(KSZ8851SNL_CSN_GPIO); /* Disable asynchronous transfer mode. */ g_spi_pdc_flag = SPI_PDC_IDLE; /* RX step21: end RXQ read access. */ ksz8851_reg_clrbits(REG_RXQ_CMD, RXQ_START); /* RX step22-23: update frame count to be read. */ pending_frame -= 1; /* RX step24: enable INT_RX flag if transfer complete. */ if (0 == pending_frame) { ksz8851_reg_write(REG_INT_MASK, INT_RX); } /* Mark descriptor ready to be read. */ ps_ksz8851snl_dev->rx_desc[ps_ksz8851snl_dev->us_rx_head] = 1; ps_ksz8851snl_dev->us_rx_head = (ps_ksz8851snl_dev->us_rx_head + 1) % NETIF_RX_BUFFERS; } else if (SPI_PDC_TX_COMPLETE == g_spi_pdc_flag) { /* TX step9-10: pad with dummy data to keep dword alignment. */ len = ps_ksz8851snl_dev->tx_pbuf[ps_ksz8851snl_dev->us_tx_tail]->tot_len & 3; if (len) { ksz8851_fifo_dummy(4 - len); } /* TX step11: end TX transfer. */ gpio_set_pin_high(KSZ8851SNL_CSN_GPIO); /* Disable asynchronous transfer mode. */ g_spi_pdc_flag = SPI_PDC_IDLE; /* TX step12: disable TXQ write access. */ ksz8851_reg_clrbits(REG_RXQ_CMD, RXQ_START); /* TX step12.1: enqueue frame in TXQ. */ ksz8851_reg_setbits(REG_TXQ_CMD, TXQ_ENQUEUE); /* RX step13: enable INT_RX flag. */ ksz8851_reg_write(REG_INT_MASK, INT_RX); /* Buffer sent, free the corresponding buffer and mark descriptor as owned by software. */ pbuf_free(ps_ksz8851snl_dev->tx_pbuf[ps_ksz8851snl_dev->us_tx_tail]); ps_ksz8851snl_dev->tx_pbuf[ps_ksz8851snl_dev->us_tx_tail] = NULL; ps_ksz8851snl_dev->tx_desc[ps_ksz8851snl_dev->us_tx_tail] = 0; ps_ksz8851snl_dev->us_tx_tail = (ps_ksz8851snl_dev->us_tx_tail + 1) % NETIF_TX_BUFFERS; } } /** * \brief Set up the RX descriptor ring buffers. * * This function sets up the descriptor list used for RX packets. * * \param ps_ksz8851snl_dev Pointer to driver data structure. */ static void ksz8851snl_rx_init(struct ksz8851snl_device *ps_ksz8851snl_dev) { uint32_t ul_index = 0; /* Init pointer index. */ ps_ksz8851snl_dev->us_rx_head = 0; ps_ksz8851snl_dev->us_rx_tail = 0; /* Set up the RX descriptors. */ for (ul_index = 0; ul_index < NETIF_RX_BUFFERS; ul_index++) { ps_ksz8851snl_dev->rx_pbuf[ul_index] = 0; ps_ksz8851snl_dev->rx_desc[ul_index] = 0; } /* Build RX buffer and descriptors. */ ksz8851snl_rx_populate_queue(ps_ksz8851snl_dev); } /** * \brief Set up the TX descriptor ring buffers. * * This function sets up the descriptor list used for TX packets. * * \param ps_ksz8851snl_dev Pointer to driver data structure. */ static void ksz8851snl_tx_init(struct ksz8851snl_device *ps_ksz8851snl_dev) { uint32_t ul_index = 0; /* Init TX index pointer. */ ps_ksz8851snl_dev->us_tx_head = 0; ps_ksz8851snl_dev->us_tx_tail = 0; /* Set up the TX descriptors */ for (ul_index = 0; ul_index < NETIF_TX_BUFFERS; ul_index++) { ps_ksz8851snl_dev->tx_desc[ul_index] = 0; } } /** * \brief Initialize ksz8851snl ethernet controller. * * \note Called from ethernetif_init(). * * \param netif the lwIP network interface structure for this ethernetif. */ static void ksz8851snl_low_level_init(struct netif *netif) { /* Set MAC hardware address length. */ netif->hwaddr_len = sizeof(gs_uc_mac_address); /* Set MAC hardware address. */ netif->hwaddr[0] = gs_uc_mac_address[0]; netif->hwaddr[1] = gs_uc_mac_address[1]; netif->hwaddr[2] = gs_uc_mac_address[2]; netif->hwaddr[3] = gs_uc_mac_address[3]; netif->hwaddr[4] = gs_uc_mac_address[4]; netif->hwaddr[5] = gs_uc_mac_address[5]; /* Set maximum transfer unit. */ netif->mtu = NET_MTU; /* Device capabilities. */ netif->flags |= NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP #if defined(DHCP_USED) | NETIF_FLAG_DHCP #endif ; ksz8851snl_rx_init(&gs_ksz8851snl_dev); ksz8851snl_tx_init(&gs_ksz8851snl_dev); /* Enable NVIC interrupts. */ NVIC_SetPriority(SPI_IRQn, INT_PRIORITY_SPI); NVIC_EnableIRQ(SPI_IRQn); /* Initialize SPI link. */ if (0 != ksz8851snl_init()) { LWIP_DEBUGF(NETIF_DEBUG, ("ksz8851snl_low_level_init: failed to initialize the Micrel driver!\n")); LWIP_ASSERT("SPI communication issue", 1); } /* Initialize interrupt line INTN. */ configure_intn(INTN_Handler); } /** * \brief This function should do the actual transmission of the packet. The * packet is contained in the pbuf that is passed to the function. This pbuf * might be chained. * * \param netif the lwIP network interface structure for this ethernetif. * \param p the MAC packet to send (e.g. IP packet including MAC addresses and type). * * \return ERR_OK if the packet could be sent. * an err_t value if the packet couldn't be sent. */ static err_t ksz8851snl_low_level_output(struct netif *netif, struct pbuf *p) { struct ksz8851snl_device *ps_ksz8851snl_dev = netif->state; /* Make sure the next descriptor is free. */ if (ps_ksz8851snl_dev->tx_desc[ps_ksz8851snl_dev->us_tx_head]) { #if NO_SYS LWIP_DEBUGF(NETIF_DEBUG, ("ksz8851snl_low_level_output: out of free descriptor! [tail=%u head=%u]\n", ps_ksz8851snl_dev->us_tx_tail, ps_ksz8851snl_dev->us_tx_head)); #endif return ERR_IF; } /* Ensure lwIP won't free this pbuf before the Micrel actually sends it. */ pbuf_ref(p); /* Mark descriptor has owned by Micrel. Enqueue pbuf packet. */ ps_ksz8851snl_dev->tx_desc[ps_ksz8851snl_dev->us_tx_head] = 1; ps_ksz8851snl_dev->tx_pbuf[ps_ksz8851snl_dev->us_tx_head] = p; #if NO_SYS LWIP_DEBUGF(NETIF_DEBUG, ("ksz8851snl_low_level_output: DMA buffer 0x%p sent, size=%u [tail=%u head=%u]\n", p->payload, p->tot_len, ps_ksz8851snl_dev->us_tx_tail, ps_ksz8851snl_dev->us_tx_head)); #endif ps_ksz8851snl_dev->us_tx_head = (ps_ksz8851snl_dev->us_tx_head + 1) % NETIF_TX_BUFFERS; #if LWIP_STATS lwip_tx_count += p->tot_len; #endif LINK_STATS_INC(link.xmit); #if NO_SYS == 0 /* Release KSZ task to perform packet transfer. */ xSemaphoreGive(ps_ksz8851snl_dev->sync_sem); #endif return ERR_OK; } /** * \brief Use pre-allocated pbuf as DMA source and return the incoming packet. * * \param netif the lwIP network interface structure for this ethernetif. * * \return a pbuf filled with the received packet (including MAC header). * 0 on memory error. */ static struct pbuf *ksz8851snl_low_level_input(struct netif *netif) { struct ksz8851snl_device *ps_ksz8851snl_dev = netif->state; struct pbuf *p = 0; /* Check that descriptor is owned by software (ie packet received). */ if (ps_ksz8851snl_dev->rx_desc[ps_ksz8851snl_dev->us_rx_tail]) { /* Fetch pre-allocated pbuf. */ p = ps_ksz8851snl_dev->rx_pbuf[ps_ksz8851snl_dev->us_rx_tail]; /* Remove this pbuf from its descriptor. */ ps_ksz8851snl_dev->rx_pbuf[ps_ksz8851snl_dev->us_rx_tail] = 0; LWIP_DEBUGF(NETIF_DEBUG, ("ksz8851snl_low_level_input: DMA buffer 0x%p received, size=%u [tail=%u head=%u]\n", p->payload, p->tot_len, ps_ksz8851snl_dev->us_rx_tail, ps_ksz8851snl_dev->us_rx_head)); /* Set pbuf total packet size. */ LINK_STATS_INC(link.recv); /* Fill empty descriptors with new pbufs. */ ksz8851snl_rx_populate_queue(ps_ksz8851snl_dev); ps_ksz8851snl_dev->us_rx_tail = (ps_ksz8851snl_dev->us_rx_tail + 1) % NETIF_RX_BUFFERS; #if LWIP_STATS lwip_rx_count += p->tot_len; #endif } return p; } #if NO_SYS == 0 /** * \brief This function waits for the notification * semaphore from the interrupt, processes the incoming packet and then * passes it to the lwIP stack. * * \param pvParameters A pointer to the ksz8851snl_device instance. */ static void ksz8851snl_task(void *pvParameters) { struct ksz8851snl_device *ps_ksz8851snl_dev = pvParameters; while (1) { /* Block if no transfer pending. */ if ((SPI_PDC_IDLE == g_spi_pdc_flag) && (0 == pending_frame) && (0 == ps_ksz8851snl_dev->tx_desc[ps_ksz8851snl_dev->us_tx_tail])) { /* Wait for the RX notification semaphore. */ sys_arch_sem_wait(&ps_ksz8851snl_dev->sync_sem, 0); } /* Process the incoming packet. */ ethernetif_input(ps_ksz8851snl_dev->netif); } } #endif /** * \brief This function should be called when a packet is ready to be * read from the interface. It uses the function ksz8851snl_low_level_input() * that handles the actual reception of bytes from the network interface. * Then the type of the received packet is determined and the appropriate * input function is called. * * \param netif the lwIP network interface structure for this ethernetif. */ void ethernetif_input(struct netif *netif) { struct eth_hdr *ethhdr; struct pbuf *p; /* Update driver state machine. */ ksz8851snl_update(netif); /* Move received packet into a new pbuf. */ p = ksz8851snl_low_level_input(netif); if (p == NULL) return; /* Points to packet payload, which starts with an Ethernet header. */ ethhdr = p->payload; switch (htons(ethhdr->type)) { case ETHTYPE_IP: case ETHTYPE_ARP: #if PPPOE_SUPPORT case ETHTYPE_PPPOEDISC: case ETHTYPE_PPPOE: #endif /* PPPOE_SUPPORT */ /* Send packet to lwIP for processing. */ if (netif->input(p, netif) != ERR_OK) { LWIP_DEBUGF(NETIF_DEBUG, ("ethernetif_input: IP input error\n")); /* Free buffer. */ pbuf_free(p); } break; default: /* Free buffer. */ pbuf_free(p); break; } } /** * \brief Should be called at the beginning of the program to set up the * network interface. It calls the function ksz8851snl_low_level_init() to do the * actual setup of the hardware. * * \param netif the lwIP network interface structure for this ethernetif. * * \return ERR_OK if the loopif is initialized. * ERR_MEM if private data couldn't be allocated. * any other err_t on error. */ err_t ethernetif_init(struct netif *netif) { LWIP_ASSERT("netif != NULL", (netif != NULL)); gs_ksz8851snl_dev.netif = netif; #if LWIP_NETIF_HOSTNAME /* Initialize interface hostname */ netif->hostname = "ksz8851snldev"; #endif /* LWIP_NETIF_HOSTNAME */ /* * Initialize the snmp variables and counters inside the struct netif. * The last argument should be replaced with your link speed, in units * of bits per second. */ #if LWIP_SNMP NETIF_INIT_SNMP(netif, snmp_ifType_ethernet_csmacd, NET_LINK_SPEED); #endif /* LWIP_SNMP */ netif->state = &gs_ksz8851snl_dev; netif->name[0] = IFNAME0; netif->name[1] = IFNAME1; /* We directly use etharp_output() here to save a function call. * You can instead declare your own function an call etharp_output() * from it if you have to do some checks before sending (e.g. if link * is available...) */ netif->output = etharp_output; netif->linkoutput = ksz8851snl_low_level_output; /* Initialize the hardware. */ ksz8851snl_low_level_init(netif); #if NO_SYS == 0 err_t err; sys_thread_t id; /* Incoming packet notification semaphore. */ err = sys_sem_new(&gs_ksz8851snl_dev.sync_sem, 0); LWIP_ASSERT("ethernetif_init: ksz8851snl RX semaphore allocation ERROR!\n", (err == ERR_OK)); if (err == ERR_MEM) return ERR_MEM; id = sys_thread_new("ksz8851", ksz8851snl_task, &gs_ksz8851snl_dev, netifINTERFACE_TASK_STACK_SIZE, netifINTERFACE_TASK_PRIORITY); LWIP_ASSERT("ethernetif_init: ksz8851snl Task allocation ERROR!\n", (id != 0)); if (id == 0) return ERR_MEM; #endif return ERR_OK; }
30.32859
96
0.722701
acd6434e7c1becaf56eaf93e45e71bcf5a9d7a33
233
h
C
benchmarks/src/cuda/dragon_li/dragon_li/util/userConfig.h
abca3210/gpgpu-sim_simulations
bf7eaf6e49bf357e0cc2ecfe7e0ff446d88e2691
[ "BSD-2-Clause" ]
28
2017-09-06T21:12:53.000Z
2022-02-16T01:01:55.000Z
benchmarks/src/cuda/dragon_li/dragon_li/util/userConfig.h
abca3210/gpgpu-sim_simulations
bf7eaf6e49bf357e0cc2ecfe7e0ff446d88e2691
[ "BSD-2-Clause" ]
1
2019-10-02T13:56:24.000Z
2019-10-02T13:56:24.000Z
benchmarks/src/cuda/dragon_li/dragon_li/util/userConfig.h
abca3210/gpgpu-sim_simulations
bf7eaf6e49bf357e0cc2ecfe7e0ff446d88e2691
[ "BSD-2-Clause" ]
34
2017-12-14T01:06:58.000Z
2022-02-14T09:40:35.000Z
#pragma once namespace dragon_li { namespace util { class UserConfig { public: bool verbose; bool veryVerbose; UserConfig( bool _verbose, bool _veryVerbose) : verbose(_verbose), veryVerbose(_veryVerbose) {} }; } }
11.095238
31
0.703863
7538a61bf52c8e99d6d5a056cd354359543879cb
3,719
c
C
source/gps.c
sceaj/teensy_track_logger_v2
7120e33bd24000922c06be2367fb11bb4307580b
[ "MIT" ]
null
null
null
source/gps.c
sceaj/teensy_track_logger_v2
7120e33bd24000922c06be2367fb11bb4307580b
[ "MIT" ]
null
null
null
source/gps.c
sceaj/teensy_track_logger_v2
7120e33bd24000922c06be2367fb11bb4307580b
[ "MIT" ]
null
null
null
/* * gps.c * * Created on: Feb 15, 2021 * Author: sceaj * * MIT License * * Copyright (c) 2021 Jeff Rosen * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #include "gps.h" #include "FreeRTOS.h" #include "fsl_debug_console.h" #include "fsl_snvs_hp.h" #include "logger.h" #include "logrecord.h" #include "neo_m9n.h" #include "queue.h" #include "task.h" typedef struct gps_time_record { record_header_t header; gps_time_t gpsTime; uint8_t unused[11]; uint8_t chkA; uint8_t chkB; } log_gps_time_t; typedef struct gps_position_record { record_header_t header; gps_position_t gpsPosition; uint8_t unused[3]; uint8_t chkA; uint8_t chkB; } log_gps_position_t; typedef struct gps_velocity_record { record_header_t header; gps_velocity_t gpsVelocity; uint8_t unused[3]; uint8_t chkA; uint8_t chkB; } log_gps_velocity_t; static log_gps_time_t s_timeRecord; static log_gps_position_t s_positionRecord; static log_gps_velocity_t s_velocityRecord; status_t GpsInit(void) { status_t status = NEOM9N_UartInit(); if (kStatus_Success == status) { status = NEOM9N_GpsConfig(); } return status; } void GpsTask(void *pvParameters) { const TickType_t xPeriod = 5; TickType_t xLastWakeTime = xTaskGetTickCount(); uint32_t outputCounter = 0U; LogRecordHeaderInit(&s_timeRecord.header, LOGRECORD_CLASS_GPS, GPS_TIME); LogRecordHeaderInit(&s_positionRecord.header, LOGRECORD_CLASS_GPS, GPS_POSITION); LogRecordHeaderInit(&s_velocityRecord.header, LOGRECORD_CLASS_GPS, GPS_VELOCITY); for (;;) { if (NEOM9N_Process(&s_timeRecord.gpsTime, &s_positionRecord.gpsPosition, &s_velocityRecord.gpsVelocity)) { s_timeRecord.header.timestamp = xTaskGetTickCount(); LogRecordFinalize((log_record_t*)&s_timeRecord); xQueueSend(dataLogQueue, &s_timeRecord, 2U); s_positionRecord.header.timestamp = s_timeRecord.header.timestamp; LogRecordFinalize((log_record_t*)&s_positionRecord); xQueueSend(dataLogQueue, &s_positionRecord, 2U); s_velocityRecord.header.timestamp = s_timeRecord.header.timestamp; LogRecordFinalize((log_record_t*)&s_velocityRecord); xQueueSend(dataLogQueue, &s_velocityRecord, 2U); outputCounter++; } // Wait for the next cycle. vTaskDelayUntil(&xLastWakeTime, xPeriod); } }
35.084906
115
0.677333
d4e0e11c17342732136560a9470e3f192857c8d9
2,248
h
C
tetris.h
andreiapanasik/console_tetris
ab44b80b1cd72ca0094d45f73542a30c14e70d81
[ "MIT" ]
null
null
null
tetris.h
andreiapanasik/console_tetris
ab44b80b1cd72ca0094d45f73542a30c14e70d81
[ "MIT" ]
null
null
null
tetris.h
andreiapanasik/console_tetris
ab44b80b1cd72ca0094d45f73542a30c14e70d81
[ "MIT" ]
null
null
null
#ifndef TETRIS_H #define TETRIS_H struct game; /* Funkcja wyczyszcza strumień wejścia */ void areaCleanupIo(); /* Funkcja aktualizuje wyświetlaną informację */ void areaSetIoconfig(); /* Inicjalizacja boiska do gry @param t struktura zawierająca parametry dla gry oraz boiska @param width szerokość boiska @param height wysokość boiska */ void gameInit(struct game *t, int width, int height); /* Funkcja wyczyszcza tablice przedstawiającą boisko @param t struktura zawierająca boisko */ void gameClean(struct game *t); /* Funkcja wyświetla w konsoli bisko w aktualnym stanie @param t struktura zawierająca parametry dla gry oraz boiska */ void areaPrint(struct game *t); /* Funkcja sprawdza czy blok dotyka scianek boiska lub wysokość jest przekroczona @param t struktura zawierająca parametry dla gry oraz boiska @return zwraca jedynkę jeżeli występuje dotknięcie */ int hitCheck(struct game *t); /* Funkcja losowo generuje nowy blok oraz sprwdza czy gra nie skończe się po tym @param t struktura zawierająca parametry dla gry oraz boiska */ void newBlock(struct game *t); /* Funkcja drukuje wygenerowany wcześniej blok @param t struktura zawierająca parametry dla gry oraz boiska */ void printBlock(struct game *t); /* Funkcja obraca aktualny blok @param t struktura zawierająca parametry dla gry oraz boiska */ void rotateBlock(struct game *t); /* Funkcja przespiesza spadanie bloka @param t struktura zawierająca parametry dla gry oraz boiska */ void gravityBlock(struct game *t); /* Funkcja przesuwa w dól wszustkie leżące bloki kiedy jeden wiersz znika @param t struktura zawierająca parametry dla gry oraz boiska @param line numer znikającego wiersza */ void allBlocksFall(struct game *t, int line); /* Funkcja sprawdza, czy trzeba usunąć już wypełniony wirszy @param t struktura zawierająca parametry dla gry oraz boiska */ void checkLines(struct game *t); /* Funkcja zwiększa prędkość spadania bloków odpowiednio ilości punktów @param t struktura zawierająca parametry dla gry oraz boiska @return czas spadania bloka w nsek */ int gameLevel(struct game *t); /* Funkcja uruchamia grę @param width szerokość boiska @param height wysokość boiska */ void palyGame(int width, int height); #endif
23.663158
79
0.778025
8da47340a6fe99f7b6070904d580682c86bef6eb
708
h
C
XXDownload/Classes/XXDownloadTool.h
XXDownload/XXDownload
fd694c1922c07815cde5b9730376d6c3ac4970cc
[ "MIT" ]
16
2017-06-14T08:52:29.000Z
2018-11-24T09:45:46.000Z
XXDownload/Classes/XXDownloadTool.h
XXDownload/XXDownload
fd694c1922c07815cde5b9730376d6c3ac4970cc
[ "MIT" ]
1
2017-06-21T00:59:15.000Z
2017-06-21T00:59:41.000Z
XXDownload/Classes/XXDownloadTool.h
XXDownload/XXDownload
fd694c1922c07815cde5b9730376d6c3ac4970cc
[ "MIT" ]
4
2017-11-23T01:13:23.000Z
2018-11-08T11:21:11.000Z
// // XXDownloadTool.h // BackgroundDownload // // Created by xby on 2017/6/5. // Copyright © 2017年 wanxue. All rights reserved. // #import <UIKit/UIKit.h> #import "XXDownloadTask.h" #import "XXDownloadTaskDelegate.h" @interface XXDownloadTool: NSObject /** 下载单例工具 @return 下载工具 */ + (instancetype)sharedTool; /** 下载回调对象 */ @property (weak,nonatomic) id <XXDownloadTaskDelegate> delegate; /** 保存appDelegate */ @property (copy,nonatomic) void(^appdelegateFinishBlock)(void); /** 开始下载任务 */ - (void)startDownloadWithTask:(XXDownloadTask *)task; /** 暂停下载任务 */ - (void)pauseDownloadWithTask:(XXDownloadTask *)task; /** 删除下载任务 */ - (void)deleteDownloadWithTask:(XXDownloadTask *)task; @end
15.391304
64
0.706215
c0923bae4fc199455512605221a07b7a6fc84971
337,199
h
C
dev/ese/src/noncore/interop/exceptions.h
ScriptBox99/Extensible-Storage-Engine
3bcf428c8a041733043e18fd9ae55cffeba307b2
[ "MIT" ]
803
2021-01-30T02:25:26.000Z
2022-03-23T15:50:48.000Z
dev/ese/src/noncore/interop/exceptions.h
ScriptBox99/Extensible-Storage-Engine
3bcf428c8a041733043e18fd9ae55cffeba307b2
[ "MIT" ]
10
2021-01-30T23:45:49.000Z
2021-07-06T22:03:58.000Z
dev/ese/src/noncore/interop/exceptions.h
ScriptBox99/Extensible-Storage-Engine
3bcf428c8a041733043e18fd9ae55cffeba307b2
[ "MIT" ]
49
2021-01-30T11:04:35.000Z
2022-03-24T11:25:10.000Z
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #pragma once // Auto generated by exceptions.pl using namespace System; using namespace System::Security::Permissions; namespace Microsoft { #if (ESENT) namespace Windows #else namespace Exchange #endif { namespace Isam { // Base error class // No exceptions should derive directly from this... [Serializable] public ref class IsamErrorException : public SystemException, public System::Runtime::Serialization::ISerializable { private: JET_ERR m_err; String ^ m_description; protected: IsamErrorException( String ^ description, Exception^ innerException ) : SystemException( description, innerException ) { } public: property JET_ERR Err { JET_ERR get() { return m_err; } } property String ^ Description { String ^ get ( ) { return m_description; } } IsamErrorException( String ^ description, JET_ERR err ) : m_err(err), m_description( description ), SystemException( String::Format( L"{0} ({1})", description, err ) ) { } IsamErrorException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : SystemException( info, context ) { m_err = info->GetInt32( "m_err" ); m_description = info->GetString( "m_description" ); } [SecurityPermission(SecurityAction::LinkDemand, Flags = SecurityPermissionFlag::SerializationFormatter)] virtual void GetObjectData( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) override { __super::GetObjectData( info, context ); info->AddValue( "m_err", m_err ); info->AddValue( "m_description", m_description ); } }; // The basic .Isam/.Interop exception hierarchy ... // IsamErrorException // | // |-- IsamOperationException // | |-- IsamFatalException // | |-- IsamIOException // bad IO issues, may or may not be transient. // | |-- IsamResourceException // | |-- IsamMemoryException // out of memory (all variants) // | |-- IsamQuotaException // | |-- IsamDiskException // out of disk space (all variants) // |-- IsamDataException // | |-- IsamCorruptionException // | |-- IsamInconsistentException // | |-- IsamFragmentationException // |-- IsamApiException // |-- IsamUsageException // |-- IsamStateException // |-- IsamObsoleteException [Serializable] public ref class IsamOperationException : public IsamErrorException { protected: IsamOperationException( String ^ description, Exception^ innerException ) : IsamErrorException( description, innerException ) { } public: IsamOperationException( String ^ description, JET_ERR err ) : IsamErrorException( description, err ) { } IsamOperationException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamErrorException( info, context ) { } }; [Serializable] public ref class IsamDataException : public IsamErrorException { protected: IsamDataException( String ^ description, Exception^ innerException ) : IsamErrorException( description, innerException ) { } public: IsamDataException( String ^ description, JET_ERR err ) : IsamErrorException( description, err ) { } IsamDataException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamErrorException( info, context ) { } }; [Serializable] public ref class IsamApiException : public IsamErrorException { protected: IsamApiException( String ^ description, Exception^ innerException ) : IsamErrorException( description, innerException ) { } public: IsamApiException( String ^ description, JET_ERR err ) : IsamErrorException( description, err ) { } IsamApiException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamErrorException( info, context ) { } }; [Serializable] public ref class IsamFatalException : public IsamOperationException { protected: IsamFatalException( String ^ description, Exception^ innerException ) : IsamOperationException( description, innerException ) { } public: IsamFatalException( String ^ description, JET_ERR err ) : IsamOperationException( description, err ) { } IsamFatalException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamOperationException( info, context ) { } }; [Serializable] public ref class IsamIOException : public IsamOperationException { protected: IsamIOException( String ^ description, Exception^ innerException ) : IsamOperationException( description, innerException ) { } public: IsamIOException( String ^ description, JET_ERR err ) : IsamOperationException( description, err ) { } IsamIOException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamOperationException( info, context ) { } }; [Serializable] public ref class IsamResourceException : public IsamOperationException { protected: IsamResourceException( String ^ description, Exception^ innerException ) : IsamOperationException( description, innerException ) { } public: IsamResourceException( String ^ description, JET_ERR err ) : IsamOperationException( description, err ) { } IsamResourceException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamOperationException( info, context ) { } }; [Serializable] public ref class IsamMemoryException : public IsamResourceException { protected: IsamMemoryException( String ^ description, Exception^ innerException ) : IsamResourceException( description, innerException ) { } public: IsamMemoryException( String ^ description, JET_ERR err ) : IsamResourceException( description, err ) { } IsamMemoryException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamResourceException( info, context ) { } }; [Serializable] public ref class IsamQuotaException : public IsamResourceException { protected: IsamQuotaException( String ^ description, Exception^ innerException ) : IsamResourceException( description, innerException ) { } public: IsamQuotaException( String ^ description, JET_ERR err ) : IsamResourceException( description, err ) { } IsamQuotaException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamResourceException( info, context ) { } }; [Serializable] public ref class IsamDiskException : public IsamResourceException { protected: IsamDiskException( String ^ description, Exception^ innerException ) : IsamResourceException( description, innerException ) { } public: IsamDiskException( String ^ description, JET_ERR err ) : IsamResourceException( description, err ) { } IsamDiskException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamResourceException( info, context ) { } }; [Serializable] public ref class IsamCorruptionException : public IsamDataException { protected: IsamCorruptionException( String ^ description, Exception^ innerException ) : IsamDataException( description, innerException ) { } public: IsamCorruptionException( String ^ description, JET_ERR err ) : IsamDataException( description, err ) { } IsamCorruptionException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamDataException( info, context ) { } }; [Serializable] public ref class IsamInconsistentException : public IsamDataException { protected: IsamInconsistentException( String ^ description, Exception^ innerException ) : IsamDataException( description, innerException ) { } public: IsamInconsistentException( String ^ description, JET_ERR err ) : IsamDataException( description, err ) { } IsamInconsistentException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamDataException( info, context ) { } }; [Serializable] public ref class IsamFragmentationException : public IsamDataException { protected: IsamFragmentationException( String ^ description, Exception^ innerException ) : IsamDataException( description, innerException ) { } public: IsamFragmentationException( String ^ description, JET_ERR err ) : IsamDataException( description, err ) { } IsamFragmentationException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamDataException( info, context ) { } }; [Serializable] public ref class IsamUsageException : public IsamApiException { protected: IsamUsageException( String ^ description, Exception^ innerException ) : IsamApiException( description, innerException ) { } public: IsamUsageException( String ^ description, JET_ERR err ) : IsamApiException( description, err ) { } IsamUsageException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamApiException( info, context ) { } }; [Serializable] public ref class IsamStateException : public IsamApiException { protected: IsamStateException( String ^ description, Exception^ innerException ) : IsamApiException( description, innerException ) { } public: IsamStateException( String ^ description, JET_ERR err ) : IsamApiException( description, err ) { } IsamStateException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamApiException( info, context ) { } }; [Serializable] public ref class IsamObsoleteException : public IsamApiException { protected: IsamObsoleteException( String ^ description, Exception^ innerException ) : IsamApiException( description, innerException ) { } public: IsamObsoleteException( String ^ description, JET_ERR err ) : IsamApiException( description, err ) { } IsamObsoleteException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamApiException( info, context ) { } }; // Begin the list of actual error classes. // [Serializable] public ref class IsamOutOfThreadsException : public IsamMemoryException { public: IsamOutOfThreadsException() : IsamMemoryException( "Could not start thread", JET_errOutOfThreads) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamOutOfThreadsException( String ^ description, Exception^ innerException ) : IsamMemoryException( description, innerException ) { } IsamOutOfThreadsException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamMemoryException( info, context ) { } }; [Serializable] public ref class IsamTooManyIOException : public IsamResourceException { public: IsamTooManyIOException() : IsamResourceException( "System busy due to too many IOs", JET_errTooManyIO) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamTooManyIOException( String ^ description, Exception^ innerException ) : IsamResourceException( description, innerException ) { } IsamTooManyIOException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamResourceException( info, context ) { } }; [Serializable] public ref class IsamTaskDroppedException : public IsamResourceException { public: IsamTaskDroppedException() : IsamResourceException( "A requested async task could not be executed", JET_errTaskDropped) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamTaskDroppedException( String ^ description, Exception^ innerException ) : IsamResourceException( description, innerException ) { } IsamTaskDroppedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamResourceException( info, context ) { } }; [Serializable] public ref class IsamInternalErrorException : public IsamOperationException { public: IsamInternalErrorException() : IsamOperationException( "Fatal internal error", JET_errInternalError) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInternalErrorException( String ^ description, Exception^ innerException ) : IsamOperationException( description, innerException ) { } IsamInternalErrorException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamOperationException( info, context ) { } }; [Serializable] public ref class IsamDisabledFunctionalityException : public IsamUsageException { public: IsamDisabledFunctionalityException() : IsamUsageException( "You are running MinESE, that does not have all features compiled in. This functionality is only supported in a full version of ESE.", JET_errDisabledFunctionality) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDisabledFunctionalityException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamDisabledFunctionalityException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamUnloadableOSFunctionalityException : public IsamFatalException { public: IsamUnloadableOSFunctionalityException() : IsamFatalException( "The desired OS functionality could not be located and loaded / linked.", JET_errUnloadableOSFunctionality) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamUnloadableOSFunctionalityException( String ^ description, Exception^ innerException ) : IsamFatalException( description, innerException ) { } IsamUnloadableOSFunctionalityException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamFatalException( info, context ) { } }; [Serializable] public ref class IsamDeviceMissingException : public IsamFatalException { public: IsamDeviceMissingException() : IsamFatalException( "A required hardware device or functionality was missing.", JET_errDeviceMissing) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDeviceMissingException( String ^ description, Exception^ innerException ) : IsamFatalException( description, innerException ) { } IsamDeviceMissingException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamFatalException( info, context ) { } }; [Serializable] public ref class IsamDeviceMisconfiguredException : public IsamFatalException { public: IsamDeviceMisconfiguredException() : IsamFatalException( "A required hardware device was misconfigured externally.", JET_errDeviceMisconfigured) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDeviceMisconfiguredException( String ^ description, Exception^ innerException ) : IsamFatalException( description, innerException ) { } IsamDeviceMisconfiguredException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamFatalException( info, context ) { } }; [Serializable] public ref class IsamDeviceTimeoutException : public IsamOperationException { public: IsamDeviceTimeoutException() : IsamOperationException( "Timeout occurred while waiting for a hardware device to respond.", JET_errDeviceTimeout) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDeviceTimeoutException( String ^ description, Exception^ innerException ) : IsamOperationException( description, innerException ) { } IsamDeviceTimeoutException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamOperationException( info, context ) { } }; [Serializable] public ref class IsamDeviceFailureException : public IsamOperationException { public: IsamDeviceFailureException() : IsamOperationException( "A required hardware device didn't function as expected.", JET_errDeviceFailure) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDeviceFailureException( String ^ description, Exception^ innerException ) : IsamOperationException( description, innerException ) { } IsamDeviceFailureException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamOperationException( info, context ) { } }; [Serializable] public ref class IsamDatabaseBufferDependenciesCorruptedException : public IsamCorruptionException { public: IsamDatabaseBufferDependenciesCorruptedException() : IsamCorruptionException( "Buffer dependencies improperly set. Recovery failure", JET_errDatabaseBufferDependenciesCorrupted) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDatabaseBufferDependenciesCorruptedException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamDatabaseBufferDependenciesCorruptedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamBadPageLinkException : public IsamCorruptionException { public: IsamBadPageLinkException() : IsamCorruptionException( "Database corrupted", JET_errBadPageLink) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamBadPageLinkException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamBadPageLinkException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamNTSystemCallFailedException : public IsamOperationException { public: IsamNTSystemCallFailedException() : IsamOperationException( "A call to the operating system failed", JET_errNTSystemCallFailed) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamNTSystemCallFailedException( String ^ description, Exception^ innerException ) : IsamOperationException( description, innerException ) { } IsamNTSystemCallFailedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamOperationException( info, context ) { } }; [Serializable] public ref class IsamBadParentPageLinkException : public IsamCorruptionException { public: IsamBadParentPageLinkException() : IsamCorruptionException( "Database corrupted", JET_errBadParentPageLink) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamBadParentPageLinkException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamBadParentPageLinkException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamSPAvailExtCorruptedException : public IsamCorruptionException { public: IsamSPAvailExtCorruptedException() : IsamCorruptionException( "AvailExt space tree is corrupt", JET_errSPAvailExtCorrupted) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamSPAvailExtCorruptedException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamSPAvailExtCorruptedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamSPOwnExtCorruptedException : public IsamCorruptionException { public: IsamSPOwnExtCorruptedException() : IsamCorruptionException( "OwnExt space tree is corrupt", JET_errSPOwnExtCorrupted) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamSPOwnExtCorruptedException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamSPOwnExtCorruptedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamDbTimeCorruptedException : public IsamCorruptionException { public: IsamDbTimeCorruptedException() : IsamCorruptionException( "Dbtime on current page is greater than global database dbtime", JET_errDbTimeCorrupted) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDbTimeCorruptedException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamDbTimeCorruptedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamKeyTruncatedException : public IsamStateException { public: IsamKeyTruncatedException() : IsamStateException( "key truncated on index that disallows key truncation", JET_errKeyTruncated) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamKeyTruncatedException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamKeyTruncatedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamDatabaseLeakInSpaceException : public IsamStateException { public: IsamDatabaseLeakInSpaceException() : IsamStateException( "Some database pages have become unreachable even from the avail tree, only an offline defragmentation can return the lost space.", JET_errDatabaseLeakInSpace) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDatabaseLeakInSpaceException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamDatabaseLeakInSpaceException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamBadEmptyPageException : public IsamCorruptionException { public: IsamBadEmptyPageException() : IsamCorruptionException( "Database corrupted. Searching an unexpectedly empty page.", JET_errBadEmptyPage) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamBadEmptyPageException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamBadEmptyPageException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamBadLineCountException : public IsamCorruptionException { public: IsamBadLineCountException() : IsamCorruptionException( "Number of lines on the page is too few compared to the line being operated on", JET_errBadLineCount) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamBadLineCountException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamBadLineCountException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamPageTagCorruptedException : public IsamCorruptionException { public: IsamPageTagCorruptedException() : IsamCorruptionException( "A tag / line on page is logically corrupted, offset or size is bad, or tag count on page is bad.", JET_errPageTagCorrupted) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamPageTagCorruptedException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamPageTagCorruptedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamNodeCorruptedException : public IsamCorruptionException { public: IsamNodeCorruptedException() : IsamCorruptionException( "A node or prefix node is logically corrupted, the key suffix size is larger than the node or line's size.", JET_errNodeCorrupted) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamNodeCorruptedException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamNodeCorruptedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamCannotSeparateIntrinsicLVException : public IsamUsageException { public: IsamCannotSeparateIntrinsicLVException() : IsamUsageException( "illegal attempt to separate an LV which must be intrinsic", JET_errCannotSeparateIntrinsicLV) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamCannotSeparateIntrinsicLVException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamCannotSeparateIntrinsicLVException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamSeparatedLongValueException : public IsamStateException { public: IsamSeparatedLongValueException() : IsamStateException( "Operation not supported on separated long-value", JET_errSeparatedLongValue) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamSeparatedLongValueException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamSeparatedLongValueException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamMustBeSeparateLongValueException : public IsamUsageException { public: IsamMustBeSeparateLongValueException() : IsamUsageException( "Can only preread long value columns that can be separate, e.g. not size constrained so that they are fixed or variable columns", JET_errMustBeSeparateLongValue) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamMustBeSeparateLongValueException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamMustBeSeparateLongValueException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamInvalidPrereadException : public IsamUsageException { public: IsamInvalidPrereadException() : IsamUsageException( "Cannot preread long values when current index secondary", JET_errInvalidPreread) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInvalidPrereadException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamInvalidPrereadException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamInvalidColumnReferenceException : public IsamStateException { public: IsamInvalidColumnReferenceException() : IsamStateException( "Column reference is invalid", JET_errInvalidColumnReference) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInvalidColumnReferenceException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamInvalidColumnReferenceException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamStaleColumnReferenceException : public IsamStateException { public: IsamStaleColumnReferenceException() : IsamStateException( "Column reference is stale", JET_errStaleColumnReference) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamStaleColumnReferenceException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamStaleColumnReferenceException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamCompressionIntegrityCheckFailedException : public IsamCorruptionException { public: IsamCompressionIntegrityCheckFailedException() : IsamCorruptionException( "A compression integrity check failed. Decompressing data failed the integrity checksum indicating a data corruption in the compress/decompress pipeline.", JET_errCompressionIntegrityCheckFailed) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamCompressionIntegrityCheckFailedException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamCompressionIntegrityCheckFailedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamLogFileCorruptException : public IsamCorruptionException { public: IsamLogFileCorruptException() : IsamCorruptionException( "Log file is corrupt", JET_errLogFileCorrupt) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamLogFileCorruptException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamLogFileCorruptException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamNoBackupDirectoryException : public IsamUsageException { public: IsamNoBackupDirectoryException() : IsamUsageException( "No backup directory given", JET_errNoBackupDirectory) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamNoBackupDirectoryException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamNoBackupDirectoryException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamBackupDirectoryNotEmptyException : public IsamUsageException { public: IsamBackupDirectoryNotEmptyException() : IsamUsageException( "The backup directory is not empty", JET_errBackupDirectoryNotEmpty) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamBackupDirectoryNotEmptyException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamBackupDirectoryNotEmptyException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamBackupInProgressException : public IsamStateException { public: IsamBackupInProgressException() : IsamStateException( "Backup is active already", JET_errBackupInProgress) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamBackupInProgressException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamBackupInProgressException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamRestoreInProgressException : public IsamStateException { public: IsamRestoreInProgressException() : IsamStateException( "Restore in progress", JET_errRestoreInProgress) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamRestoreInProgressException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamRestoreInProgressException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamMissingPreviousLogFileException : public IsamCorruptionException { public: IsamMissingPreviousLogFileException() : IsamCorruptionException( "Missing the log file for check point", JET_errMissingPreviousLogFile) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamMissingPreviousLogFileException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamMissingPreviousLogFileException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamLogWriteFailException : public IsamIOException { public: IsamLogWriteFailException() : IsamIOException( "Failure writing to log file", JET_errLogWriteFail) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamLogWriteFailException( String ^ description, Exception^ innerException ) : IsamIOException( description, innerException ) { } IsamLogWriteFailException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamIOException( info, context ) { } }; [Serializable] public ref class IsamLogDisabledDueToRecoveryFailureException : public IsamFatalException { public: IsamLogDisabledDueToRecoveryFailureException() : IsamFatalException( "Try to log something after recovery failed", JET_errLogDisabledDueToRecoveryFailure) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamLogDisabledDueToRecoveryFailureException( String ^ description, Exception^ innerException ) : IsamFatalException( description, innerException ) { } IsamLogDisabledDueToRecoveryFailureException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamFatalException( info, context ) { } }; [Serializable] public ref class IsamLogGenerationMismatchException : public IsamInconsistentException { public: IsamLogGenerationMismatchException() : IsamInconsistentException( "Name of logfile does not match internal generation number", JET_errLogGenerationMismatch) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamLogGenerationMismatchException( String ^ description, Exception^ innerException ) : IsamInconsistentException( description, innerException ) { } IsamLogGenerationMismatchException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamInconsistentException( info, context ) { } }; [Serializable] public ref class IsamBadLogVersionException : public IsamInconsistentException { public: IsamBadLogVersionException() : IsamInconsistentException( "Version of log file is not compatible with Jet version", JET_errBadLogVersion) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamBadLogVersionException( String ^ description, Exception^ innerException ) : IsamInconsistentException( description, innerException ) { } IsamBadLogVersionException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamInconsistentException( info, context ) { } }; [Serializable] public ref class IsamInvalidLogSequenceException : public IsamCorruptionException { public: IsamInvalidLogSequenceException() : IsamCorruptionException( "Timestamp in next log does not match expected", JET_errInvalidLogSequence) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInvalidLogSequenceException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamInvalidLogSequenceException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamLoggingDisabledException : public IsamUsageException { public: IsamLoggingDisabledException() : IsamUsageException( "Log is not active", JET_errLoggingDisabled) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamLoggingDisabledException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamLoggingDisabledException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamLogSequenceEndException : public IsamFragmentationException { public: IsamLogSequenceEndException() : IsamFragmentationException( "Maximum log file number exceeded", JET_errLogSequenceEnd) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamLogSequenceEndException( String ^ description, Exception^ innerException ) : IsamFragmentationException( description, innerException ) { } IsamLogSequenceEndException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamFragmentationException( info, context ) { } }; [Serializable] public ref class IsamNoBackupException : public IsamStateException { public: IsamNoBackupException() : IsamStateException( "No backup in progress", JET_errNoBackup) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamNoBackupException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamNoBackupException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamInvalidBackupSequenceException : public IsamUsageException { public: IsamInvalidBackupSequenceException() : IsamUsageException( "Backup call out of sequence", JET_errInvalidBackupSequence) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInvalidBackupSequenceException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamInvalidBackupSequenceException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamBackupNotAllowedYetException : public IsamStateException { public: IsamBackupNotAllowedYetException() : IsamStateException( "Cannot do backup now", JET_errBackupNotAllowedYet) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamBackupNotAllowedYetException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamBackupNotAllowedYetException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamDeleteBackupFileFailException : public IsamIOException { public: IsamDeleteBackupFileFailException() : IsamIOException( "Could not delete backup file", JET_errDeleteBackupFileFail) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDeleteBackupFileFailException( String ^ description, Exception^ innerException ) : IsamIOException( description, innerException ) { } IsamDeleteBackupFileFailException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamIOException( info, context ) { } }; [Serializable] public ref class IsamMakeBackupDirectoryFailException : public IsamIOException { public: IsamMakeBackupDirectoryFailException() : IsamIOException( "Could not make backup temp directory", JET_errMakeBackupDirectoryFail) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamMakeBackupDirectoryFailException( String ^ description, Exception^ innerException ) : IsamIOException( description, innerException ) { } IsamMakeBackupDirectoryFailException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamIOException( info, context ) { } }; [Serializable] public ref class IsamInvalidBackupException : public IsamUsageException { public: IsamInvalidBackupException() : IsamUsageException( "Cannot perform incremental backup when circular logging enabled", JET_errInvalidBackup) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInvalidBackupException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamInvalidBackupException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamRecoveredWithErrorsException : public IsamStateException { public: IsamRecoveredWithErrorsException() : IsamStateException( "Restored with errors", JET_errRecoveredWithErrors) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamRecoveredWithErrorsException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamRecoveredWithErrorsException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamMissingLogFileException : public IsamCorruptionException { public: IsamMissingLogFileException() : IsamCorruptionException( "Current log file missing", JET_errMissingLogFile) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamMissingLogFileException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamMissingLogFileException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamLogDiskFullException : public IsamDiskException { public: IsamLogDiskFullException() : IsamDiskException( "Log disk full", JET_errLogDiskFull) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamLogDiskFullException( String ^ description, Exception^ innerException ) : IsamDiskException( description, innerException ) { } IsamLogDiskFullException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamDiskException( info, context ) { } }; [Serializable] public ref class IsamBadLogSignatureException : public IsamInconsistentException { public: IsamBadLogSignatureException() : IsamInconsistentException( "Bad signature for a log file", JET_errBadLogSignature) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamBadLogSignatureException( String ^ description, Exception^ innerException ) : IsamInconsistentException( description, innerException ) { } IsamBadLogSignatureException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamInconsistentException( info, context ) { } }; [Serializable] public ref class IsamBadCheckpointSignatureException : public IsamInconsistentException { public: IsamBadCheckpointSignatureException() : IsamInconsistentException( "Bad signature for a checkpoint file", JET_errBadCheckpointSignature) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamBadCheckpointSignatureException( String ^ description, Exception^ innerException ) : IsamInconsistentException( description, innerException ) { } IsamBadCheckpointSignatureException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamInconsistentException( info, context ) { } }; [Serializable] public ref class IsamCheckpointCorruptException : public IsamCorruptionException { public: IsamCheckpointCorruptException() : IsamCorruptionException( "Checkpoint file not found or corrupt", JET_errCheckpointCorrupt) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamCheckpointCorruptException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamCheckpointCorruptException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamBadPatchPageException : public IsamInconsistentException { public: IsamBadPatchPageException() : IsamInconsistentException( "Patch file page is not valid", JET_errBadPatchPage) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamBadPatchPageException( String ^ description, Exception^ innerException ) : IsamInconsistentException( description, innerException ) { } IsamBadPatchPageException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamInconsistentException( info, context ) { } }; [Serializable] public ref class IsamRedoAbruptEndedException : public IsamCorruptionException { public: IsamRedoAbruptEndedException() : IsamCorruptionException( "Redo abruptly ended due to sudden failure in reading logs from log file", JET_errRedoAbruptEnded) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamRedoAbruptEndedException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamRedoAbruptEndedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamDatabaseLogSetMismatchException : public IsamInconsistentException { public: IsamDatabaseLogSetMismatchException() : IsamInconsistentException( "Database does not belong with the current set of log files", JET_errDatabaseLogSetMismatch) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDatabaseLogSetMismatchException( String ^ description, Exception^ innerException ) : IsamInconsistentException( description, innerException ) { } IsamDatabaseLogSetMismatchException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamInconsistentException( info, context ) { } }; [Serializable] public ref class IsamLogFileSizeMismatchException : public IsamUsageException { public: IsamLogFileSizeMismatchException() : IsamUsageException( "actual log file size does not match JET_paramLogFileSize", JET_errLogFileSizeMismatch) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamLogFileSizeMismatchException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamLogFileSizeMismatchException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamCheckpointFileNotFoundException : public IsamInconsistentException { public: IsamCheckpointFileNotFoundException() : IsamInconsistentException( "Could not locate checkpoint file", JET_errCheckpointFileNotFound) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamCheckpointFileNotFoundException( String ^ description, Exception^ innerException ) : IsamInconsistentException( description, innerException ) { } IsamCheckpointFileNotFoundException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamInconsistentException( info, context ) { } }; [Serializable] public ref class IsamRequiredLogFilesMissingException : public IsamInconsistentException { public: IsamRequiredLogFilesMissingException() : IsamInconsistentException( "The required log files for recovery is missing.", JET_errRequiredLogFilesMissing) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamRequiredLogFilesMissingException( String ^ description, Exception^ innerException ) : IsamInconsistentException( description, innerException ) { } IsamRequiredLogFilesMissingException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamInconsistentException( info, context ) { } }; [Serializable] public ref class IsamSoftRecoveryOnBackupDatabaseException : public IsamUsageException { public: IsamSoftRecoveryOnBackupDatabaseException() : IsamUsageException( "Soft recovery is intended on a backup database. Restore should be used instead", JET_errSoftRecoveryOnBackupDatabase) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamSoftRecoveryOnBackupDatabaseException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamSoftRecoveryOnBackupDatabaseException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamLogFileSizeMismatchDatabasesConsistentException : public IsamStateException { public: IsamLogFileSizeMismatchDatabasesConsistentException() : IsamStateException( "databases have been recovered, but the log file size used during recovery does not match JET_paramLogFileSize", JET_errLogFileSizeMismatchDatabasesConsistent) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamLogFileSizeMismatchDatabasesConsistentException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamLogFileSizeMismatchDatabasesConsistentException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamLogSectorSizeMismatchException : public IsamFragmentationException { public: IsamLogSectorSizeMismatchException() : IsamFragmentationException( "the log file sector size does not match the current volume's sector size", JET_errLogSectorSizeMismatch) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamLogSectorSizeMismatchException( String ^ description, Exception^ innerException ) : IsamFragmentationException( description, innerException ) { } IsamLogSectorSizeMismatchException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamFragmentationException( info, context ) { } }; [Serializable] public ref class IsamLogSectorSizeMismatchDatabasesConsistentException : public IsamStateException { public: IsamLogSectorSizeMismatchDatabasesConsistentException() : IsamStateException( "databases have been recovered, but the log file sector size (used during recovery) does not match the current volume's sector size", JET_errLogSectorSizeMismatchDatabasesConsistent) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamLogSectorSizeMismatchDatabasesConsistentException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamLogSectorSizeMismatchDatabasesConsistentException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamLogSequenceEndDatabasesConsistentException : public IsamFragmentationException { public: IsamLogSequenceEndDatabasesConsistentException() : IsamFragmentationException( "databases have been recovered, but all possible log generations in the current sequence are used; delete all log files and the checkpoint file and backup the databases before continuing", JET_errLogSequenceEndDatabasesConsistent) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamLogSequenceEndDatabasesConsistentException( String ^ description, Exception^ innerException ) : IsamFragmentationException( description, innerException ) { } IsamLogSequenceEndDatabasesConsistentException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamFragmentationException( info, context ) { } }; [Serializable] public ref class IsamDatabaseDirtyShutdownException : public IsamInconsistentException { public: IsamDatabaseDirtyShutdownException() : IsamInconsistentException( "Database was not shutdown cleanly. Recovery must first be run to properly complete database operations for the previous shutdown.", JET_errDatabaseDirtyShutdown) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDatabaseDirtyShutdownException( String ^ description, Exception^ innerException ) : IsamInconsistentException( description, innerException ) { } IsamDatabaseDirtyShutdownException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamInconsistentException( info, context ) { } }; [Serializable] public ref class IsamConsistentTimeMismatchException : public IsamInconsistentException { public: IsamConsistentTimeMismatchException() : IsamInconsistentException( "Database last consistent time unmatched", JET_errConsistentTimeMismatch) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamConsistentTimeMismatchException( String ^ description, Exception^ innerException ) : IsamInconsistentException( description, innerException ) { } IsamConsistentTimeMismatchException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamInconsistentException( info, context ) { } }; [Serializable] public ref class IsamEndingRestoreLogTooLowException : public IsamInconsistentException { public: IsamEndingRestoreLogTooLowException() : IsamInconsistentException( "The starting log number too low for the restore", JET_errEndingRestoreLogTooLow) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamEndingRestoreLogTooLowException( String ^ description, Exception^ innerException ) : IsamInconsistentException( description, innerException ) { } IsamEndingRestoreLogTooLowException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamInconsistentException( info, context ) { } }; [Serializable] public ref class IsamStartingRestoreLogTooHighException : public IsamInconsistentException { public: IsamStartingRestoreLogTooHighException() : IsamInconsistentException( "The starting log number too high for the restore", JET_errStartingRestoreLogTooHigh) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamStartingRestoreLogTooHighException( String ^ description, Exception^ innerException ) : IsamInconsistentException( description, innerException ) { } IsamStartingRestoreLogTooHighException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamInconsistentException( info, context ) { } }; [Serializable] public ref class IsamGivenLogFileHasBadSignatureException : public IsamInconsistentException { public: IsamGivenLogFileHasBadSignatureException() : IsamInconsistentException( "Restore log file has bad signature", JET_errGivenLogFileHasBadSignature) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamGivenLogFileHasBadSignatureException( String ^ description, Exception^ innerException ) : IsamInconsistentException( description, innerException ) { } IsamGivenLogFileHasBadSignatureException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamInconsistentException( info, context ) { } }; [Serializable] public ref class IsamGivenLogFileIsNotContiguousException : public IsamInconsistentException { public: IsamGivenLogFileIsNotContiguousException() : IsamInconsistentException( "Restore log file is not contiguous", JET_errGivenLogFileIsNotContiguous) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamGivenLogFileIsNotContiguousException( String ^ description, Exception^ innerException ) : IsamInconsistentException( description, innerException ) { } IsamGivenLogFileIsNotContiguousException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamInconsistentException( info, context ) { } }; [Serializable] public ref class IsamMissingRestoreLogFilesException : public IsamInconsistentException { public: IsamMissingRestoreLogFilesException() : IsamInconsistentException( "Some restore log files are missing", JET_errMissingRestoreLogFiles) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamMissingRestoreLogFilesException( String ^ description, Exception^ innerException ) : IsamInconsistentException( description, innerException ) { } IsamMissingRestoreLogFilesException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamInconsistentException( info, context ) { } }; [Serializable] public ref class IsamMissingFullBackupException : public IsamStateException { public: IsamMissingFullBackupException() : IsamStateException( "The database missed a previous full backup before incremental backup", JET_errMissingFullBackup) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamMissingFullBackupException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamMissingFullBackupException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamDatabaseAlreadyUpgradedException : public IsamStateException { public: IsamDatabaseAlreadyUpgradedException() : IsamStateException( "Attempted to upgrade a database that is already current", JET_errDatabaseAlreadyUpgraded) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDatabaseAlreadyUpgradedException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamDatabaseAlreadyUpgradedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamDatabaseIncompleteUpgradeException : public IsamStateException { public: IsamDatabaseIncompleteUpgradeException() : IsamStateException( "Attempted to use a database which was only partially converted to the current format -- must restore from backup", JET_errDatabaseIncompleteUpgrade) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDatabaseIncompleteUpgradeException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamDatabaseIncompleteUpgradeException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamMissingCurrentLogFilesException : public IsamInconsistentException { public: IsamMissingCurrentLogFilesException() : IsamInconsistentException( "Some current log files are missing for continuous restore", JET_errMissingCurrentLogFiles) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamMissingCurrentLogFilesException( String ^ description, Exception^ innerException ) : IsamInconsistentException( description, innerException ) { } IsamMissingCurrentLogFilesException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamInconsistentException( info, context ) { } }; [Serializable] public ref class IsamDbTimeTooOldException : public IsamCorruptionException { public: IsamDbTimeTooOldException() : IsamCorruptionException( "dbtime on page smaller than dbtimeBefore in record", JET_errDbTimeTooOld) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDbTimeTooOldException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamDbTimeTooOldException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamDbTimeTooNewException : public IsamCorruptionException { public: IsamDbTimeTooNewException() : IsamCorruptionException( "dbtime on page in advance of the dbtimeBefore in record", JET_errDbTimeTooNew) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDbTimeTooNewException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamDbTimeTooNewException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamMissingFileToBackupException : public IsamInconsistentException { public: IsamMissingFileToBackupException() : IsamInconsistentException( "Some log or patch files are missing during backup", JET_errMissingFileToBackup) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamMissingFileToBackupException( String ^ description, Exception^ innerException ) : IsamInconsistentException( description, innerException ) { } IsamMissingFileToBackupException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamInconsistentException( info, context ) { } }; [Serializable] public ref class IsamLogTornWriteDuringHardRestoreException : public IsamCorruptionException { public: IsamLogTornWriteDuringHardRestoreException() : IsamCorruptionException( "torn-write was detected in a backup set during hard restore", JET_errLogTornWriteDuringHardRestore) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamLogTornWriteDuringHardRestoreException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamLogTornWriteDuringHardRestoreException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamLogTornWriteDuringHardRecoveryException : public IsamCorruptionException { public: IsamLogTornWriteDuringHardRecoveryException() : IsamCorruptionException( "torn-write was detected during hard recovery (log was not part of a backup set)", JET_errLogTornWriteDuringHardRecovery) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamLogTornWriteDuringHardRecoveryException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamLogTornWriteDuringHardRecoveryException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamLogCorruptDuringHardRestoreException : public IsamCorruptionException { public: IsamLogCorruptDuringHardRestoreException() : IsamCorruptionException( "corruption was detected in a backup set during hard restore", JET_errLogCorruptDuringHardRestore) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamLogCorruptDuringHardRestoreException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamLogCorruptDuringHardRestoreException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamLogCorruptDuringHardRecoveryException : public IsamCorruptionException { public: IsamLogCorruptDuringHardRecoveryException() : IsamCorruptionException( "corruption was detected during hard recovery (log was not part of a backup set)", JET_errLogCorruptDuringHardRecovery) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamLogCorruptDuringHardRecoveryException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamLogCorruptDuringHardRecoveryException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamBadRestoreTargetInstanceException : public IsamUsageException { public: IsamBadRestoreTargetInstanceException() : IsamUsageException( "TargetInstance specified for restore is not found or log files don't match", JET_errBadRestoreTargetInstance) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamBadRestoreTargetInstanceException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamBadRestoreTargetInstanceException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamRecoveredWithoutUndoException : public IsamStateException { public: IsamRecoveredWithoutUndoException() : IsamStateException( "Soft recovery successfully replayed all operations, but the Undo phase of recovery was skipped", JET_errRecoveredWithoutUndo) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamRecoveredWithoutUndoException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamRecoveredWithoutUndoException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamCommittedLogFilesMissingException : public IsamCorruptionException { public: IsamCommittedLogFilesMissingException() : IsamCorruptionException( "One or more logs that were committed to this database, are missing. These log files are required to maintain durable ACID semantics, but not required to maintain consistency if the JET_bitReplayIgnoreLostLogs bit is specified during recovery.", JET_errCommittedLogFilesMissing) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamCommittedLogFilesMissingException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamCommittedLogFilesMissingException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamSectorSizeNotSupportedException : public IsamFatalException { public: IsamSectorSizeNotSupportedException() : IsamFatalException( "The physical sector size reported by the disk subsystem, is unsupported by ESE for a specific file type.", JET_errSectorSizeNotSupported) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamSectorSizeNotSupportedException( String ^ description, Exception^ innerException ) : IsamFatalException( description, innerException ) { } IsamSectorSizeNotSupportedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamFatalException( info, context ) { } }; [Serializable] public ref class IsamRecoveredWithoutUndoDatabasesConsistentException : public IsamStateException { public: IsamRecoveredWithoutUndoDatabasesConsistentException() : IsamStateException( "Soft recovery successfully replayed all operations and intended to skip the Undo phase of recovery, but the Undo phase was not required", JET_errRecoveredWithoutUndoDatabasesConsistent) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamRecoveredWithoutUndoDatabasesConsistentException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamRecoveredWithoutUndoDatabasesConsistentException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamCommittedLogFileCorruptException : public IsamCorruptionException { public: IsamCommittedLogFileCorruptException() : IsamCorruptionException( "One or more logs were found to be corrupt during recovery. These log files are required to maintain durable ACID semantics, but not required to maintain consistency if the JET_bitIgnoreLostLogs bit and JET_paramDeleteOutOfRangeLogs is specified during recovery.", JET_errCommittedLogFileCorrupt) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamCommittedLogFileCorruptException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamCommittedLogFileCorruptException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamLogSequenceChecksumMismatchException : public IsamCorruptionException { public: IsamLogSequenceChecksumMismatchException() : IsamCorruptionException( "The previous log's accumulated segment checksum doesn't match the next log", JET_errLogSequenceChecksumMismatch) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamLogSequenceChecksumMismatchException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamLogSequenceChecksumMismatchException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamPageInitializedMismatchException : public IsamCorruptionException { public: IsamPageInitializedMismatchException() : IsamCorruptionException( "Database divergence mismatch. Page was uninitialized on remote node, but initialized on local node.", JET_errPageInitializedMismatch) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamPageInitializedMismatchException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamPageInitializedMismatchException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamUnicodeTranslationFailException : public IsamOperationException { public: IsamUnicodeTranslationFailException() : IsamOperationException( "Unicode normalization failed", JET_errUnicodeTranslationFail) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamUnicodeTranslationFailException( String ^ description, Exception^ innerException ) : IsamOperationException( description, innerException ) { } IsamUnicodeTranslationFailException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamOperationException( info, context ) { } }; [Serializable] public ref class IsamUnicodeNormalizationNotSupportedException : public IsamUsageException { public: IsamUnicodeNormalizationNotSupportedException() : IsamUsageException( "OS does not provide support for Unicode normalisation (and no normalisation callback was specified)", JET_errUnicodeNormalizationNotSupported) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamUnicodeNormalizationNotSupportedException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamUnicodeNormalizationNotSupportedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamUnicodeLanguageValidationFailureException : public IsamOperationException { public: IsamUnicodeLanguageValidationFailureException() : IsamOperationException( "Can not validate the language", JET_errUnicodeLanguageValidationFailure) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamUnicodeLanguageValidationFailureException( String ^ description, Exception^ innerException ) : IsamOperationException( description, innerException ) { } IsamUnicodeLanguageValidationFailureException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamOperationException( info, context ) { } }; [Serializable] public ref class IsamExistingLogFileHasBadSignatureException : public IsamInconsistentException { public: IsamExistingLogFileHasBadSignatureException() : IsamInconsistentException( "Existing log file has bad signature", JET_errExistingLogFileHasBadSignature) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamExistingLogFileHasBadSignatureException( String ^ description, Exception^ innerException ) : IsamInconsistentException( description, innerException ) { } IsamExistingLogFileHasBadSignatureException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamInconsistentException( info, context ) { } }; [Serializable] public ref class IsamExistingLogFileIsNotContiguousException : public IsamInconsistentException { public: IsamExistingLogFileIsNotContiguousException() : IsamInconsistentException( "Existing log file is not contiguous", JET_errExistingLogFileIsNotContiguous) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamExistingLogFileIsNotContiguousException( String ^ description, Exception^ innerException ) : IsamInconsistentException( description, innerException ) { } IsamExistingLogFileIsNotContiguousException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamInconsistentException( info, context ) { } }; [Serializable] public ref class IsamLogReadVerifyFailureException : public IsamCorruptionException { public: IsamLogReadVerifyFailureException() : IsamCorruptionException( "Checksum error in log file during backup", JET_errLogReadVerifyFailure) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamLogReadVerifyFailureException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamLogReadVerifyFailureException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamCheckpointDepthTooDeepException : public IsamQuotaException { public: IsamCheckpointDepthTooDeepException() : IsamQuotaException( "too many outstanding generations between checkpoint and current generation", JET_errCheckpointDepthTooDeep) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamCheckpointDepthTooDeepException( String ^ description, Exception^ innerException ) : IsamQuotaException( description, innerException ) { } IsamCheckpointDepthTooDeepException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamQuotaException( info, context ) { } }; [Serializable] public ref class IsamRestoreOfNonBackupDatabaseException : public IsamUsageException { public: IsamRestoreOfNonBackupDatabaseException() : IsamUsageException( "hard recovery attempted on a database that wasn't a backup database", JET_errRestoreOfNonBackupDatabase) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamRestoreOfNonBackupDatabaseException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamRestoreOfNonBackupDatabaseException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamLogFileNotCopiedException : public IsamUsageException { public: IsamLogFileNotCopiedException() : IsamUsageException( "log truncation attempted but not all required logs were copied", JET_errLogFileNotCopied) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamLogFileNotCopiedException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamLogFileNotCopiedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamSurrogateBackupInProgressException : public IsamStateException { public: IsamSurrogateBackupInProgressException() : IsamStateException( "A surrogate backup is in progress.", JET_errSurrogateBackupInProgress) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamSurrogateBackupInProgressException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamSurrogateBackupInProgressException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamTransactionTooLongException : public IsamQuotaException { public: IsamTransactionTooLongException() : IsamQuotaException( "Too many outstanding generations between JetBeginTransaction and current generation.", JET_errTransactionTooLong) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamTransactionTooLongException( String ^ description, Exception^ innerException ) : IsamQuotaException( description, innerException ) { } IsamTransactionTooLongException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamQuotaException( info, context ) { } }; [Serializable] public ref class IsamEngineFormatVersionNoLongerSupportedTooLowException : public IsamUsageException { public: IsamEngineFormatVersionNoLongerSupportedTooLowException() : IsamUsageException( "The specified JET_ENGINEFORMATVERSION value is too low to be supported by this version of ESE.", JET_errEngineFormatVersionNoLongerSupportedTooLow) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamEngineFormatVersionNoLongerSupportedTooLowException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamEngineFormatVersionNoLongerSupportedTooLowException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamEngineFormatVersionNotYetImplementedTooHighException : public IsamUsageException { public: IsamEngineFormatVersionNotYetImplementedTooHighException() : IsamUsageException( "The specified JET_ENGINEFORMATVERSION value is too high, higher than this version of ESE knows about.", JET_errEngineFormatVersionNotYetImplementedTooHigh) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamEngineFormatVersionNotYetImplementedTooHighException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamEngineFormatVersionNotYetImplementedTooHighException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamEngineFormatVersionParamTooLowForRequestedFeatureException : public IsamUsageException { public: IsamEngineFormatVersionParamTooLowForRequestedFeatureException() : IsamUsageException( "Thrown by a format feature (not at JetSetSystemParameter) if the client requests a feature that requires a version higher than that set for the JET_paramEngineFormatVersion.", JET_errEngineFormatVersionParamTooLowForRequestedFeature) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamEngineFormatVersionParamTooLowForRequestedFeatureException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamEngineFormatVersionParamTooLowForRequestedFeatureException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamEngineFormatVersionSpecifiedTooLowForLogVersionException : public IsamStateException { public: IsamEngineFormatVersionSpecifiedTooLowForLogVersionException() : IsamStateException( "The specified JET_ENGINEFORMATVERSION is set too low for this log stream, the log files have already been upgraded to a higher version. A higher JET_ENGINEFORMATVERSION value must be set in the param.", JET_errEngineFormatVersionSpecifiedTooLowForLogVersion) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamEngineFormatVersionSpecifiedTooLowForLogVersionException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamEngineFormatVersionSpecifiedTooLowForLogVersionException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamEngineFormatVersionSpecifiedTooLowForDatabaseVersionException : public IsamStateException { public: IsamEngineFormatVersionSpecifiedTooLowForDatabaseVersionException() : IsamStateException( "The specified JET_ENGINEFORMATVERSION is set too low for this database file, the database file has already been upgraded to a higher version. A higher JET_ENGINEFORMATVERSION value must be set in the param.", JET_errEngineFormatVersionSpecifiedTooLowForDatabaseVersion) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamEngineFormatVersionSpecifiedTooLowForDatabaseVersionException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamEngineFormatVersionSpecifiedTooLowForDatabaseVersionException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamBackupAbortByServerException : public IsamOperationException { public: IsamBackupAbortByServerException() : IsamOperationException( "Backup was aborted by server by calling JetTerm with JET_bitTermStopBackup or by calling JetStopBackup", JET_errBackupAbortByServer) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamBackupAbortByServerException( String ^ description, Exception^ innerException ) : IsamOperationException( description, innerException ) { } IsamBackupAbortByServerException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamOperationException( info, context ) { } }; [Serializable] public ref class IsamInvalidGrbitException : public IsamUsageException { public: IsamInvalidGrbitException() : IsamUsageException( "Invalid flags parameter", JET_errInvalidGrbit) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInvalidGrbitException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamInvalidGrbitException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamTermInProgressException : public IsamOperationException { public: IsamTermInProgressException() : IsamOperationException( "Termination in progress", JET_errTermInProgress) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamTermInProgressException( String ^ description, Exception^ innerException ) : IsamOperationException( description, innerException ) { } IsamTermInProgressException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamOperationException( info, context ) { } }; [Serializable] public ref class IsamFeatureNotAvailableException : public IsamUsageException { public: IsamFeatureNotAvailableException() : IsamUsageException( "API not supported", JET_errFeatureNotAvailable) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamFeatureNotAvailableException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamFeatureNotAvailableException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamInvalidNameException : public IsamUsageException { public: IsamInvalidNameException() : IsamUsageException( "Invalid name", JET_errInvalidName) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInvalidNameException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamInvalidNameException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamInvalidParameterException : public IsamUsageException { public: IsamInvalidParameterException() : IsamUsageException( "Invalid API parameter", JET_errInvalidParameter) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInvalidParameterException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamInvalidParameterException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamDatabaseFileReadOnlyException : public IsamUsageException { public: IsamDatabaseFileReadOnlyException() : IsamUsageException( "Tried to attach a read-only database file for read/write operations", JET_errDatabaseFileReadOnly) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDatabaseFileReadOnlyException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamDatabaseFileReadOnlyException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamInvalidDatabaseIdException : public IsamUsageException { public: IsamInvalidDatabaseIdException() : IsamUsageException( "Invalid database id", JET_errInvalidDatabaseId) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInvalidDatabaseIdException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamInvalidDatabaseIdException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamOutOfMemoryException : public IsamMemoryException { public: IsamOutOfMemoryException() : IsamMemoryException( "Out of Memory", JET_errOutOfMemory) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamOutOfMemoryException( String ^ description, Exception^ innerException ) : IsamMemoryException( description, innerException ) { } IsamOutOfMemoryException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamMemoryException( info, context ) { } }; [Serializable] public ref class IsamOutOfDatabaseSpaceException : public IsamQuotaException { public: IsamOutOfDatabaseSpaceException() : IsamQuotaException( "Maximum database size reached", JET_errOutOfDatabaseSpace) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamOutOfDatabaseSpaceException( String ^ description, Exception^ innerException ) : IsamQuotaException( description, innerException ) { } IsamOutOfDatabaseSpaceException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamQuotaException( info, context ) { } }; [Serializable] public ref class IsamOutOfCursorsException : public IsamMemoryException { public: IsamOutOfCursorsException() : IsamMemoryException( "Out of table cursors", JET_errOutOfCursors) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamOutOfCursorsException( String ^ description, Exception^ innerException ) : IsamMemoryException( description, innerException ) { } IsamOutOfCursorsException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamMemoryException( info, context ) { } }; [Serializable] public ref class IsamOutOfBuffersException : public IsamMemoryException { public: IsamOutOfBuffersException() : IsamMemoryException( "Out of database page buffers", JET_errOutOfBuffers) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamOutOfBuffersException( String ^ description, Exception^ innerException ) : IsamMemoryException( description, innerException ) { } IsamOutOfBuffersException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamMemoryException( info, context ) { } }; [Serializable] public ref class IsamTooManyIndexesException : public IsamUsageException { public: IsamTooManyIndexesException() : IsamUsageException( "Too many indexes", JET_errTooManyIndexes) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamTooManyIndexesException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamTooManyIndexesException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamTooManyKeysException : public IsamUsageException { public: IsamTooManyKeysException() : IsamUsageException( "Too many columns in an index", JET_errTooManyKeys) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamTooManyKeysException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamTooManyKeysException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamRecordDeletedException : public IsamStateException { public: IsamRecordDeletedException() : IsamStateException( "Record has been deleted", JET_errRecordDeleted) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamRecordDeletedException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamRecordDeletedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamReadVerifyFailureException : public IsamCorruptionException { public: IsamReadVerifyFailureException() : IsamCorruptionException( "Checksum error on a database page", JET_errReadVerifyFailure) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamReadVerifyFailureException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamReadVerifyFailureException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamPageNotInitializedException : public IsamCorruptionException { public: IsamPageNotInitializedException() : IsamCorruptionException( "Blank database page", JET_errPageNotInitialized) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamPageNotInitializedException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamPageNotInitializedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamOutOfFileHandlesException : public IsamMemoryException { public: IsamOutOfFileHandlesException() : IsamMemoryException( "Out of file handles", JET_errOutOfFileHandles) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamOutOfFileHandlesException( String ^ description, Exception^ innerException ) : IsamMemoryException( description, innerException ) { } IsamOutOfFileHandlesException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamMemoryException( info, context ) { } }; [Serializable] public ref class IsamDiskReadVerificationFailureException : public IsamCorruptionException { public: IsamDiskReadVerificationFailureException() : IsamCorruptionException( "The OS returned ERROR_CRC from file IO", JET_errDiskReadVerificationFailure) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDiskReadVerificationFailureException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamDiskReadVerificationFailureException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamDiskIOException : public IsamIOException { public: IsamDiskIOException() : IsamIOException( "Disk IO error", JET_errDiskIO) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDiskIOException( String ^ description, Exception^ innerException ) : IsamIOException( description, innerException ) { } IsamDiskIOException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamIOException( info, context ) { } }; [Serializable] public ref class IsamInvalidPathException : public IsamUsageException { public: IsamInvalidPathException() : IsamUsageException( "Invalid file path", JET_errInvalidPath) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInvalidPathException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamInvalidPathException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamRecordTooBigException : public IsamStateException { public: IsamRecordTooBigException() : IsamStateException( "Record larger than maximum size", JET_errRecordTooBig) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamRecordTooBigException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamRecordTooBigException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamInvalidDatabaseException : public IsamUsageException { public: IsamInvalidDatabaseException() : IsamUsageException( "Not a database file", JET_errInvalidDatabase) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInvalidDatabaseException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamInvalidDatabaseException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamNotInitializedException : public IsamUsageException { public: IsamNotInitializedException() : IsamUsageException( "Database engine not initialized", JET_errNotInitialized) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamNotInitializedException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamNotInitializedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamAlreadyInitializedException : public IsamUsageException { public: IsamAlreadyInitializedException() : IsamUsageException( "Database engine already initialized", JET_errAlreadyInitialized) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamAlreadyInitializedException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamAlreadyInitializedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamInitInProgressException : public IsamOperationException { public: IsamInitInProgressException() : IsamOperationException( "Database engine is being initialized", JET_errInitInProgress) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInitInProgressException( String ^ description, Exception^ innerException ) : IsamOperationException( description, innerException ) { } IsamInitInProgressException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamOperationException( info, context ) { } }; [Serializable] public ref class IsamFileAccessDeniedException : public IsamIOException { public: IsamFileAccessDeniedException() : IsamIOException( "Cannot access file, the file is locked or in use", JET_errFileAccessDenied) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamFileAccessDeniedException( String ^ description, Exception^ innerException ) : IsamIOException( description, innerException ) { } IsamFileAccessDeniedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamIOException( info, context ) { } }; [Serializable] public ref class IsamBufferTooSmallException : public IsamStateException { public: IsamBufferTooSmallException() : IsamStateException( "Buffer is too small", JET_errBufferTooSmall) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamBufferTooSmallException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamBufferTooSmallException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamTooManyColumnsException : public IsamUsageException { public: IsamTooManyColumnsException() : IsamUsageException( "Too many columns defined", JET_errTooManyColumns) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamTooManyColumnsException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamTooManyColumnsException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamInvalidBookmarkException : public IsamUsageException { public: IsamInvalidBookmarkException() : IsamUsageException( "Invalid bookmark", JET_errInvalidBookmark) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInvalidBookmarkException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamInvalidBookmarkException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamColumnInUseException : public IsamUsageException { public: IsamColumnInUseException() : IsamUsageException( "Column used in an index", JET_errColumnInUse) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamColumnInUseException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamColumnInUseException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamInvalidBufferSizeException : public IsamStateException { public: IsamInvalidBufferSizeException() : IsamStateException( "Data buffer doesn't match column size", JET_errInvalidBufferSize) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInvalidBufferSizeException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamInvalidBufferSizeException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamColumnNotUpdatableException : public IsamUsageException { public: IsamColumnNotUpdatableException() : IsamUsageException( "Cannot set column value", JET_errColumnNotUpdatable) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamColumnNotUpdatableException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamColumnNotUpdatableException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamIndexInUseException : public IsamStateException { public: IsamIndexInUseException() : IsamStateException( "Index is in use", JET_errIndexInUse) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamIndexInUseException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamIndexInUseException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamNullKeyDisallowedException : public IsamUsageException { public: IsamNullKeyDisallowedException() : IsamUsageException( "Null keys are disallowed on index", JET_errNullKeyDisallowed) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamNullKeyDisallowedException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamNullKeyDisallowedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamNotInTransactionException : public IsamUsageException { public: IsamNotInTransactionException() : IsamUsageException( "Operation must be within a transaction", JET_errNotInTransaction) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamNotInTransactionException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamNotInTransactionException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamMustRollbackException : public IsamUsageException { public: IsamMustRollbackException() : IsamUsageException( "Transaction must rollback because failure of unversioned update", JET_errMustRollback) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamMustRollbackException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamMustRollbackException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamTooManyActiveUsersException : public IsamUsageException { public: IsamTooManyActiveUsersException() : IsamUsageException( "Too many active database users", JET_errTooManyActiveUsers) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamTooManyActiveUsersException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamTooManyActiveUsersException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamInvalidLanguageIdException : public IsamUsageException { public: IsamInvalidLanguageIdException() : IsamUsageException( "Invalid or unknown language id", JET_errInvalidLanguageId) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInvalidLanguageIdException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamInvalidLanguageIdException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamInvalidCodePageException : public IsamUsageException { public: IsamInvalidCodePageException() : IsamUsageException( "Invalid or unknown code page", JET_errInvalidCodePage) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInvalidCodePageException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamInvalidCodePageException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamInvalidLCMapStringFlagsException : public IsamUsageException { public: IsamInvalidLCMapStringFlagsException() : IsamUsageException( "Invalid flags for LCMapString()", JET_errInvalidLCMapStringFlags) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInvalidLCMapStringFlagsException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamInvalidLCMapStringFlagsException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamVersionStoreOutOfMemoryAndCleanupTimedOutException : public IsamUsageException { public: IsamVersionStoreOutOfMemoryAndCleanupTimedOutException() : IsamUsageException( "Version store out of memory (and cleanup attempt failed to complete)", JET_errVersionStoreOutOfMemoryAndCleanupTimedOut) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamVersionStoreOutOfMemoryAndCleanupTimedOutException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamVersionStoreOutOfMemoryAndCleanupTimedOutException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamVersionStoreOutOfMemoryException : public IsamQuotaException { public: IsamVersionStoreOutOfMemoryException() : IsamQuotaException( "Version store out of memory (cleanup already attempted)", JET_errVersionStoreOutOfMemory) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamVersionStoreOutOfMemoryException( String ^ description, Exception^ innerException ) : IsamQuotaException( description, innerException ) { } IsamVersionStoreOutOfMemoryException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamQuotaException( info, context ) { } }; [Serializable] public ref class IsamCannotIndexException : public IsamUsageException { public: IsamCannotIndexException() : IsamUsageException( "Cannot index escrow column", JET_errCannotIndex) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamCannotIndexException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamCannotIndexException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamRecordNotDeletedException : public IsamOperationException { public: IsamRecordNotDeletedException() : IsamOperationException( "Record has not been deleted", JET_errRecordNotDeleted) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamRecordNotDeletedException( String ^ description, Exception^ innerException ) : IsamOperationException( description, innerException ) { } IsamRecordNotDeletedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamOperationException( info, context ) { } }; [Serializable] public ref class IsamTooManyMempoolEntriesException : public IsamMemoryException { public: IsamTooManyMempoolEntriesException() : IsamMemoryException( "Too many mempool entries requested", JET_errTooManyMempoolEntries) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamTooManyMempoolEntriesException( String ^ description, Exception^ innerException ) : IsamMemoryException( description, innerException ) { } IsamTooManyMempoolEntriesException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamMemoryException( info, context ) { } }; [Serializable] public ref class IsamOutOfObjectIDsException : public IsamFragmentationException { public: IsamOutOfObjectIDsException() : IsamFragmentationException( "Out of btree ObjectIDs (perform offline defrag to reclaim freed/unused ObjectIds)", JET_errOutOfObjectIDs) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamOutOfObjectIDsException( String ^ description, Exception^ innerException ) : IsamFragmentationException( description, innerException ) { } IsamOutOfObjectIDsException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamFragmentationException( info, context ) { } }; [Serializable] public ref class IsamOutOfLongValueIDsException : public IsamFragmentationException { public: IsamOutOfLongValueIDsException() : IsamFragmentationException( "Long-value ID counter has reached maximum value. (perform offline defrag to reclaim free/unused LongValueIDs)", JET_errOutOfLongValueIDs) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamOutOfLongValueIDsException( String ^ description, Exception^ innerException ) : IsamFragmentationException( description, innerException ) { } IsamOutOfLongValueIDsException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamFragmentationException( info, context ) { } }; [Serializable] public ref class IsamOutOfAutoincrementValuesException : public IsamFragmentationException { public: IsamOutOfAutoincrementValuesException() : IsamFragmentationException( "Auto-increment counter has reached maximum value (offline defrag WILL NOT be able to reclaim free/unused Auto-increment values).", JET_errOutOfAutoincrementValues) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamOutOfAutoincrementValuesException( String ^ description, Exception^ innerException ) : IsamFragmentationException( description, innerException ) { } IsamOutOfAutoincrementValuesException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamFragmentationException( info, context ) { } }; [Serializable] public ref class IsamOutOfDbtimeValuesException : public IsamFragmentationException { public: IsamOutOfDbtimeValuesException() : IsamFragmentationException( "Dbtime counter has reached maximum value (perform offline defrag to reclaim free/unused Dbtime values)", JET_errOutOfDbtimeValues) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamOutOfDbtimeValuesException( String ^ description, Exception^ innerException ) : IsamFragmentationException( description, innerException ) { } IsamOutOfDbtimeValuesException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamFragmentationException( info, context ) { } }; [Serializable] public ref class IsamOutOfSequentialIndexValuesException : public IsamFragmentationException { public: IsamOutOfSequentialIndexValuesException() : IsamFragmentationException( "Sequential index counter has reached maximum value (perform offline defrag to reclaim free/unused SequentialIndex values)", JET_errOutOfSequentialIndexValues) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamOutOfSequentialIndexValuesException( String ^ description, Exception^ innerException ) : IsamFragmentationException( description, innerException ) { } IsamOutOfSequentialIndexValuesException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamFragmentationException( info, context ) { } }; [Serializable] public ref class IsamRunningInOneInstanceModeException : public IsamUsageException { public: IsamRunningInOneInstanceModeException() : IsamUsageException( "Multi-instance call with single-instance mode enabled", JET_errRunningInOneInstanceMode) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamRunningInOneInstanceModeException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamRunningInOneInstanceModeException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamRunningInMultiInstanceModeException : public IsamUsageException { public: IsamRunningInMultiInstanceModeException() : IsamUsageException( "Single-instance call with multi-instance mode enabled", JET_errRunningInMultiInstanceMode) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamRunningInMultiInstanceModeException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamRunningInMultiInstanceModeException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamSystemParamsAlreadySetException : public IsamStateException { public: IsamSystemParamsAlreadySetException() : IsamStateException( "Global system parameters have already been set", JET_errSystemParamsAlreadySet) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamSystemParamsAlreadySetException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamSystemParamsAlreadySetException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamSystemPathInUseException : public IsamUsageException { public: IsamSystemPathInUseException() : IsamUsageException( "System path already used by another database instance", JET_errSystemPathInUse) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamSystemPathInUseException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamSystemPathInUseException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamLogFilePathInUseException : public IsamUsageException { public: IsamLogFilePathInUseException() : IsamUsageException( "Logfile path already used by another database instance", JET_errLogFilePathInUse) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamLogFilePathInUseException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamLogFilePathInUseException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamTempPathInUseException : public IsamUsageException { public: IsamTempPathInUseException() : IsamUsageException( "Temp path already used by another database instance", JET_errTempPathInUse) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamTempPathInUseException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamTempPathInUseException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamInstanceNameInUseException : public IsamUsageException { public: IsamInstanceNameInUseException() : IsamUsageException( "Instance Name already in use", JET_errInstanceNameInUse) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInstanceNameInUseException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamInstanceNameInUseException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamSystemParameterConflictException : public IsamUsageException { public: IsamSystemParameterConflictException() : IsamUsageException( "Global system parameters have already been set, but to a conflicting or disagreeable state to the specified values.", JET_errSystemParameterConflict) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamSystemParameterConflictException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamSystemParameterConflictException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamInstanceUnavailableException : public IsamFatalException { public: IsamInstanceUnavailableException() : IsamFatalException( "This instance cannot be used because it encountered a fatal error", JET_errInstanceUnavailable) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInstanceUnavailableException( String ^ description, Exception^ innerException ) : IsamFatalException( description, innerException ) { } IsamInstanceUnavailableException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamFatalException( info, context ) { } }; [Serializable] public ref class IsamInstanceUnavailableDueToFatalLogDiskFullException : public IsamFatalException { public: IsamInstanceUnavailableDueToFatalLogDiskFullException() : IsamFatalException( "This instance cannot be used because it encountered a log-disk-full error performing an operation (likely transaction rollback) that could not tolerate failure", JET_errInstanceUnavailableDueToFatalLogDiskFull) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInstanceUnavailableDueToFatalLogDiskFullException( String ^ description, Exception^ innerException ) : IsamFatalException( description, innerException ) { } IsamInstanceUnavailableDueToFatalLogDiskFullException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamFatalException( info, context ) { } }; [Serializable] public ref class IsamInvalidSesparamIdException : public IsamUsageException { public: IsamInvalidSesparamIdException() : IsamUsageException( "This JET_sesparam* identifier is not known to the ESE engine.", JET_errInvalidSesparamId) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInvalidSesparamIdException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamInvalidSesparamIdException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamTooManyRecordsException : public IsamStateException { public: IsamTooManyRecordsException() : IsamStateException( "There are too many records to enumerate, switch to an API that handles 64-bit numbers", JET_errTooManyRecords) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamTooManyRecordsException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamTooManyRecordsException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamInvalidDbparamIdException : public IsamUsageException { public: IsamInvalidDbparamIdException() : IsamUsageException( "This JET_dbparam* identifier is not known to the ESE engine.", JET_errInvalidDbparamId) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInvalidDbparamIdException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamInvalidDbparamIdException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamOutOfSessionsException : public IsamMemoryException { public: IsamOutOfSessionsException() : IsamMemoryException( "Out of sessions", JET_errOutOfSessions) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamOutOfSessionsException( String ^ description, Exception^ innerException ) : IsamMemoryException( description, innerException ) { } IsamOutOfSessionsException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamMemoryException( info, context ) { } }; [Serializable] public ref class IsamWriteConflictException : public IsamStateException { public: IsamWriteConflictException() : IsamStateException( "Write lock failed due to outstanding write lock", JET_errWriteConflict) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamWriteConflictException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamWriteConflictException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamTransTooDeepException : public IsamUsageException { public: IsamTransTooDeepException() : IsamUsageException( "Transactions nested too deeply", JET_errTransTooDeep) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamTransTooDeepException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamTransTooDeepException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamInvalidSesidException : public IsamUsageException { public: IsamInvalidSesidException() : IsamUsageException( "Invalid session handle", JET_errInvalidSesid) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInvalidSesidException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamInvalidSesidException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamWriteConflictPrimaryIndexException : public IsamStateException { public: IsamWriteConflictPrimaryIndexException() : IsamStateException( "Update attempted on uncommitted primary index", JET_errWriteConflictPrimaryIndex) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamWriteConflictPrimaryIndexException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamWriteConflictPrimaryIndexException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamInTransactionException : public IsamUsageException { public: IsamInTransactionException() : IsamUsageException( "Operation not allowed within a transaction", JET_errInTransaction) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInTransactionException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamInTransactionException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamTransReadOnlyException : public IsamUsageException { public: IsamTransReadOnlyException() : IsamUsageException( "Read-only transaction tried to modify the database", JET_errTransReadOnly) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamTransReadOnlyException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamTransReadOnlyException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamSessionWriteConflictException : public IsamUsageException { public: IsamSessionWriteConflictException() : IsamUsageException( "Attempt to replace the same record by two different cursors in the same session", JET_errSessionWriteConflict) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamSessionWriteConflictException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamSessionWriteConflictException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamRecordTooBigForBackwardCompatibilityException : public IsamStateException { public: IsamRecordTooBigForBackwardCompatibilityException() : IsamStateException( "record would be too big if represented in a database format from a previous version of Jet", JET_errRecordTooBigForBackwardCompatibility) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamRecordTooBigForBackwardCompatibilityException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamRecordTooBigForBackwardCompatibilityException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamCannotMaterializeForwardOnlySortException : public IsamUsageException { public: IsamCannotMaterializeForwardOnlySortException() : IsamUsageException( "The temp table could not be created due to parameters that conflict with JET_bitTTForwardOnly", JET_errCannotMaterializeForwardOnlySort) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamCannotMaterializeForwardOnlySortException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamCannotMaterializeForwardOnlySortException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamSesidTableIdMismatchException : public IsamUsageException { public: IsamSesidTableIdMismatchException() : IsamUsageException( "This session handle can't be used with this table id", JET_errSesidTableIdMismatch) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamSesidTableIdMismatchException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamSesidTableIdMismatchException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamInvalidInstanceException : public IsamUsageException { public: IsamInvalidInstanceException() : IsamUsageException( "Invalid instance handle", JET_errInvalidInstance) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInvalidInstanceException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamInvalidInstanceException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamDirtyShutdownException : public IsamStateException { public: IsamDirtyShutdownException() : IsamStateException( "The instance was shutdown successfully but all the attached databases were left in a dirty state by request via JET_bitTermDirty", JET_errDirtyShutdown) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDirtyShutdownException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamDirtyShutdownException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamReadPgnoVerifyFailureException : public IsamCorruptionException { public: IsamReadPgnoVerifyFailureException() : IsamCorruptionException( "The database page read from disk had the wrong page number.", JET_errReadPgnoVerifyFailure) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamReadPgnoVerifyFailureException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamReadPgnoVerifyFailureException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamReadLostFlushVerifyFailureException : public IsamCorruptionException { public: IsamReadLostFlushVerifyFailureException() : IsamCorruptionException( "The database page read from disk had a previous write not represented on the page.", JET_errReadLostFlushVerifyFailure) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamReadLostFlushVerifyFailureException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamReadLostFlushVerifyFailureException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamFileSystemCorruptionException : public IsamCorruptionException { public: IsamFileSystemCorruptionException() : IsamCorruptionException( "File system operation failed with an error indicating the file system is corrupt.", JET_errFileSystemCorruption) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamFileSystemCorruptionException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamFileSystemCorruptionException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamRecoveryVerifyFailureException : public IsamCorruptionException { public: IsamRecoveryVerifyFailureException() : IsamCorruptionException( "One or more database pages read from disk during recovery do not match the expected state.", JET_errRecoveryVerifyFailure) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamRecoveryVerifyFailureException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamRecoveryVerifyFailureException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamFilteredMoveNotSupportedException : public IsamUsageException { public: IsamFilteredMoveNotSupportedException() : IsamUsageException( "Attempted to provide a filter to JetSetCursorFilter() in an unsupported scenario.", JET_errFilteredMoveNotSupported) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamFilteredMoveNotSupportedException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamFilteredMoveNotSupportedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamDatabaseDuplicateException : public IsamUsageException { public: IsamDatabaseDuplicateException() : IsamUsageException( "Database already exists", JET_errDatabaseDuplicate) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDatabaseDuplicateException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamDatabaseDuplicateException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamDatabaseInUseException : public IsamUsageException { public: IsamDatabaseInUseException() : IsamUsageException( "Database in use", JET_errDatabaseInUse) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDatabaseInUseException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamDatabaseInUseException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamDatabaseNotFoundException : public IsamUsageException { public: IsamDatabaseNotFoundException() : IsamUsageException( "No such database", JET_errDatabaseNotFound) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDatabaseNotFoundException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamDatabaseNotFoundException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamDatabaseInvalidNameException : public IsamUsageException { public: IsamDatabaseInvalidNameException() : IsamUsageException( "Invalid database name", JET_errDatabaseInvalidName) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDatabaseInvalidNameException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamDatabaseInvalidNameException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamDatabaseInvalidPagesException : public IsamUsageException { public: IsamDatabaseInvalidPagesException() : IsamUsageException( "Invalid number of pages", JET_errDatabaseInvalidPages) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDatabaseInvalidPagesException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamDatabaseInvalidPagesException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamDatabaseCorruptedException : public IsamCorruptionException { public: IsamDatabaseCorruptedException() : IsamCorruptionException( "Non database file or corrupted db", JET_errDatabaseCorrupted) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDatabaseCorruptedException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamDatabaseCorruptedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamDatabaseLockedException : public IsamUsageException { public: IsamDatabaseLockedException() : IsamUsageException( "Database exclusively locked", JET_errDatabaseLocked) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDatabaseLockedException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamDatabaseLockedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamCannotDisableVersioningException : public IsamUsageException { public: IsamCannotDisableVersioningException() : IsamUsageException( "Cannot disable versioning for this database", JET_errCannotDisableVersioning) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamCannotDisableVersioningException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamCannotDisableVersioningException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamInvalidDatabaseVersionException : public IsamInconsistentException { public: IsamInvalidDatabaseVersionException() : IsamInconsistentException( "Database engine is incompatible with database", JET_errInvalidDatabaseVersion) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInvalidDatabaseVersionException( String ^ description, Exception^ innerException ) : IsamInconsistentException( description, innerException ) { } IsamInvalidDatabaseVersionException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamInconsistentException( info, context ) { } }; [Serializable] public ref class IsamPageSizeMismatchException : public IsamInconsistentException { public: IsamPageSizeMismatchException() : IsamInconsistentException( "The database page size does not match the engine", JET_errPageSizeMismatch) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamPageSizeMismatchException( String ^ description, Exception^ innerException ) : IsamInconsistentException( description, innerException ) { } IsamPageSizeMismatchException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamInconsistentException( info, context ) { } }; [Serializable] public ref class IsamTooManyInstancesException : public IsamQuotaException { public: IsamTooManyInstancesException() : IsamQuotaException( "Cannot start any more database instances", JET_errTooManyInstances) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamTooManyInstancesException( String ^ description, Exception^ innerException ) : IsamQuotaException( description, innerException ) { } IsamTooManyInstancesException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamQuotaException( info, context ) { } }; [Serializable] public ref class IsamDatabaseSharingViolationException : public IsamUsageException { public: IsamDatabaseSharingViolationException() : IsamUsageException( "A different database instance is using this database", JET_errDatabaseSharingViolation) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDatabaseSharingViolationException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamDatabaseSharingViolationException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamAttachedDatabaseMismatchException : public IsamInconsistentException { public: IsamAttachedDatabaseMismatchException() : IsamInconsistentException( "An outstanding database attachment has been detected at the start or end of recovery, but database is missing or does not match attachment info", JET_errAttachedDatabaseMismatch) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamAttachedDatabaseMismatchException( String ^ description, Exception^ innerException ) : IsamInconsistentException( description, innerException ) { } IsamAttachedDatabaseMismatchException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamInconsistentException( info, context ) { } }; [Serializable] public ref class IsamDatabaseInvalidPathException : public IsamUsageException { public: IsamDatabaseInvalidPathException() : IsamUsageException( "Specified path to database file is illegal", JET_errDatabaseInvalidPath) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDatabaseInvalidPathException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamDatabaseInvalidPathException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamForceDetachNotAllowedException : public IsamUsageException { public: IsamForceDetachNotAllowedException() : IsamUsageException( "Force Detach allowed only after normal detach errored out", JET_errForceDetachNotAllowed) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamForceDetachNotAllowedException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamForceDetachNotAllowedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamCatalogCorruptedException : public IsamCorruptionException { public: IsamCatalogCorruptedException() : IsamCorruptionException( "Corruption detected in catalog", JET_errCatalogCorrupted) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamCatalogCorruptedException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamCatalogCorruptedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamPartiallyAttachedDBException : public IsamUsageException { public: IsamPartiallyAttachedDBException() : IsamUsageException( "Database is partially attached. Cannot complete attach operation", JET_errPartiallyAttachedDB) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamPartiallyAttachedDBException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamPartiallyAttachedDBException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamDatabaseSignInUseException : public IsamUsageException { public: IsamDatabaseSignInUseException() : IsamUsageException( "Database with same signature in use", JET_errDatabaseSignInUse) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDatabaseSignInUseException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamDatabaseSignInUseException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamDatabaseCorruptedNoRepairException : public IsamUsageException { public: IsamDatabaseCorruptedNoRepairException() : IsamUsageException( "Corrupted db but repair not allowed", JET_errDatabaseCorruptedNoRepair) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDatabaseCorruptedNoRepairException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamDatabaseCorruptedNoRepairException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamInvalidCreateDbVersionException : public IsamInconsistentException { public: IsamInvalidCreateDbVersionException() : IsamInconsistentException( "recovery tried to replay a database creation, but the database was originally created with an incompatible (likely older) version of the database engine", JET_errInvalidCreateDbVersion) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInvalidCreateDbVersionException( String ^ description, Exception^ innerException ) : IsamInconsistentException( description, innerException ) { } IsamInvalidCreateDbVersionException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamInconsistentException( info, context ) { } }; [Serializable] public ref class IsamDatabaseIncompleteIncrementalReseedException : public IsamInconsistentException { public: IsamDatabaseIncompleteIncrementalReseedException() : IsamInconsistentException( "The database cannot be attached because it is currently being rebuilt as part of an incremental reseed.", JET_errDatabaseIncompleteIncrementalReseed) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDatabaseIncompleteIncrementalReseedException( String ^ description, Exception^ innerException ) : IsamInconsistentException( description, innerException ) { } IsamDatabaseIncompleteIncrementalReseedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamInconsistentException( info, context ) { } }; [Serializable] public ref class IsamDatabaseInvalidIncrementalReseedException : public IsamUsageException { public: IsamDatabaseInvalidIncrementalReseedException() : IsamUsageException( "The database is not a valid state to perform an incremental reseed.", JET_errDatabaseInvalidIncrementalReseed) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDatabaseInvalidIncrementalReseedException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamDatabaseInvalidIncrementalReseedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamDatabaseFailedIncrementalReseedException : public IsamStateException { public: IsamDatabaseFailedIncrementalReseedException() : IsamStateException( "The incremental reseed being performed on the specified database cannot be completed due to a fatal error. A full reseed is required to recover this database.", JET_errDatabaseFailedIncrementalReseed) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDatabaseFailedIncrementalReseedException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamDatabaseFailedIncrementalReseedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamNoAttachmentsFailedIncrementalReseedException : public IsamStateException { public: IsamNoAttachmentsFailedIncrementalReseedException() : IsamStateException( "The incremental reseed being performed on the specified database cannot be completed because the min required log contains no attachment info. A full reseed is required to recover this database.", JET_errNoAttachmentsFailedIncrementalReseed) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamNoAttachmentsFailedIncrementalReseedException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamNoAttachmentsFailedIncrementalReseedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamDatabaseNotReadyException : public IsamUsageException { public: IsamDatabaseNotReadyException() : IsamUsageException( "Recovery on this database has not yet completed enough to permit access.", JET_errDatabaseNotReady) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDatabaseNotReadyException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamDatabaseNotReadyException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamDatabaseAttachedForRecoveryException : public IsamUsageException { public: IsamDatabaseAttachedForRecoveryException() : IsamUsageException( "Database is attached but only for recovery. It must be explicitly attached before it can be opened. ", JET_errDatabaseAttachedForRecovery) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDatabaseAttachedForRecoveryException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamDatabaseAttachedForRecoveryException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamTransactionsNotReadyDuringRecoveryException : public IsamStateException { public: IsamTransactionsNotReadyDuringRecoveryException() : IsamStateException( "Recovery has not seen any Begin0/Commit0 records and so does not know what trxBegin0 to assign to this transaction", JET_errTransactionsNotReadyDuringRecovery) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamTransactionsNotReadyDuringRecoveryException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamTransactionsNotReadyDuringRecoveryException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamTableLockedException : public IsamUsageException { public: IsamTableLockedException() : IsamUsageException( "Table is exclusively locked", JET_errTableLocked) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamTableLockedException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamTableLockedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamTableDuplicateException : public IsamStateException { public: IsamTableDuplicateException() : IsamStateException( "Table already exists", JET_errTableDuplicate) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamTableDuplicateException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamTableDuplicateException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamTableInUseException : public IsamStateException { public: IsamTableInUseException() : IsamStateException( "Table is in use, cannot lock", JET_errTableInUse) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamTableInUseException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamTableInUseException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamObjectNotFoundException : public IsamStateException { public: IsamObjectNotFoundException() : IsamStateException( "No such table or object", JET_errObjectNotFound) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamObjectNotFoundException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamObjectNotFoundException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamDensityInvalidException : public IsamUsageException { public: IsamDensityInvalidException() : IsamUsageException( "Bad file/index density", JET_errDensityInvalid) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDensityInvalidException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamDensityInvalidException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamTableNotEmptyException : public IsamUsageException { public: IsamTableNotEmptyException() : IsamUsageException( "Table is not empty", JET_errTableNotEmpty) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamTableNotEmptyException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamTableNotEmptyException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamInvalidTableIdException : public IsamUsageException { public: IsamInvalidTableIdException() : IsamUsageException( "Invalid table id", JET_errInvalidTableId) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInvalidTableIdException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamInvalidTableIdException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamTooManyOpenTablesException : public IsamQuotaException { public: IsamTooManyOpenTablesException() : IsamQuotaException( "Cannot open any more tables (cleanup already attempted)", JET_errTooManyOpenTables) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamTooManyOpenTablesException( String ^ description, Exception^ innerException ) : IsamQuotaException( description, innerException ) { } IsamTooManyOpenTablesException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamQuotaException( info, context ) { } }; [Serializable] public ref class IsamIllegalOperationException : public IsamUsageException { public: IsamIllegalOperationException() : IsamUsageException( "Oper. not supported on table", JET_errIllegalOperation) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamIllegalOperationException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamIllegalOperationException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamTooManyOpenTablesAndCleanupTimedOutException : public IsamUsageException { public: IsamTooManyOpenTablesAndCleanupTimedOutException() : IsamUsageException( "Cannot open any more tables (cleanup attempt failed to complete)", JET_errTooManyOpenTablesAndCleanupTimedOut) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamTooManyOpenTablesAndCleanupTimedOutException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamTooManyOpenTablesAndCleanupTimedOutException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamCannotDeleteTempTableException : public IsamUsageException { public: IsamCannotDeleteTempTableException() : IsamUsageException( "Use CloseTable instead of DeleteTable to delete temp table", JET_errCannotDeleteTempTable) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamCannotDeleteTempTableException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamCannotDeleteTempTableException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamCannotDeleteSystemTableException : public IsamUsageException { public: IsamCannotDeleteSystemTableException() : IsamUsageException( "Illegal attempt to delete a system table", JET_errCannotDeleteSystemTable) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamCannotDeleteSystemTableException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamCannotDeleteSystemTableException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamCannotDeleteTemplateTableException : public IsamUsageException { public: IsamCannotDeleteTemplateTableException() : IsamUsageException( "Illegal attempt to delete a template table", JET_errCannotDeleteTemplateTable) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamCannotDeleteTemplateTableException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamCannotDeleteTemplateTableException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamExclusiveTableLockRequiredException : public IsamUsageException { public: IsamExclusiveTableLockRequiredException() : IsamUsageException( "Must have exclusive lock on table.", JET_errExclusiveTableLockRequired) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamExclusiveTableLockRequiredException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamExclusiveTableLockRequiredException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamFixedDDLException : public IsamUsageException { public: IsamFixedDDLException() : IsamUsageException( "DDL operations prohibited on this table", JET_errFixedDDL) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamFixedDDLException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamFixedDDLException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamFixedInheritedDDLException : public IsamUsageException { public: IsamFixedInheritedDDLException() : IsamUsageException( "On a derived table, DDL operations are prohibited on inherited portion of DDL", JET_errFixedInheritedDDL) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamFixedInheritedDDLException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamFixedInheritedDDLException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamCannotNestDDLException : public IsamUsageException { public: IsamCannotNestDDLException() : IsamUsageException( "Nesting of hierarchical DDL is not currently supported.", JET_errCannotNestDDL) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamCannotNestDDLException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamCannotNestDDLException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamDDLNotInheritableException : public IsamUsageException { public: IsamDDLNotInheritableException() : IsamUsageException( "Tried to inherit DDL from a table not marked as a template table.", JET_errDDLNotInheritable) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDDLNotInheritableException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamDDLNotInheritableException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamInvalidSettingsException : public IsamUsageException { public: IsamInvalidSettingsException() : IsamUsageException( "System parameters were set improperly", JET_errInvalidSettings) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInvalidSettingsException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamInvalidSettingsException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamClientRequestToStopJetServiceException : public IsamOperationException { public: IsamClientRequestToStopJetServiceException() : IsamOperationException( "Client has requested stop service", JET_errClientRequestToStopJetService) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamClientRequestToStopJetServiceException( String ^ description, Exception^ innerException ) : IsamOperationException( description, innerException ) { } IsamClientRequestToStopJetServiceException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamOperationException( info, context ) { } }; [Serializable] public ref class IsamIndexHasPrimaryException : public IsamUsageException { public: IsamIndexHasPrimaryException() : IsamUsageException( "Primary index already defined", JET_errIndexHasPrimary) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamIndexHasPrimaryException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamIndexHasPrimaryException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamIndexDuplicateException : public IsamUsageException { public: IsamIndexDuplicateException() : IsamUsageException( "Index is already defined", JET_errIndexDuplicate) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamIndexDuplicateException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamIndexDuplicateException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamIndexNotFoundException : public IsamStateException { public: IsamIndexNotFoundException() : IsamStateException( "No such index", JET_errIndexNotFound) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamIndexNotFoundException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamIndexNotFoundException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamIndexMustStayException : public IsamUsageException { public: IsamIndexMustStayException() : IsamUsageException( "Cannot delete clustered index", JET_errIndexMustStay) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamIndexMustStayException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamIndexMustStayException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamIndexInvalidDefException : public IsamUsageException { public: IsamIndexInvalidDefException() : IsamUsageException( "Illegal index definition", JET_errIndexInvalidDef) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamIndexInvalidDefException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamIndexInvalidDefException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamInvalidCreateIndexException : public IsamUsageException { public: IsamInvalidCreateIndexException() : IsamUsageException( "Invalid create index description", JET_errInvalidCreateIndex) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInvalidCreateIndexException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamInvalidCreateIndexException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamTooManyOpenIndexesException : public IsamMemoryException { public: IsamTooManyOpenIndexesException() : IsamMemoryException( "Out of index description blocks", JET_errTooManyOpenIndexes) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamTooManyOpenIndexesException( String ^ description, Exception^ innerException ) : IsamMemoryException( description, innerException ) { } IsamTooManyOpenIndexesException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamMemoryException( info, context ) { } }; [Serializable] public ref class IsamMultiValuedIndexViolationException : public IsamUsageException { public: IsamMultiValuedIndexViolationException() : IsamUsageException( "Non-unique inter-record index keys generated for a multivalued index", JET_errMultiValuedIndexViolation) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamMultiValuedIndexViolationException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamMultiValuedIndexViolationException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamIndexBuildCorruptedException : public IsamCorruptionException { public: IsamIndexBuildCorruptedException() : IsamCorruptionException( "Failed to build a secondary index that properly reflects primary index", JET_errIndexBuildCorrupted) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamIndexBuildCorruptedException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamIndexBuildCorruptedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamPrimaryIndexCorruptedException : public IsamCorruptionException { public: IsamPrimaryIndexCorruptedException() : IsamCorruptionException( "Primary index is corrupt. The database must be defragmented or the table deleted.", JET_errPrimaryIndexCorrupted) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamPrimaryIndexCorruptedException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamPrimaryIndexCorruptedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamSecondaryIndexCorruptedException : public IsamCorruptionException { public: IsamSecondaryIndexCorruptedException() : IsamCorruptionException( "Secondary index is corrupt. The database must be defragmented or the affected index must be deleted. If the corrupt index is over Unicode text, a likely cause is a sort-order change.", JET_errSecondaryIndexCorrupted) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamSecondaryIndexCorruptedException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamSecondaryIndexCorruptedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamInvalidIndexIdException : public IsamUsageException { public: IsamInvalidIndexIdException() : IsamUsageException( "Illegal index id", JET_errInvalidIndexId) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInvalidIndexIdException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamInvalidIndexIdException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamIndexTuplesSecondaryIndexOnlyException : public IsamUsageException { public: IsamIndexTuplesSecondaryIndexOnlyException() : IsamUsageException( "tuple index can only be on a secondary index", JET_errIndexTuplesSecondaryIndexOnly) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamIndexTuplesSecondaryIndexOnlyException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamIndexTuplesSecondaryIndexOnlyException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamIndexTuplesNonUniqueOnlyException : public IsamUsageException { public: IsamIndexTuplesNonUniqueOnlyException() : IsamUsageException( "tuple index must be a non-unique index", JET_errIndexTuplesNonUniqueOnly) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamIndexTuplesNonUniqueOnlyException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamIndexTuplesNonUniqueOnlyException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamIndexTuplesTextBinaryColumnsOnlyException : public IsamUsageException { public: IsamIndexTuplesTextBinaryColumnsOnlyException() : IsamUsageException( "tuple index must be on a text/binary column", JET_errIndexTuplesTextBinaryColumnsOnly) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamIndexTuplesTextBinaryColumnsOnlyException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamIndexTuplesTextBinaryColumnsOnlyException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamIndexTuplesVarSegMacNotAllowedException : public IsamUsageException { public: IsamIndexTuplesVarSegMacNotAllowedException() : IsamUsageException( "tuple index does not allow setting cbVarSegMac", JET_errIndexTuplesVarSegMacNotAllowed) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamIndexTuplesVarSegMacNotAllowedException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamIndexTuplesVarSegMacNotAllowedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamIndexTuplesInvalidLimitsException : public IsamUsageException { public: IsamIndexTuplesInvalidLimitsException() : IsamUsageException( "invalid min/max tuple length or max characters to index specified", JET_errIndexTuplesInvalidLimits) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamIndexTuplesInvalidLimitsException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamIndexTuplesInvalidLimitsException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamIndexTuplesCannotRetrieveFromIndexException : public IsamUsageException { public: IsamIndexTuplesCannotRetrieveFromIndexException() : IsamUsageException( "cannot call RetrieveColumn() with RetrieveFromIndex on a tuple index", JET_errIndexTuplesCannotRetrieveFromIndex) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamIndexTuplesCannotRetrieveFromIndexException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamIndexTuplesCannotRetrieveFromIndexException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamIndexTuplesKeyTooSmallException : public IsamUsageException { public: IsamIndexTuplesKeyTooSmallException() : IsamUsageException( "specified key does not meet minimum tuple length", JET_errIndexTuplesKeyTooSmall) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamIndexTuplesKeyTooSmallException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamIndexTuplesKeyTooSmallException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamInvalidLVChunkSizeException : public IsamUsageException { public: IsamInvalidLVChunkSizeException() : IsamUsageException( "Specified LV chunk size is not supported", JET_errInvalidLVChunkSize) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInvalidLVChunkSizeException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamInvalidLVChunkSizeException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamColumnCannotBeEncryptedException : public IsamUsageException { public: IsamColumnCannotBeEncryptedException() : IsamUsageException( "Only JET_coltypLongText and JET_coltypLongBinary columns without default values can be encrypted", JET_errColumnCannotBeEncrypted) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamColumnCannotBeEncryptedException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamColumnCannotBeEncryptedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamCannotIndexOnEncryptedColumnException : public IsamUsageException { public: IsamCannotIndexOnEncryptedColumnException() : IsamUsageException( "Cannot index encrypted column", JET_errCannotIndexOnEncryptedColumn) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamCannotIndexOnEncryptedColumnException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamCannotIndexOnEncryptedColumnException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamColumnNoChunkException : public IsamUsageException { public: IsamColumnNoChunkException() : IsamUsageException( "No such chunk in long value", JET_errColumnNoChunk) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamColumnNoChunkException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamColumnNoChunkException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamColumnDoesNotFitException : public IsamUsageException { public: IsamColumnDoesNotFitException() : IsamUsageException( "Field will not fit in record", JET_errColumnDoesNotFit) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamColumnDoesNotFitException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamColumnDoesNotFitException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamNullInvalidException : public IsamUsageException { public: IsamNullInvalidException() : IsamUsageException( "Null not valid", JET_errNullInvalid) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamNullInvalidException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamNullInvalidException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamColumnTooBigException : public IsamUsageException { public: IsamColumnTooBigException() : IsamUsageException( "Field length is greater than maximum", JET_errColumnTooBig) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamColumnTooBigException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamColumnTooBigException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamColumnNotFoundException : public IsamUsageException { public: IsamColumnNotFoundException() : IsamUsageException( "No such column", JET_errColumnNotFound) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamColumnNotFoundException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamColumnNotFoundException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamColumnDuplicateException : public IsamUsageException { public: IsamColumnDuplicateException() : IsamUsageException( "Field is already defined", JET_errColumnDuplicate) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamColumnDuplicateException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamColumnDuplicateException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamMultiValuedColumnMustBeTaggedException : public IsamUsageException { public: IsamMultiValuedColumnMustBeTaggedException() : IsamUsageException( "Attempted to create a multi-valued column, but column was not Tagged", JET_errMultiValuedColumnMustBeTagged) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamMultiValuedColumnMustBeTaggedException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamMultiValuedColumnMustBeTaggedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamColumnRedundantException : public IsamUsageException { public: IsamColumnRedundantException() : IsamUsageException( "Second autoincrement or version column", JET_errColumnRedundant) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamColumnRedundantException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamColumnRedundantException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamInvalidColumnTypeException : public IsamUsageException { public: IsamInvalidColumnTypeException() : IsamUsageException( "Invalid column data type", JET_errInvalidColumnType) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInvalidColumnTypeException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamInvalidColumnTypeException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamNoCurrentIndexException : public IsamUsageException { public: IsamNoCurrentIndexException() : IsamUsageException( "Invalid w/o a current index", JET_errNoCurrentIndex) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamNoCurrentIndexException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamNoCurrentIndexException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamKeyIsMadeException : public IsamUsageException { public: IsamKeyIsMadeException() : IsamUsageException( "The key is completely made", JET_errKeyIsMade) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamKeyIsMadeException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamKeyIsMadeException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamBadColumnIdException : public IsamUsageException { public: IsamBadColumnIdException() : IsamUsageException( "Column Id Incorrect", JET_errBadColumnId) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamBadColumnIdException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamBadColumnIdException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamBadItagSequenceException : public IsamStateException { public: IsamBadItagSequenceException() : IsamStateException( "Bad itagSequence for tagged column", JET_errBadItagSequence) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamBadItagSequenceException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamBadItagSequenceException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamCannotBeTaggedException : public IsamUsageException { public: IsamCannotBeTaggedException() : IsamUsageException( "AutoIncrement and Version cannot be tagged", JET_errCannotBeTagged) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamCannotBeTaggedException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamCannotBeTaggedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamDefaultValueTooBigException : public IsamUsageException { public: IsamDefaultValueTooBigException() : IsamUsageException( "Default value exceeds maximum size", JET_errDefaultValueTooBig) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDefaultValueTooBigException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamDefaultValueTooBigException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamMultiValuedDuplicateException : public IsamStateException { public: IsamMultiValuedDuplicateException() : IsamStateException( "Duplicate detected on a unique multi-valued column", JET_errMultiValuedDuplicate) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamMultiValuedDuplicateException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamMultiValuedDuplicateException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamLVCorruptedException : public IsamCorruptionException { public: IsamLVCorruptedException() : IsamCorruptionException( "Corruption encountered in long-value tree", JET_errLVCorrupted) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamLVCorruptedException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamLVCorruptedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamMultiValuedDuplicateAfterTruncationException : public IsamStateException { public: IsamMultiValuedDuplicateAfterTruncationException() : IsamStateException( "Duplicate detected on a unique multi-valued column after data was normalized, and normalizing truncated the data before comparison", JET_errMultiValuedDuplicateAfterTruncation) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamMultiValuedDuplicateAfterTruncationException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamMultiValuedDuplicateAfterTruncationException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamDerivedColumnCorruptionException : public IsamCorruptionException { public: IsamDerivedColumnCorruptionException() : IsamCorruptionException( "Invalid column in derived table", JET_errDerivedColumnCorruption) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDerivedColumnCorruptionException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamDerivedColumnCorruptionException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamInvalidPlaceholderColumnException : public IsamUsageException { public: IsamInvalidPlaceholderColumnException() : IsamUsageException( "Tried to convert column to a primary index placeholder, but column doesn't meet necessary criteria", JET_errInvalidPlaceholderColumn) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInvalidPlaceholderColumnException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamInvalidPlaceholderColumnException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamColumnCannotBeCompressedException : public IsamUsageException { public: IsamColumnCannotBeCompressedException() : IsamUsageException( "Only JET_coltypLongText and JET_coltypLongBinary columns can be compressed", JET_errColumnCannotBeCompressed) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamColumnCannotBeCompressedException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamColumnCannotBeCompressedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamColumnNoEncryptionKeyException : public IsamUsageException { public: IsamColumnNoEncryptionKeyException() : IsamUsageException( "Cannot retrieve/set encrypted column without an encryption key", JET_errColumnNoEncryptionKey) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamColumnNoEncryptionKeyException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamColumnNoEncryptionKeyException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamRecordNotFoundException : public IsamStateException { public: IsamRecordNotFoundException() : IsamStateException( "The key was not found", JET_errRecordNotFound) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamRecordNotFoundException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamRecordNotFoundException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamRecordNoCopyException : public IsamUsageException { public: IsamRecordNoCopyException() : IsamUsageException( "No working buffer", JET_errRecordNoCopy) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamRecordNoCopyException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamRecordNoCopyException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamNoCurrentRecordException : public IsamStateException { public: IsamNoCurrentRecordException() : IsamStateException( "Currency not on a record", JET_errNoCurrentRecord) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamNoCurrentRecordException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamNoCurrentRecordException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamRecordPrimaryChangedException : public IsamUsageException { public: IsamRecordPrimaryChangedException() : IsamUsageException( "Primary key may not change", JET_errRecordPrimaryChanged) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamRecordPrimaryChangedException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamRecordPrimaryChangedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamKeyDuplicateException : public IsamStateException { public: IsamKeyDuplicateException() : IsamStateException( "Illegal duplicate key", JET_errKeyDuplicate) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamKeyDuplicateException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamKeyDuplicateException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamAlreadyPreparedException : public IsamUsageException { public: IsamAlreadyPreparedException() : IsamUsageException( "Attempted to update record when record update was already in progress", JET_errAlreadyPrepared) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamAlreadyPreparedException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamAlreadyPreparedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamKeyNotMadeException : public IsamUsageException { public: IsamKeyNotMadeException() : IsamUsageException( "No call to JetMakeKey", JET_errKeyNotMade) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamKeyNotMadeException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamKeyNotMadeException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamUpdateNotPreparedException : public IsamUsageException { public: IsamUpdateNotPreparedException() : IsamUsageException( "No call to JetPrepareUpdate", JET_errUpdateNotPrepared) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamUpdateNotPreparedException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamUpdateNotPreparedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamDecompressionFailedException : public IsamCorruptionException { public: IsamDecompressionFailedException() : IsamCorruptionException( "Internal error: data could not be decompressed", JET_errDecompressionFailed) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDecompressionFailedException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamDecompressionFailedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamUpdateMustVersionException : public IsamUsageException { public: IsamUpdateMustVersionException() : IsamUsageException( "No version updates only for uncommitted tables", JET_errUpdateMustVersion) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamUpdateMustVersionException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamUpdateMustVersionException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamDecryptionFailedException : public IsamCorruptionException { public: IsamDecryptionFailedException() : IsamCorruptionException( "Data could not be decrypted", JET_errDecryptionFailed) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDecryptionFailedException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamDecryptionFailedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamEncryptionBadItagException : public IsamUsageException { public: IsamEncryptionBadItagException() : IsamUsageException( "Cannot encrypt tagged columns with itag>1", JET_errEncryptionBadItag) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamEncryptionBadItagException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamEncryptionBadItagException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamTooManySortsException : public IsamMemoryException { public: IsamTooManySortsException() : IsamMemoryException( "Too many sort processes", JET_errTooManySorts) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamTooManySortsException( String ^ description, Exception^ innerException ) : IsamMemoryException( description, innerException ) { } IsamTooManySortsException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamMemoryException( info, context ) { } }; [Serializable] public ref class IsamTooManyAttachedDatabasesException : public IsamUsageException { public: IsamTooManyAttachedDatabasesException() : IsamUsageException( "Too many open databases", JET_errTooManyAttachedDatabases) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamTooManyAttachedDatabasesException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamTooManyAttachedDatabasesException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamDiskFullException : public IsamDiskException { public: IsamDiskFullException() : IsamDiskException( "No space left on disk", JET_errDiskFull) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDiskFullException( String ^ description, Exception^ innerException ) : IsamDiskException( description, innerException ) { } IsamDiskFullException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamDiskException( info, context ) { } }; [Serializable] public ref class IsamPermissionDeniedException : public IsamUsageException { public: IsamPermissionDeniedException() : IsamUsageException( "Permission denied", JET_errPermissionDenied) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamPermissionDeniedException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamPermissionDeniedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamFileNotFoundException : public IsamStateException { public: IsamFileNotFoundException() : IsamStateException( "File not found", JET_errFileNotFound) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamFileNotFoundException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamFileNotFoundException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamFileInvalidTypeException : public IsamInconsistentException { public: IsamFileInvalidTypeException() : IsamInconsistentException( "Invalid file type", JET_errFileInvalidType) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamFileInvalidTypeException( String ^ description, Exception^ innerException ) : IsamInconsistentException( description, innerException ) { } IsamFileInvalidTypeException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamInconsistentException( info, context ) { } }; [Serializable] public ref class IsamFileAlreadyExistsException : public IsamInconsistentException { public: IsamFileAlreadyExistsException() : IsamInconsistentException( "File already exists", JET_errFileAlreadyExists) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamFileAlreadyExistsException( String ^ description, Exception^ innerException ) : IsamInconsistentException( description, innerException ) { } IsamFileAlreadyExistsException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamInconsistentException( info, context ) { } }; [Serializable] public ref class IsamAfterInitializationException : public IsamUsageException { public: IsamAfterInitializationException() : IsamUsageException( "Cannot Restore after init.", JET_errAfterInitialization) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamAfterInitializationException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamAfterInitializationException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamLogCorruptedException : public IsamCorruptionException { public: IsamLogCorruptedException() : IsamCorruptionException( "Logs could not be interpreted", JET_errLogCorrupted) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamLogCorruptedException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamLogCorruptedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamInvalidOperationException : public IsamUsageException { public: IsamInvalidOperationException() : IsamUsageException( "Invalid operation", JET_errInvalidOperation) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInvalidOperationException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamInvalidOperationException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamSessionSharingViolationException : public IsamUsageException { public: IsamSessionSharingViolationException() : IsamUsageException( "Multiple threads are using the same session", JET_errSessionSharingViolation) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamSessionSharingViolationException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamSessionSharingViolationException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamEntryPointNotFoundException : public IsamUsageException { public: IsamEntryPointNotFoundException() : IsamUsageException( "An entry point in a DLL we require could not be found", JET_errEntryPointNotFound) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamEntryPointNotFoundException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamEntryPointNotFoundException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamSessionContextAlreadySetException : public IsamUsageException { public: IsamSessionContextAlreadySetException() : IsamUsageException( "Specified session already has a session context set", JET_errSessionContextAlreadySet) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamSessionContextAlreadySetException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamSessionContextAlreadySetException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamSessionContextNotSetByThisThreadException : public IsamUsageException { public: IsamSessionContextNotSetByThisThreadException() : IsamUsageException( "Tried to reset session context, but current thread did not originally set the session context", JET_errSessionContextNotSetByThisThread) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamSessionContextNotSetByThisThreadException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamSessionContextNotSetByThisThreadException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamSessionInUseException : public IsamUsageException { public: IsamSessionInUseException() : IsamUsageException( "Tried to terminate session in use", JET_errSessionInUse) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamSessionInUseException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamSessionInUseException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamRecordFormatConversionFailedException : public IsamCorruptionException { public: IsamRecordFormatConversionFailedException() : IsamCorruptionException( "Internal error during dynamic record format conversion", JET_errRecordFormatConversionFailed) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamRecordFormatConversionFailedException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamRecordFormatConversionFailedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamOneDatabasePerSessionException : public IsamUsageException { public: IsamOneDatabasePerSessionException() : IsamUsageException( "Just one open user database per session is allowed (JET_paramOneDatabasePerSession)", JET_errOneDatabasePerSession) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamOneDatabasePerSessionException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamOneDatabasePerSessionException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamRollbackErrorException : public IsamFatalException { public: IsamRollbackErrorException() : IsamFatalException( "error during rollback", JET_errRollbackError) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamRollbackErrorException( String ^ description, Exception^ innerException ) : IsamFatalException( description, innerException ) { } IsamRollbackErrorException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamFatalException( info, context ) { } }; [Serializable] public ref class IsamFlushMapVersionUnsupportedException : public IsamUsageException { public: IsamFlushMapVersionUnsupportedException() : IsamUsageException( "The version of the persisted flush map is not supported by this version of the engine.", JET_errFlushMapVersionUnsupported) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamFlushMapVersionUnsupportedException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamFlushMapVersionUnsupportedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamFlushMapDatabaseMismatchException : public IsamUsageException { public: IsamFlushMapDatabaseMismatchException() : IsamUsageException( "The persisted flush map and the database do not match.", JET_errFlushMapDatabaseMismatch) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamFlushMapDatabaseMismatchException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamFlushMapDatabaseMismatchException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamFlushMapUnrecoverableException : public IsamStateException { public: IsamFlushMapUnrecoverableException() : IsamStateException( "The persisted flush map cannot be reconstructed.", JET_errFlushMapUnrecoverable) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamFlushMapUnrecoverableException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamFlushMapUnrecoverableException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamRBSFileCorruptException : public IsamCorruptionException { public: IsamRBSFileCorruptException() : IsamCorruptionException( "RBS file is corrupt", JET_errRBSFileCorrupt) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamRBSFileCorruptException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamRBSFileCorruptException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamRBSHeaderCorruptException : public IsamCorruptionException { public: IsamRBSHeaderCorruptException() : IsamCorruptionException( "RBS header is corrupt", JET_errRBSHeaderCorrupt) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamRBSHeaderCorruptException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamRBSHeaderCorruptException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamRBSDbMismatchException : public IsamInconsistentException { public: IsamRBSDbMismatchException() : IsamInconsistentException( "RBS is out of sync with the database file", JET_errRBSDbMismatch) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamRBSDbMismatchException( String ^ description, Exception^ innerException ) : IsamInconsistentException( description, innerException ) { } IsamRBSDbMismatchException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamInconsistentException( info, context ) { } }; [Serializable] public ref class IsamBadRBSVersionException : public IsamStateException { public: IsamBadRBSVersionException() : IsamStateException( "Version of revert snapshot file is not compatible with Jet version", JET_errBadRBSVersion) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamBadRBSVersionException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamBadRBSVersionException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamOutOfRBSSpaceException : public IsamFragmentationException { public: IsamOutOfRBSSpaceException() : IsamFragmentationException( "Revert snapshot file has reached its maximum size", JET_errOutOfRBSSpace) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamOutOfRBSSpaceException( String ^ description, Exception^ innerException ) : IsamFragmentationException( description, innerException ) { } IsamOutOfRBSSpaceException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamFragmentationException( info, context ) { } }; [Serializable] public ref class IsamRBSInvalidSignException : public IsamStateException { public: IsamRBSInvalidSignException() : IsamStateException( "RBS signature is not set in the RBS header", JET_errRBSInvalidSign) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamRBSInvalidSignException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamRBSInvalidSignException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamRBSInvalidRecordException : public IsamStateException { public: IsamRBSInvalidRecordException() : IsamStateException( "Invalid RBS record found in the revert snapshot", JET_errRBSInvalidRecord) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamRBSInvalidRecordException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamRBSInvalidRecordException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamRBSRCInvalidRBSException : public IsamStateException { public: IsamRBSRCInvalidRBSException() : IsamStateException( "The database cannot be reverted to the expected time as there are some invalid revert snapshots to revert to that time.", JET_errRBSRCInvalidRBS) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamRBSRCInvalidRBSException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamRBSRCInvalidRBSException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamRBSRCNoRBSFoundException : public IsamStateException { public: IsamRBSRCNoRBSFoundException() : IsamStateException( "The database cannot be reverted to the expected time as there no revert snapshots to revert to that time.", JET_errRBSRCNoRBSFound) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamRBSRCNoRBSFoundException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamRBSRCNoRBSFoundException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamRBSRCBadDbStateException : public IsamStateException { public: IsamRBSRCBadDbStateException() : IsamStateException( "The database revert to the expected time failed as the database has a bad dbstate.", JET_errRBSRCBadDbState) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamRBSRCBadDbStateException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamRBSRCBadDbStateException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamRBSMissingReqLogsException : public IsamStateException { public: IsamRBSMissingReqLogsException() : IsamStateException( "The required logs for the revert snapshot are missing.", JET_errRBSMissingReqLogs) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamRBSMissingReqLogsException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamRBSMissingReqLogsException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamRBSLogDivergenceFailedException : public IsamStateException { public: IsamRBSLogDivergenceFailedException() : IsamStateException( "The required logs for the revert snapshot are diverged with logs in the log directory.", JET_errRBSLogDivergenceFailed) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamRBSLogDivergenceFailedException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamRBSLogDivergenceFailedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamRBSRCCopyLogsRevertStateException : public IsamStateException { public: IsamRBSRCCopyLogsRevertStateException() : IsamStateException( "The database cannot be reverted to the expected time as we are in copying logs stage from previous revert request and a further revert in the past is requested which might leave logs in corrupt state.", JET_errRBSRCCopyLogsRevertState) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamRBSRCCopyLogsRevertStateException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamRBSRCCopyLogsRevertStateException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamDatabaseIncompleteRevertException : public IsamStateException { public: IsamDatabaseIncompleteRevertException() : IsamStateException( "The database cannot be attached because it is currently being reverted using revert snapshot.", JET_errDatabaseIncompleteRevert) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDatabaseIncompleteRevertException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamDatabaseIncompleteRevertException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamRBSRCRevertCancelledException : public IsamStateException { public: IsamRBSRCRevertCancelledException() : IsamStateException( "The database revert has been cancelled.", JET_errRBSRCRevertCancelled) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamRBSRCRevertCancelledException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamRBSRCRevertCancelledException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamRBSRCInvalidDbFormatVersionException : public IsamStateException { public: IsamRBSRCInvalidDbFormatVersionException() : IsamStateException( "The database format version for the databases to be reverted doesn't support applying the revert snapshot.", JET_errRBSRCInvalidDbFormatVersion) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamRBSRCInvalidDbFormatVersionException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamRBSRCInvalidDbFormatVersionException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamRBSCannotDetermineDivergenceException : public IsamStateException { public: IsamRBSCannotDetermineDivergenceException() : IsamStateException( "The required logs for the revert snapshot are missing in log directory and hence we cannot determine if those logs are diverged with the logs in snapshot directory.", JET_errRBSCannotDetermineDivergence) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamRBSCannotDetermineDivergenceException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamRBSCannotDetermineDivergenceException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamDatabaseAlreadyRunningMaintenanceException : public IsamUsageException { public: IsamDatabaseAlreadyRunningMaintenanceException() : IsamUsageException( "The operation did not complete successfully because the database is already running maintenance on specified database", JET_errDatabaseAlreadyRunningMaintenance) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamDatabaseAlreadyRunningMaintenanceException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamDatabaseAlreadyRunningMaintenanceException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamCallbackFailedException : public IsamStateException { public: IsamCallbackFailedException() : IsamStateException( "A callback failed", JET_errCallbackFailed) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamCallbackFailedException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamCallbackFailedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamCallbackNotResolvedException : public IsamUsageException { public: IsamCallbackNotResolvedException() : IsamUsageException( "A callback function could not be found", JET_errCallbackNotResolved) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamCallbackNotResolvedException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamCallbackNotResolvedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamSpaceHintsInvalidException : public IsamUsageException { public: IsamSpaceHintsInvalidException() : IsamUsageException( "An element of the JET space hints structure was not correct or actionable.", JET_errSpaceHintsInvalid) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamSpaceHintsInvalidException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamSpaceHintsInvalidException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamOSSnapshotInvalidSequenceException : public IsamUsageException { public: IsamOSSnapshotInvalidSequenceException() : IsamUsageException( "OS Shadow copy API used in an invalid sequence", JET_errOSSnapshotInvalidSequence) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamOSSnapshotInvalidSequenceException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamOSSnapshotInvalidSequenceException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamOSSnapshotTimeOutException : public IsamOperationException { public: IsamOSSnapshotTimeOutException() : IsamOperationException( "OS Shadow copy ended with time-out", JET_errOSSnapshotTimeOut) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamOSSnapshotTimeOutException( String ^ description, Exception^ innerException ) : IsamOperationException( description, innerException ) { } IsamOSSnapshotTimeOutException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamOperationException( info, context ) { } }; [Serializable] public ref class IsamOSSnapshotNotAllowedException : public IsamStateException { public: IsamOSSnapshotNotAllowedException() : IsamStateException( "OS Shadow copy not allowed (backup or recovery in progress)", JET_errOSSnapshotNotAllowed) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamOSSnapshotNotAllowedException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamOSSnapshotNotAllowedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamOSSnapshotInvalidSnapIdException : public IsamUsageException { public: IsamOSSnapshotInvalidSnapIdException() : IsamUsageException( "invalid JET_OSSNAPID", JET_errOSSnapshotInvalidSnapId) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamOSSnapshotInvalidSnapIdException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamOSSnapshotInvalidSnapIdException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamTooManyTestInjectionsException : public IsamUsageException { public: IsamTooManyTestInjectionsException() : IsamUsageException( "Internal test injection limit hit", JET_errTooManyTestInjections) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamTooManyTestInjectionsException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamTooManyTestInjectionsException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamTestInjectionNotSupportedException : public IsamStateException { public: IsamTestInjectionNotSupportedException() : IsamStateException( "Test injection not supported", JET_errTestInjectionNotSupported) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamTestInjectionNotSupportedException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamTestInjectionNotSupportedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamInvalidLogDataSequenceException : public IsamStateException { public: IsamInvalidLogDataSequenceException() : IsamStateException( "Some how the log data provided got out of sequence with the current state of the instance", JET_errInvalidLogDataSequence) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamInvalidLogDataSequenceException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamInvalidLogDataSequenceException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamLSCallbackNotSpecifiedException : public IsamUsageException { public: IsamLSCallbackNotSpecifiedException() : IsamUsageException( "Attempted to use Local Storage without a callback function being specified", JET_errLSCallbackNotSpecified) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamLSCallbackNotSpecifiedException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamLSCallbackNotSpecifiedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamLSAlreadySetException : public IsamUsageException { public: IsamLSAlreadySetException() : IsamUsageException( "Attempted to set Local Storage for an object which already had it set", JET_errLSAlreadySet) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamLSAlreadySetException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamLSAlreadySetException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; [Serializable] public ref class IsamLSNotSetException : public IsamStateException { public: IsamLSNotSetException() : IsamStateException( "Attempted to retrieve Local Storage from an object which didn't have it set", JET_errLSNotSet) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamLSNotSetException( String ^ description, Exception^ innerException ) : IsamStateException( description, innerException ) { } IsamLSNotSetException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamStateException( info, context ) { } }; [Serializable] public ref class IsamFileIOBeyondEOFException : public IsamCorruptionException { public: IsamFileIOBeyondEOFException() : IsamCorruptionException( "a read was issued to a location beyond EOF (writes will expand the file)", JET_errFileIOBeyondEOF) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamFileIOBeyondEOFException( String ^ description, Exception^ innerException ) : IsamCorruptionException( description, innerException ) { } IsamFileIOBeyondEOFException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamCorruptionException( info, context ) { } }; [Serializable] public ref class IsamFileCompressedException : public IsamUsageException { public: IsamFileCompressedException() : IsamUsageException( "read/write access is not supported on compressed files", JET_errFileCompressed) { } // Constructor with embedded exception. Does not use the string from esent.h. IsamFileCompressedException( String ^ description, Exception^ innerException ) : IsamUsageException( description, innerException ) { } IsamFileCompressedException( System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context ) : IsamUsageException( info, context ) { } }; public ref class EseExceptionHelper { public: static IsamErrorException^ JetErrToException( const JET_ERR err ) { switch ( err ) { case JET_errOutOfThreads: return gcnew IsamOutOfThreadsException; case JET_errTooManyIO: return gcnew IsamTooManyIOException; case JET_errTaskDropped: return gcnew IsamTaskDroppedException; case JET_errInternalError: return gcnew IsamInternalErrorException; case JET_errDisabledFunctionality: return gcnew IsamDisabledFunctionalityException; case JET_errUnloadableOSFunctionality: return gcnew IsamUnloadableOSFunctionalityException; case JET_errDeviceMissing: return gcnew IsamDeviceMissingException; case JET_errDeviceMisconfigured: return gcnew IsamDeviceMisconfiguredException; case JET_errDeviceTimeout: return gcnew IsamDeviceTimeoutException; case JET_errDeviceFailure: return gcnew IsamDeviceFailureException; case JET_errDatabaseBufferDependenciesCorrupted: return gcnew IsamDatabaseBufferDependenciesCorruptedException; case JET_errBadPageLink: return gcnew IsamBadPageLinkException; case JET_errNTSystemCallFailed: return gcnew IsamNTSystemCallFailedException; case JET_errBadParentPageLink: return gcnew IsamBadParentPageLinkException; case JET_errSPAvailExtCorrupted: return gcnew IsamSPAvailExtCorruptedException; case JET_errSPOwnExtCorrupted: return gcnew IsamSPOwnExtCorruptedException; case JET_errDbTimeCorrupted: return gcnew IsamDbTimeCorruptedException; case JET_errKeyTruncated: return gcnew IsamKeyTruncatedException; case JET_errDatabaseLeakInSpace: return gcnew IsamDatabaseLeakInSpaceException; case JET_errBadEmptyPage: return gcnew IsamBadEmptyPageException; case JET_errBadLineCount: return gcnew IsamBadLineCountException; case JET_errPageTagCorrupted: return gcnew IsamPageTagCorruptedException; case JET_errNodeCorrupted: return gcnew IsamNodeCorruptedException; case JET_errCannotSeparateIntrinsicLV: return gcnew IsamCannotSeparateIntrinsicLVException; case JET_errSeparatedLongValue: return gcnew IsamSeparatedLongValueException; case JET_errMustBeSeparateLongValue: return gcnew IsamMustBeSeparateLongValueException; case JET_errInvalidPreread: return gcnew IsamInvalidPrereadException; case JET_errInvalidColumnReference: return gcnew IsamInvalidColumnReferenceException; case JET_errStaleColumnReference: return gcnew IsamStaleColumnReferenceException; case JET_errCompressionIntegrityCheckFailed: return gcnew IsamCompressionIntegrityCheckFailedException; case JET_errLogFileCorrupt: return gcnew IsamLogFileCorruptException; case JET_errNoBackupDirectory: return gcnew IsamNoBackupDirectoryException; case JET_errBackupDirectoryNotEmpty: return gcnew IsamBackupDirectoryNotEmptyException; case JET_errBackupInProgress: return gcnew IsamBackupInProgressException; case JET_errRestoreInProgress: return gcnew IsamRestoreInProgressException; case JET_errMissingPreviousLogFile: return gcnew IsamMissingPreviousLogFileException; case JET_errLogWriteFail: return gcnew IsamLogWriteFailException; case JET_errLogDisabledDueToRecoveryFailure: return gcnew IsamLogDisabledDueToRecoveryFailureException; case JET_errLogGenerationMismatch: return gcnew IsamLogGenerationMismatchException; case JET_errBadLogVersion: return gcnew IsamBadLogVersionException; case JET_errInvalidLogSequence: return gcnew IsamInvalidLogSequenceException; case JET_errLoggingDisabled: return gcnew IsamLoggingDisabledException; case JET_errLogSequenceEnd: return gcnew IsamLogSequenceEndException; case JET_errNoBackup: return gcnew IsamNoBackupException; case JET_errInvalidBackupSequence: return gcnew IsamInvalidBackupSequenceException; case JET_errBackupNotAllowedYet: return gcnew IsamBackupNotAllowedYetException; case JET_errDeleteBackupFileFail: return gcnew IsamDeleteBackupFileFailException; case JET_errMakeBackupDirectoryFail: return gcnew IsamMakeBackupDirectoryFailException; case JET_errInvalidBackup: return gcnew IsamInvalidBackupException; case JET_errRecoveredWithErrors: return gcnew IsamRecoveredWithErrorsException; case JET_errMissingLogFile: return gcnew IsamMissingLogFileException; case JET_errLogDiskFull: return gcnew IsamLogDiskFullException; case JET_errBadLogSignature: return gcnew IsamBadLogSignatureException; case JET_errBadCheckpointSignature: return gcnew IsamBadCheckpointSignatureException; case JET_errCheckpointCorrupt: return gcnew IsamCheckpointCorruptException; case JET_errBadPatchPage: return gcnew IsamBadPatchPageException; case JET_errRedoAbruptEnded: return gcnew IsamRedoAbruptEndedException; case JET_errDatabaseLogSetMismatch: return gcnew IsamDatabaseLogSetMismatchException; case JET_errLogFileSizeMismatch: return gcnew IsamLogFileSizeMismatchException; case JET_errCheckpointFileNotFound: return gcnew IsamCheckpointFileNotFoundException; case JET_errRequiredLogFilesMissing: return gcnew IsamRequiredLogFilesMissingException; case JET_errSoftRecoveryOnBackupDatabase: return gcnew IsamSoftRecoveryOnBackupDatabaseException; case JET_errLogFileSizeMismatchDatabasesConsistent: return gcnew IsamLogFileSizeMismatchDatabasesConsistentException; case JET_errLogSectorSizeMismatch: return gcnew IsamLogSectorSizeMismatchException; case JET_errLogSectorSizeMismatchDatabasesConsistent: return gcnew IsamLogSectorSizeMismatchDatabasesConsistentException; case JET_errLogSequenceEndDatabasesConsistent: return gcnew IsamLogSequenceEndDatabasesConsistentException; case JET_errDatabaseDirtyShutdown: return gcnew IsamDatabaseDirtyShutdownException; case JET_errConsistentTimeMismatch: return gcnew IsamConsistentTimeMismatchException; case JET_errEndingRestoreLogTooLow: return gcnew IsamEndingRestoreLogTooLowException; case JET_errStartingRestoreLogTooHigh: return gcnew IsamStartingRestoreLogTooHighException; case JET_errGivenLogFileHasBadSignature: return gcnew IsamGivenLogFileHasBadSignatureException; case JET_errGivenLogFileIsNotContiguous: return gcnew IsamGivenLogFileIsNotContiguousException; case JET_errMissingRestoreLogFiles: return gcnew IsamMissingRestoreLogFilesException; case JET_errMissingFullBackup: return gcnew IsamMissingFullBackupException; case JET_errDatabaseAlreadyUpgraded: return gcnew IsamDatabaseAlreadyUpgradedException; case JET_errDatabaseIncompleteUpgrade: return gcnew IsamDatabaseIncompleteUpgradeException; case JET_errMissingCurrentLogFiles: return gcnew IsamMissingCurrentLogFilesException; case JET_errDbTimeTooOld: return gcnew IsamDbTimeTooOldException; case JET_errDbTimeTooNew: return gcnew IsamDbTimeTooNewException; case JET_errMissingFileToBackup: return gcnew IsamMissingFileToBackupException; case JET_errLogTornWriteDuringHardRestore: return gcnew IsamLogTornWriteDuringHardRestoreException; case JET_errLogTornWriteDuringHardRecovery: return gcnew IsamLogTornWriteDuringHardRecoveryException; case JET_errLogCorruptDuringHardRestore: return gcnew IsamLogCorruptDuringHardRestoreException; case JET_errLogCorruptDuringHardRecovery: return gcnew IsamLogCorruptDuringHardRecoveryException; case JET_errBadRestoreTargetInstance: return gcnew IsamBadRestoreTargetInstanceException; case JET_errRecoveredWithoutUndo: return gcnew IsamRecoveredWithoutUndoException; case JET_errCommittedLogFilesMissing: return gcnew IsamCommittedLogFilesMissingException; case JET_errSectorSizeNotSupported: return gcnew IsamSectorSizeNotSupportedException; case JET_errRecoveredWithoutUndoDatabasesConsistent: return gcnew IsamRecoveredWithoutUndoDatabasesConsistentException; case JET_errCommittedLogFileCorrupt: return gcnew IsamCommittedLogFileCorruptException; case JET_errLogSequenceChecksumMismatch: return gcnew IsamLogSequenceChecksumMismatchException; case JET_errPageInitializedMismatch: return gcnew IsamPageInitializedMismatchException; case JET_errUnicodeTranslationFail: return gcnew IsamUnicodeTranslationFailException; case JET_errUnicodeNormalizationNotSupported: return gcnew IsamUnicodeNormalizationNotSupportedException; case JET_errUnicodeLanguageValidationFailure: return gcnew IsamUnicodeLanguageValidationFailureException; case JET_errExistingLogFileHasBadSignature: return gcnew IsamExistingLogFileHasBadSignatureException; case JET_errExistingLogFileIsNotContiguous: return gcnew IsamExistingLogFileIsNotContiguousException; case JET_errLogReadVerifyFailure: return gcnew IsamLogReadVerifyFailureException; case JET_errCheckpointDepthTooDeep: return gcnew IsamCheckpointDepthTooDeepException; case JET_errRestoreOfNonBackupDatabase: return gcnew IsamRestoreOfNonBackupDatabaseException; case JET_errLogFileNotCopied: return gcnew IsamLogFileNotCopiedException; case JET_errSurrogateBackupInProgress: return gcnew IsamSurrogateBackupInProgressException; case JET_errTransactionTooLong: return gcnew IsamTransactionTooLongException; case JET_errEngineFormatVersionNoLongerSupportedTooLow: return gcnew IsamEngineFormatVersionNoLongerSupportedTooLowException; case JET_errEngineFormatVersionNotYetImplementedTooHigh: return gcnew IsamEngineFormatVersionNotYetImplementedTooHighException; case JET_errEngineFormatVersionParamTooLowForRequestedFeature: return gcnew IsamEngineFormatVersionParamTooLowForRequestedFeatureException; case JET_errEngineFormatVersionSpecifiedTooLowForLogVersion: return gcnew IsamEngineFormatVersionSpecifiedTooLowForLogVersionException; case JET_errEngineFormatVersionSpecifiedTooLowForDatabaseVersion: return gcnew IsamEngineFormatVersionSpecifiedTooLowForDatabaseVersionException; case JET_errBackupAbortByServer: return gcnew IsamBackupAbortByServerException; case JET_errInvalidGrbit: return gcnew IsamInvalidGrbitException; case JET_errTermInProgress: return gcnew IsamTermInProgressException; case JET_errFeatureNotAvailable: return gcnew IsamFeatureNotAvailableException; case JET_errInvalidName: return gcnew IsamInvalidNameException; case JET_errInvalidParameter: return gcnew IsamInvalidParameterException; case JET_errDatabaseFileReadOnly: return gcnew IsamDatabaseFileReadOnlyException; case JET_errInvalidDatabaseId: return gcnew IsamInvalidDatabaseIdException; case JET_errOutOfMemory: return gcnew IsamOutOfMemoryException; case JET_errOutOfDatabaseSpace: return gcnew IsamOutOfDatabaseSpaceException; case JET_errOutOfCursors: return gcnew IsamOutOfCursorsException; case JET_errOutOfBuffers: return gcnew IsamOutOfBuffersException; case JET_errTooManyIndexes: return gcnew IsamTooManyIndexesException; case JET_errTooManyKeys: return gcnew IsamTooManyKeysException; case JET_errRecordDeleted: return gcnew IsamRecordDeletedException; case JET_errReadVerifyFailure: return gcnew IsamReadVerifyFailureException; case JET_errPageNotInitialized: return gcnew IsamPageNotInitializedException; case JET_errOutOfFileHandles: return gcnew IsamOutOfFileHandlesException; case JET_errDiskReadVerificationFailure: return gcnew IsamDiskReadVerificationFailureException; case JET_errDiskIO: return gcnew IsamDiskIOException; case JET_errInvalidPath: return gcnew IsamInvalidPathException; case JET_errRecordTooBig: return gcnew IsamRecordTooBigException; case JET_errInvalidDatabase: return gcnew IsamInvalidDatabaseException; case JET_errNotInitialized: return gcnew IsamNotInitializedException; case JET_errAlreadyInitialized: return gcnew IsamAlreadyInitializedException; case JET_errInitInProgress: return gcnew IsamInitInProgressException; case JET_errFileAccessDenied: return gcnew IsamFileAccessDeniedException; case JET_errBufferTooSmall: return gcnew IsamBufferTooSmallException; case JET_errTooManyColumns: return gcnew IsamTooManyColumnsException; case JET_errInvalidBookmark: return gcnew IsamInvalidBookmarkException; case JET_errColumnInUse: return gcnew IsamColumnInUseException; case JET_errInvalidBufferSize: return gcnew IsamInvalidBufferSizeException; case JET_errColumnNotUpdatable: return gcnew IsamColumnNotUpdatableException; case JET_errIndexInUse: return gcnew IsamIndexInUseException; case JET_errNullKeyDisallowed: return gcnew IsamNullKeyDisallowedException; case JET_errNotInTransaction: return gcnew IsamNotInTransactionException; case JET_errMustRollback: return gcnew IsamMustRollbackException; case JET_errTooManyActiveUsers: return gcnew IsamTooManyActiveUsersException; case JET_errInvalidLanguageId: return gcnew IsamInvalidLanguageIdException; case JET_errInvalidCodePage: return gcnew IsamInvalidCodePageException; case JET_errInvalidLCMapStringFlags: return gcnew IsamInvalidLCMapStringFlagsException; case JET_errVersionStoreOutOfMemoryAndCleanupTimedOut: return gcnew IsamVersionStoreOutOfMemoryAndCleanupTimedOutException; case JET_errVersionStoreOutOfMemory: return gcnew IsamVersionStoreOutOfMemoryException; case JET_errCannotIndex: return gcnew IsamCannotIndexException; case JET_errRecordNotDeleted: return gcnew IsamRecordNotDeletedException; case JET_errTooManyMempoolEntries: return gcnew IsamTooManyMempoolEntriesException; case JET_errOutOfObjectIDs: return gcnew IsamOutOfObjectIDsException; case JET_errOutOfLongValueIDs: return gcnew IsamOutOfLongValueIDsException; case JET_errOutOfAutoincrementValues: return gcnew IsamOutOfAutoincrementValuesException; case JET_errOutOfDbtimeValues: return gcnew IsamOutOfDbtimeValuesException; case JET_errOutOfSequentialIndexValues: return gcnew IsamOutOfSequentialIndexValuesException; case JET_errRunningInOneInstanceMode: return gcnew IsamRunningInOneInstanceModeException; case JET_errRunningInMultiInstanceMode: return gcnew IsamRunningInMultiInstanceModeException; case JET_errSystemParamsAlreadySet: return gcnew IsamSystemParamsAlreadySetException; case JET_errSystemPathInUse: return gcnew IsamSystemPathInUseException; case JET_errLogFilePathInUse: return gcnew IsamLogFilePathInUseException; case JET_errTempPathInUse: return gcnew IsamTempPathInUseException; case JET_errInstanceNameInUse: return gcnew IsamInstanceNameInUseException; case JET_errSystemParameterConflict: return gcnew IsamSystemParameterConflictException; case JET_errInstanceUnavailable: return gcnew IsamInstanceUnavailableException; case JET_errInstanceUnavailableDueToFatalLogDiskFull: return gcnew IsamInstanceUnavailableDueToFatalLogDiskFullException; case JET_errInvalidSesparamId: return gcnew IsamInvalidSesparamIdException; case JET_errTooManyRecords: return gcnew IsamTooManyRecordsException; case JET_errInvalidDbparamId: return gcnew IsamInvalidDbparamIdException; case JET_errOutOfSessions: return gcnew IsamOutOfSessionsException; case JET_errWriteConflict: return gcnew IsamWriteConflictException; case JET_errTransTooDeep: return gcnew IsamTransTooDeepException; case JET_errInvalidSesid: return gcnew IsamInvalidSesidException; case JET_errWriteConflictPrimaryIndex: return gcnew IsamWriteConflictPrimaryIndexException; case JET_errInTransaction: return gcnew IsamInTransactionException; case JET_errTransReadOnly: return gcnew IsamTransReadOnlyException; case JET_errSessionWriteConflict: return gcnew IsamSessionWriteConflictException; case JET_errRecordTooBigForBackwardCompatibility: return gcnew IsamRecordTooBigForBackwardCompatibilityException; case JET_errCannotMaterializeForwardOnlySort: return gcnew IsamCannotMaterializeForwardOnlySortException; case JET_errSesidTableIdMismatch: return gcnew IsamSesidTableIdMismatchException; case JET_errInvalidInstance: return gcnew IsamInvalidInstanceException; case JET_errDirtyShutdown: return gcnew IsamDirtyShutdownException; case JET_errReadPgnoVerifyFailure: return gcnew IsamReadPgnoVerifyFailureException; case JET_errReadLostFlushVerifyFailure: return gcnew IsamReadLostFlushVerifyFailureException; case JET_errFileSystemCorruption: return gcnew IsamFileSystemCorruptionException; case JET_errRecoveryVerifyFailure: return gcnew IsamRecoveryVerifyFailureException; case JET_errFilteredMoveNotSupported: return gcnew IsamFilteredMoveNotSupportedException; case JET_errDatabaseDuplicate: return gcnew IsamDatabaseDuplicateException; case JET_errDatabaseInUse: return gcnew IsamDatabaseInUseException; case JET_errDatabaseNotFound: return gcnew IsamDatabaseNotFoundException; case JET_errDatabaseInvalidName: return gcnew IsamDatabaseInvalidNameException; case JET_errDatabaseInvalidPages: return gcnew IsamDatabaseInvalidPagesException; case JET_errDatabaseCorrupted: return gcnew IsamDatabaseCorruptedException; case JET_errDatabaseLocked: return gcnew IsamDatabaseLockedException; case JET_errCannotDisableVersioning: return gcnew IsamCannotDisableVersioningException; case JET_errInvalidDatabaseVersion: return gcnew IsamInvalidDatabaseVersionException; case JET_errPageSizeMismatch: return gcnew IsamPageSizeMismatchException; case JET_errTooManyInstances: return gcnew IsamTooManyInstancesException; case JET_errDatabaseSharingViolation: return gcnew IsamDatabaseSharingViolationException; case JET_errAttachedDatabaseMismatch: return gcnew IsamAttachedDatabaseMismatchException; case JET_errDatabaseInvalidPath: return gcnew IsamDatabaseInvalidPathException; case JET_errForceDetachNotAllowed: return gcnew IsamForceDetachNotAllowedException; case JET_errCatalogCorrupted: return gcnew IsamCatalogCorruptedException; case JET_errPartiallyAttachedDB: return gcnew IsamPartiallyAttachedDBException; case JET_errDatabaseSignInUse: return gcnew IsamDatabaseSignInUseException; case JET_errDatabaseCorruptedNoRepair: return gcnew IsamDatabaseCorruptedNoRepairException; case JET_errInvalidCreateDbVersion: return gcnew IsamInvalidCreateDbVersionException; case JET_errDatabaseIncompleteIncrementalReseed: return gcnew IsamDatabaseIncompleteIncrementalReseedException; case JET_errDatabaseInvalidIncrementalReseed: return gcnew IsamDatabaseInvalidIncrementalReseedException; case JET_errDatabaseFailedIncrementalReseed: return gcnew IsamDatabaseFailedIncrementalReseedException; case JET_errNoAttachmentsFailedIncrementalReseed: return gcnew IsamNoAttachmentsFailedIncrementalReseedException; case JET_errDatabaseNotReady: return gcnew IsamDatabaseNotReadyException; case JET_errDatabaseAttachedForRecovery: return gcnew IsamDatabaseAttachedForRecoveryException; case JET_errTransactionsNotReadyDuringRecovery: return gcnew IsamTransactionsNotReadyDuringRecoveryException; case JET_errTableLocked: return gcnew IsamTableLockedException; case JET_errTableDuplicate: return gcnew IsamTableDuplicateException; case JET_errTableInUse: return gcnew IsamTableInUseException; case JET_errObjectNotFound: return gcnew IsamObjectNotFoundException; case JET_errDensityInvalid: return gcnew IsamDensityInvalidException; case JET_errTableNotEmpty: return gcnew IsamTableNotEmptyException; case JET_errInvalidTableId: return gcnew IsamInvalidTableIdException; case JET_errTooManyOpenTables: return gcnew IsamTooManyOpenTablesException; case JET_errIllegalOperation: return gcnew IsamIllegalOperationException; case JET_errTooManyOpenTablesAndCleanupTimedOut: return gcnew IsamTooManyOpenTablesAndCleanupTimedOutException; case JET_errCannotDeleteTempTable: return gcnew IsamCannotDeleteTempTableException; case JET_errCannotDeleteSystemTable: return gcnew IsamCannotDeleteSystemTableException; case JET_errCannotDeleteTemplateTable: return gcnew IsamCannotDeleteTemplateTableException; case JET_errExclusiveTableLockRequired: return gcnew IsamExclusiveTableLockRequiredException; case JET_errFixedDDL: return gcnew IsamFixedDDLException; case JET_errFixedInheritedDDL: return gcnew IsamFixedInheritedDDLException; case JET_errCannotNestDDL: return gcnew IsamCannotNestDDLException; case JET_errDDLNotInheritable: return gcnew IsamDDLNotInheritableException; case JET_errInvalidSettings: return gcnew IsamInvalidSettingsException; case JET_errClientRequestToStopJetService: return gcnew IsamClientRequestToStopJetServiceException; case JET_errIndexHasPrimary: return gcnew IsamIndexHasPrimaryException; case JET_errIndexDuplicate: return gcnew IsamIndexDuplicateException; case JET_errIndexNotFound: return gcnew IsamIndexNotFoundException; case JET_errIndexMustStay: return gcnew IsamIndexMustStayException; case JET_errIndexInvalidDef: return gcnew IsamIndexInvalidDefException; case JET_errInvalidCreateIndex: return gcnew IsamInvalidCreateIndexException; case JET_errTooManyOpenIndexes: return gcnew IsamTooManyOpenIndexesException; case JET_errMultiValuedIndexViolation: return gcnew IsamMultiValuedIndexViolationException; case JET_errIndexBuildCorrupted: return gcnew IsamIndexBuildCorruptedException; case JET_errPrimaryIndexCorrupted: return gcnew IsamPrimaryIndexCorruptedException; case JET_errSecondaryIndexCorrupted: return gcnew IsamSecondaryIndexCorruptedException; case JET_errInvalidIndexId: return gcnew IsamInvalidIndexIdException; case JET_errIndexTuplesSecondaryIndexOnly: return gcnew IsamIndexTuplesSecondaryIndexOnlyException; case JET_errIndexTuplesNonUniqueOnly: return gcnew IsamIndexTuplesNonUniqueOnlyException; case JET_errIndexTuplesTextBinaryColumnsOnly: return gcnew IsamIndexTuplesTextBinaryColumnsOnlyException; case JET_errIndexTuplesVarSegMacNotAllowed: return gcnew IsamIndexTuplesVarSegMacNotAllowedException; case JET_errIndexTuplesInvalidLimits: return gcnew IsamIndexTuplesInvalidLimitsException; case JET_errIndexTuplesCannotRetrieveFromIndex: return gcnew IsamIndexTuplesCannotRetrieveFromIndexException; case JET_errIndexTuplesKeyTooSmall: return gcnew IsamIndexTuplesKeyTooSmallException; case JET_errInvalidLVChunkSize: return gcnew IsamInvalidLVChunkSizeException; case JET_errColumnCannotBeEncrypted: return gcnew IsamColumnCannotBeEncryptedException; case JET_errCannotIndexOnEncryptedColumn: return gcnew IsamCannotIndexOnEncryptedColumnException; case JET_errColumnNoChunk: return gcnew IsamColumnNoChunkException; case JET_errColumnDoesNotFit: return gcnew IsamColumnDoesNotFitException; case JET_errNullInvalid: return gcnew IsamNullInvalidException; case JET_errColumnTooBig: return gcnew IsamColumnTooBigException; case JET_errColumnNotFound: return gcnew IsamColumnNotFoundException; case JET_errColumnDuplicate: return gcnew IsamColumnDuplicateException; case JET_errMultiValuedColumnMustBeTagged: return gcnew IsamMultiValuedColumnMustBeTaggedException; case JET_errColumnRedundant: return gcnew IsamColumnRedundantException; case JET_errInvalidColumnType: return gcnew IsamInvalidColumnTypeException; case JET_errNoCurrentIndex: return gcnew IsamNoCurrentIndexException; case JET_errKeyIsMade: return gcnew IsamKeyIsMadeException; case JET_errBadColumnId: return gcnew IsamBadColumnIdException; case JET_errBadItagSequence: return gcnew IsamBadItagSequenceException; case JET_errCannotBeTagged: return gcnew IsamCannotBeTaggedException; case JET_errDefaultValueTooBig: return gcnew IsamDefaultValueTooBigException; case JET_errMultiValuedDuplicate: return gcnew IsamMultiValuedDuplicateException; case JET_errLVCorrupted: return gcnew IsamLVCorruptedException; case JET_errMultiValuedDuplicateAfterTruncation: return gcnew IsamMultiValuedDuplicateAfterTruncationException; case JET_errDerivedColumnCorruption: return gcnew IsamDerivedColumnCorruptionException; case JET_errInvalidPlaceholderColumn: return gcnew IsamInvalidPlaceholderColumnException; case JET_errColumnCannotBeCompressed: return gcnew IsamColumnCannotBeCompressedException; case JET_errColumnNoEncryptionKey: return gcnew IsamColumnNoEncryptionKeyException; case JET_errRecordNotFound: return gcnew IsamRecordNotFoundException; case JET_errRecordNoCopy: return gcnew IsamRecordNoCopyException; case JET_errNoCurrentRecord: return gcnew IsamNoCurrentRecordException; case JET_errRecordPrimaryChanged: return gcnew IsamRecordPrimaryChangedException; case JET_errKeyDuplicate: return gcnew IsamKeyDuplicateException; case JET_errAlreadyPrepared: return gcnew IsamAlreadyPreparedException; case JET_errKeyNotMade: return gcnew IsamKeyNotMadeException; case JET_errUpdateNotPrepared: return gcnew IsamUpdateNotPreparedException; case JET_errDecompressionFailed: return gcnew IsamDecompressionFailedException; case JET_errUpdateMustVersion: return gcnew IsamUpdateMustVersionException; case JET_errDecryptionFailed: return gcnew IsamDecryptionFailedException; case JET_errEncryptionBadItag: return gcnew IsamEncryptionBadItagException; case JET_errTooManySorts: return gcnew IsamTooManySortsException; case JET_errTooManyAttachedDatabases: return gcnew IsamTooManyAttachedDatabasesException; case JET_errDiskFull: return gcnew IsamDiskFullException; case JET_errPermissionDenied: return gcnew IsamPermissionDeniedException; case JET_errFileNotFound: return gcnew IsamFileNotFoundException; case JET_errFileInvalidType: return gcnew IsamFileInvalidTypeException; case JET_errFileAlreadyExists: return gcnew IsamFileAlreadyExistsException; case JET_errAfterInitialization: return gcnew IsamAfterInitializationException; case JET_errLogCorrupted: return gcnew IsamLogCorruptedException; case JET_errInvalidOperation: return gcnew IsamInvalidOperationException; case JET_errSessionSharingViolation: return gcnew IsamSessionSharingViolationException; case JET_errEntryPointNotFound: return gcnew IsamEntryPointNotFoundException; case JET_errSessionContextAlreadySet: return gcnew IsamSessionContextAlreadySetException; case JET_errSessionContextNotSetByThisThread: return gcnew IsamSessionContextNotSetByThisThreadException; case JET_errSessionInUse: return gcnew IsamSessionInUseException; case JET_errRecordFormatConversionFailed: return gcnew IsamRecordFormatConversionFailedException; case JET_errOneDatabasePerSession: return gcnew IsamOneDatabasePerSessionException; case JET_errRollbackError: return gcnew IsamRollbackErrorException; case JET_errFlushMapVersionUnsupported: return gcnew IsamFlushMapVersionUnsupportedException; case JET_errFlushMapDatabaseMismatch: return gcnew IsamFlushMapDatabaseMismatchException; case JET_errFlushMapUnrecoverable: return gcnew IsamFlushMapUnrecoverableException; case JET_errRBSFileCorrupt: return gcnew IsamRBSFileCorruptException; case JET_errRBSHeaderCorrupt: return gcnew IsamRBSHeaderCorruptException; case JET_errRBSDbMismatch: return gcnew IsamRBSDbMismatchException; case JET_errBadRBSVersion: return gcnew IsamBadRBSVersionException; case JET_errOutOfRBSSpace: return gcnew IsamOutOfRBSSpaceException; case JET_errRBSInvalidSign: return gcnew IsamRBSInvalidSignException; case JET_errRBSInvalidRecord: return gcnew IsamRBSInvalidRecordException; case JET_errRBSRCInvalidRBS: return gcnew IsamRBSRCInvalidRBSException; case JET_errRBSRCNoRBSFound: return gcnew IsamRBSRCNoRBSFoundException; case JET_errRBSRCBadDbState: return gcnew IsamRBSRCBadDbStateException; case JET_errRBSMissingReqLogs: return gcnew IsamRBSMissingReqLogsException; case JET_errRBSLogDivergenceFailed: return gcnew IsamRBSLogDivergenceFailedException; case JET_errRBSRCCopyLogsRevertState: return gcnew IsamRBSRCCopyLogsRevertStateException; case JET_errDatabaseIncompleteRevert: return gcnew IsamDatabaseIncompleteRevertException; case JET_errRBSRCRevertCancelled: return gcnew IsamRBSRCRevertCancelledException; case JET_errRBSRCInvalidDbFormatVersion: return gcnew IsamRBSRCInvalidDbFormatVersionException; case JET_errRBSCannotDetermineDivergence: return gcnew IsamRBSCannotDetermineDivergenceException; case JET_errDatabaseAlreadyRunningMaintenance: return gcnew IsamDatabaseAlreadyRunningMaintenanceException; case JET_errCallbackFailed: return gcnew IsamCallbackFailedException; case JET_errCallbackNotResolved: return gcnew IsamCallbackNotResolvedException; case JET_errSpaceHintsInvalid: return gcnew IsamSpaceHintsInvalidException; case JET_errOSSnapshotInvalidSequence: return gcnew IsamOSSnapshotInvalidSequenceException; case JET_errOSSnapshotTimeOut: return gcnew IsamOSSnapshotTimeOutException; case JET_errOSSnapshotNotAllowed: return gcnew IsamOSSnapshotNotAllowedException; case JET_errOSSnapshotInvalidSnapId: return gcnew IsamOSSnapshotInvalidSnapIdException; case JET_errTooManyTestInjections: return gcnew IsamTooManyTestInjectionsException; case JET_errTestInjectionNotSupported: return gcnew IsamTestInjectionNotSupportedException; case JET_errInvalidLogDataSequence: return gcnew IsamInvalidLogDataSequenceException; case JET_errLSCallbackNotSpecified: return gcnew IsamLSCallbackNotSpecifiedException; case JET_errLSAlreadySet: return gcnew IsamLSAlreadySetException; case JET_errLSNotSet: return gcnew IsamLSNotSetException; case JET_errFileIOBeyondEOF: return gcnew IsamFileIOBeyondEOFException; case JET_errFileCompressed: return gcnew IsamFileCompressedException; default: return gcnew IsamErrorException( L"Unknown error", err ); } } }; } } }
35.513323
371
0.668323
0d773432a8323c9325e7a635716463aa4ed4e47f
3,396
h
C
apps/plugins/fractals/cpu_sh7043.h
Rockbox-Chinese-Community/Rockbox-RCC
a701aefe45f03ca391a8e2f1a6e3da1b8774b2f2
[ "BSD-3-Clause" ]
24
2015-03-10T08:43:56.000Z
2022-01-05T14:09:46.000Z
apps/plugins/fractals/cpu_sh7043.h
Rockbox-Chinese-Community/Rockbox-RCC
a701aefe45f03ca391a8e2f1a6e3da1b8774b2f2
[ "BSD-3-Clause" ]
4
2015-07-04T18:15:33.000Z
2018-05-18T05:33:33.000Z
apps/plugins/fractals/cpu_sh7043.h
Rockbox-Chinese-Community/Rockbox-RCC
a701aefe45f03ca391a8e2f1a6e3da1b8774b2f2
[ "BSD-3-Clause" ]
15
2015-01-21T13:58:13.000Z
2020-11-04T04:30:22.000Z
/*************************************************************************** * __________ __ ___. * Open \______ \ ____ ____ | | _\_ |__ _______ ___ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ * \/ \/ \/ \/ \/ * $Id$ * * Copyright (C) 2009 Tomer Shalev * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY * KIND, either express or implied. * ****************************************************************************/ #ifndef _CPU_SH7043_H #define _CPU_SH7043_H inline static short muls16_asr10(short a, short b) { short r; asm ( "muls %[a],%[b] \n" "sts macl,%[r] \n" "shlr8 %[r] \n" "shlr2 %[r] \n" : /* outputs */ [r]"=r"(r) : /* inputs */ [a]"r"(a), [b]"r"(b) ); return r; } inline static long muls32_asr26(long a, long b) { long r, t1, t2, t3; asm ( /* Signed 32bit * 32bit -> 64bit multiplication. Notation: xxab * xxcd, where each letter represents 16 bits. xx is the 64 bit sign extension. */ "swap.w %[a],%[t1] \n" /* t1 = ba */ "mulu %[t1],%[b] \n" /* a * d */ "swap.w %[b],%[t3] \n" /* t3 = dc */ "sts macl,%[t2] \n" /* t2 = a * d */ "mulu %[t1],%[t3] \n" /* a * c */ "sts macl,%[r] \n" /* hi = a * c */ "mulu %[a],%[t3] \n" /* b * c */ "clrt \n" "sts macl,%[t3] \n" /* t3 = b * c */ "addc %[t2],%[t3] \n" /* t3 += t2, carry -> t2 */ "movt %[t2] \n" "mulu %[a],%[b] \n" /* b * d */ "mov %[t3],%[t1] \n" /* t1t3 = t2t3 << 16 */ "xtrct %[t2],%[t1] \n" "shll16 %[t3] \n" "sts macl,%[t2] \n" /* lo = b * d */ "clrt \n" /* hi.lo += t1t3 */ "addc %[t3],%[t2] \n" "addc %[t1],%[r] \n" "cmp/pz %[a] \n" /* ab >= 0 ? */ "bt 1f \n" "sub %[b],%[r] \n" /* no: hi -= cd (sign extension of ab is -1) */ "1: \n" "cmp/pz %[b] \n" /* cd >= 0 ? */ "bt 2f \n" "sub %[a],%[r] \n" /* no: hi -= ab (sign extension of cd is -1) */ "2: \n" /* Shift right by 26 and return low 32 bits */ "shll2 %[r] \n" /* hi <<= 6 */ "shll2 %[r] \n" "shll2 %[r] \n" "shlr16 %[t2] \n" /* (unsigned)lo >>= 26 */ "shlr8 %[t2] \n" "shlr2 %[t2] \n" "or %[t2],%[r] \n" /* combine result */ : /* outputs */ [r] "=&r"(r), [t1]"=&r"(t1), [t2]"=&r"(t2), [t3]"=&r"(t3) : /* inputs */ [a] "r" (a), [b] "r" (b) ); return r; } #endif
35.010309
80
0.352179
defd6b41cf482203b77e43d452cd5acd38117f71
4,474
c
C
VirtualBox-5.0.0/src/VBox/GuestHost/OpenGL/util/bufpool.c
egraba/vbox_openbsd
6cb82f2eed1fa697d088cecc91722b55b19713c2
[ "MIT" ]
1
2015-04-30T14:18:45.000Z
2015-04-30T14:18:45.000Z
VirtualBox-5.0.0/src/VBox/GuestHost/OpenGL/util/bufpool.c
egraba/vbox_openbsd
6cb82f2eed1fa697d088cecc91722b55b19713c2
[ "MIT" ]
null
null
null
VirtualBox-5.0.0/src/VBox/GuestHost/OpenGL/util/bufpool.c
egraba/vbox_openbsd
6cb82f2eed1fa697d088cecc91722b55b19713c2
[ "MIT" ]
null
null
null
/* Copyright (c) 2001, Stanford University * All rights reserved * * See the file LICENSE.txt for information on redistributing this software. */ #include "cr_mem.h" #include "cr_error.h" #include "cr_bufpool.h" #include <limits.h> /* * New (version 1.4) buffer pool implementation. * * Now, each buffer in the pool can be a different size. * We only return a buffer from crBufferPoolPop() if we have exactly * the right size buffer. * * Note: the old implementation had a 'max buffers' parameter but it * really wasn't good for anything since we always grew the buffer pool * if we pushed a new buffer that would cause use to exceed the limit. * That's gone now. * * We're just using a simple linked list here. Since we seldom have * more than about 10-15 buffers in the pool, that's OK. A binary tree * would be nicer though. * * MCH: BufferPoolPop will now return the smallest buffer in the pool that * is >= to the size required. This fixes BufferPool overruns with lots * of MTUs. */ #ifndef NULL #define NULL ((void *) 0) #endif typedef struct buffer { void *address; unsigned int size; struct buffer *next; } Buffer; struct CRBufferPool_t { unsigned int maxBuffers; int numBuffers; struct buffer *head; }; int crBufferPoolGetNumBuffers( CRBufferPool *pool ) { if ( pool ) return pool->numBuffers; return 0; } int crBufferPoolGetMaxBuffers( CRBufferPool *pool ) { if ( pool ) return pool->maxBuffers; return 0; } CRBufferPool * crBufferPoolInit( unsigned int maxBuffers ) { CRBufferPool *pool = crCalloc(sizeof(CRBufferPool)); if (pool) { pool->head = NULL; pool->maxBuffers = maxBuffers; pool->numBuffers = 0; } return pool; } void crBufferPoolFree( CRBufferPool *pool ) { Buffer *b, *next; for (b = pool->head; b; b = next) { next = b->next; crFree(b->address); crFree(b); } } void crBufferPoolCallbackFree(CRBufferPool *pool, CRBufferPoolDeleteCallback pfnDelete) { Buffer *b, *next; CRASSERT(pfnDelete); for (b = pool->head; b; b = next) { next = b->next; (*pfnDelete)(b->address); crFree(b); } } void crBufferPoolPush( CRBufferPool *pool, void *buf, unsigned int bytes ) { Buffer *b = crCalloc(sizeof(Buffer)); if (b) { #ifdef DEBUG /* check that the buffer to push isn't already in the pool! */ { const Buffer *b; for (b = pool->head; b; b = b->next) { CRASSERT(b->address != buf); } } #endif b->address = buf; b->size = bytes; b->next = pool->head; pool->head = b; pool->numBuffers++; } } void * crBufferPoolPop( CRBufferPool *pool, unsigned int bytes ) { Buffer *b, *prev, *prev_smallest; unsigned int smallest = UINT_MAX; /* size of smallest buffer >= bytes */ int i; prev = NULL; prev_smallest = NULL; for (b = pool->head, i=0; i<pool->numBuffers; b = b->next, i++) { if (b->size == bytes) { /* we found an exact size match! */ void *p = b->address; if (prev) { prev->next = b->next; } else { pool->head = b->next; } crFree(b); pool->numBuffers--; CRASSERT(pool->numBuffers >= 0); return p; } else if (b->size >= bytes){ /* We found a buffer that's large enough, but keep looking * for a smaller one that's large enough. */ if (b->size < smallest) { prev_smallest = prev; /* save ptr to previous! */ smallest = b->size; } } prev = b; } if (smallest < UINT_MAX) { /* we found the smallest buffer whose size is > bytes */ void *p; if (prev_smallest) { b = prev_smallest->next; } else { b = pool->head; } CRASSERT(b->size == smallest); CRASSERT(b->size >= bytes); p = b->address; if (prev_smallest) { prev_smallest->next = b->next; } else { pool->head = b->next; } crFree(b); pool->numBuffers--; CRASSERT(pool->numBuffers >= 0); return p; } /* found no buffer large enough */ return NULL; }
22.94359
82
0.558784
90847c1cae42bfa941791285f7c46195eb39cdd2
12,017
h
C
include/template_tensors/TemplateTensors.h
fferflo/template_tensors
7c3538356bd0658df6e51e848b09cbe1b2857d31
[ "MIT" ]
null
null
null
include/template_tensors/TemplateTensors.h
fferflo/template_tensors
7c3538356bd0658df6e51e848b09cbe1b2857d31
[ "MIT" ]
null
null
null
include/template_tensors/TemplateTensors.h
fferflo/template_tensors
7c3538356bd0658df6e51e848b09cbe1b2857d31
[ "MIT" ]
null
null
null
#pragma once #ifdef CEREAL_INCLUDED #include <cereal/access.hpp> #endif #include <fstream> #include <iostream> #include <limits> #include <type_traits> #include <utility> #include <mutex> #include <template_tensors/cuda/Cuda.h> #include <template_tensors/util/Array.h> #include <template_tensors/tmp/Reflection.h> #include <template_tensors/util/Constexpr.h> #include <template_tensors/util/Assert.h> #include <template_tensors/util/Math.h> #include <template_tensors/util/Functor.h> #include <template_tensors/util/Ptr.h> #include <template_tensors/cuda/CudaMutex.h> #include <template_tensors/cuda/CudaAtomic.h> #include <template_tensors/util/Console.h> #include <template_tensors/util/Dispatch.h> #include <template_tensors/interface/std/SortByKey.h> #include <template_tensors/interface/std/PrintChrono.h> #include <template_tensors/for_each/Helper.h> #include <template_tensors/for_each/Sequential.h> #include <template_tensors/for_each/Auto.h> #include <template_tensors/aggregator/Helper.h> #include <template_tensors/aggregator/Constant.h> #include <template_tensors/aggregator/Assign.h> #include <template_tensors/aggregator/Multi.h> #include <template_tensors/aggregator/MapInput.h> #include <template_tensors/aggregator/MapOutput.h> #include <template_tensors/aggregator/Filter.h> #include <template_tensors/aggregator/MiscOps.h> #include <template_tensors/iterate/StoreIterators.h> #include <template_tensors/iterate/Adapt.h> #include <template_tensors/iterate/Count.h> #include <template_tensors/iterate/Transform.h> #include <template_tensors/iterate/Filter.h> #include <template_tensors/iterate/Util.h> /*! * \defgroup MiscTensorOps Misc * \ingroup TensorOperations * \brief asd */ #include <template_tensors/tensor/helper/StaticDimsCoords.h> #include <template_tensors/tensor/helper/StaticCompatibility.h> #include <template_tensors/tensor/helper/DynamicDimsCoords.h> #include <template_tensors/tensor/helper/DynamicCompatibility.h> #include <template_tensors/tensor/helper/Concepts.h> #include <template_tensors/tensor/helper/ElementType.h> #include <template_tensors/tensor/helper/SubtypeHelpers.h> #include <template_tensors/tensor/storage/indexstrategy/IndexStrategyHelper.h> #include <template_tensors/tensor/storage/indexstrategy/ColMajor.h> #include <template_tensors/tensor/storage/indexstrategy/RowMajor.h> #include <template_tensors/tensor/storage/indexstrategy/SymmetricMatrixUpperTriangleRowMajor.h> #include <template_tensors/tensor/storage/indexstrategy/SymmetricMatrixLowerTriangleRowMajor.h> #include <template_tensors/tensor/storage/Typedefs.h> #include <template_tensors/tensor/storage/Defines.h> #include <template_tensors/tensor/storage/Ref.h> #include <template_tensors/tensor/storage/IndexedPointer.h> #include <template_tensors/tensor/storage/IndexedArray.h> #include <template_tensors/tensor/base/StoreDimensions.h> #include <template_tensors/tensor/base/Iterator.h> #include <template_tensors/tensor/base/Dimensions.h> #include <template_tensors/tensor/for_each/Helper.h> #include <template_tensors/tensor/for_each/Local.h> #include <template_tensors/tensor/transfer/StorageArrayCopier.h> #include <template_tensors/tensor/storage/Singleton.h> #include <template_tensors/tensor/shape_ops/Broadcast.h> #include <template_tensors/tensor/shape_ops/Partial.h> #include <template_tensors/tensor/mask/BooleanMasked.h> #include <template_tensors/tensor/mask/IteratorMasked.h> #include <template_tensors/tensor/base/Maskable.h> #include <template_tensors/tensor/base/TensorBase.h> #include <template_tensors/cuda/CudaGrid.h> #include <template_tensors/cuda/CudaRandom.h> #include <template_tensors/tensor/linear_algebra/Elwise.h> #include <template_tensors/tensor/shape_ops/Concat.h> #include <template_tensors/aggregator/Elwise.h> #include <template_tensors/aggregator/HistogramPartial.h> #include <template_tensors/aggregator/HistogramTotal.h> #include <template_tensors/aggregator/StatisticsOps.h> #include <template_tensors/tensor/shape_ops/Reduce.h> #include <template_tensors/tensor/util/Ordering.h> #include <template_tensors/concurrency/locking/Mutex.h> #include <template_tensors/concurrency/locking/UniqueLock.h> #include <template_tensors/concurrency/locking/UniqueTryLock.h> #include <template_tensors/concurrency/locking/ConditionalUniqueTryLock.h> #include <template_tensors/concurrency/atomic/Functor.h> #include <template_tensors/concurrency/atomic/TryVariable.h> #include <template_tensors/concurrency/atomic/WaitVariable.h> #include <template_tensors/concurrency/atomic/Types.h> #include <template_tensors/concurrency/atomic/ops/Void.h> #include <template_tensors/concurrency/atomic/ops/TryLock.h> #include <template_tensors/concurrency/atomic/ops/WaitLock.h> #include <template_tensors/tensor/linear_algebra/MiscOps.h> #include <template_tensors/tensor/transfer/Eval.h> #include <template_tensors/tensor/util/Dummy.h> #include <template_tensors/tensor/linear_algebra/CrossProduct.h> #include <template_tensors/tensor/linear_algebra/MatrixProduct.h> #include <template_tensors/tensor/linear_algebra/IdentityMatrix.h> #include <template_tensors/tensor/linear_algebra/UnitVector.h> #include <template_tensors/tensor/util/ElementSupplier.h> #include <template_tensors/tensor/linear_algebra/RotationMatrix.h> #include <template_tensors/tensor/linear_algebra/Geo.h> #include <template_tensors/tensor/shape_ops/HeadTail.h> #include <template_tensors/tensor/shape_ops/Flip.h> #include <template_tensors/tensor/shape_ops/Transpose.h> #include <template_tensors/tensor/linear_algebra/GaussianMethod.h> #include <template_tensors/tensor/linear_algebra/solver/Helper.h> #include <template_tensors/tensor/linear_algebra/solver/Gaussian.h> #include <template_tensors/tensor/linear_algebra/matrix_inverse/Helper.h> #include <template_tensors/tensor/linear_algebra/matrix_inverse/Gaussian.h> #include <template_tensors/tensor/linear_algebra/matrix_inverse/ClosedForm.h> #include <template_tensors/tensor/linear_algebra/matrix_inverse/Auto.h> #include <template_tensors/tensor/for_each/DeviceArray.h> #include <template_tensors/tensor/for_each/LocalArray.h> #include <template_tensors/tensor/for_each/Device.h> #include <template_tensors/tensor/storage/indexstrategy/Stride.h> #include <template_tensors/tensor/storage/indexstrategy/MortonForLoop.h> #include <template_tensors/tensor/storage/indexstrategy/MortonDivideAndConquer.h> #include <template_tensors/tensor/transfer/AssignToTempMemCopyToDestCopier.h> #include <template_tensors/tensor/transfer/MemCopyToTempAssignToDestCopier.h> #include <template_tensors/tensor/transfer/AssignToTempMemCopyToTempAssignToDestCopier.h> #include <template_tensors/tensor/for_each/Auto.h> #include <template_tensors/tensor/transfer/AutoCopier.h> #include <template_tensors/tensor/random/Random.h> #include <template_tensors/tensor/shape_ops/Total.h> #include <template_tensors/tensor/shape_ops/Dilate.h> #include <template_tensors/tensor/shape_ops/Pad.h> #include <template_tensors/tensor/shape_ops/Repeat.h> #include <template_tensors/tensor/linear_algebra/Convolution.h> #include <template_tensors/tensor/linear_algebra/Quaternion.h> #include <template_tensors/tensor/util/ArgComp.h> #include <template_tensors/tensor/linear_algebra/Diag.h> #include <template_tensors/tensor/linear_algebra/homogeneous/Vector.h> #include <template_tensors/tensor/linear_algebra/homogeneous/Translation.h> #include <template_tensors/tensor/linear_algebra/homogeneous/Rotation.h> #include <template_tensors/tensor/string/StreamOutput.h> #include <template_tensors/tensor/string/String.h> #include <template_tensors/tensor/string/ToString.h> #include <template_tensors/tensor/string/StringStream.h> #include <template_tensors/interface/std/String.h> #include <template_tensors/tensor/string/PrintStream.h> #include <template_tensors/tensor/sparse/Iterable.h> #include <template_tensors/interface/openmp/ForEach.h> #include <template_tensors/interface/tbb/ForEach.h> #include <template_tensors/interface/cv/Mat.h> #include <template_tensors/interface/cv/Debug.h> #include <template_tensors/interface/cv/ReadWrite.h> #include <template_tensors/interface/eigen/Mat.h> #include <template_tensors/interface/eigen/Decomposition.h> #include <template_tensors/geometry/transform/Rotation.h> #include <template_tensors/geometry/transform/AxisAngle.h> #include <template_tensors/geometry/transform/Translation.h> #include <template_tensors/geometry/transform/Rigid.h> #include <template_tensors/geometry/transform/ScaledRigid.h> #include <template_tensors/geometry/projection/Pinhole.h> #include <template_tensors/geometry/projection/Orthographic.h> #include <template_tensors/geometry/render/DeviceMutexRasterizer.h> #include <template_tensors/geometry/render/DeviceRasterizer.h> #include <template_tensors/geometry/render/Shader.h> #include <template_tensors/geometry/render/primitives/SurfaceSplat.h> #include <template_tensors/geometry/render/primitives/ScreenSplat.h> #include <template_tensors/geometry/render/primitives/Triangle.h> #include <template_tensors/geometry/Generation.h> #include <template_tensors/geometry/RegionGrowing.h> #include <template_tensors/file/Binvox.h> #include <template_tensors/file/Flo.h> #include <template_tensors/file/colmap/Metadata.h> #include <template_tensors/numeric/LogProb.h> #include <template_tensors/numeric/FixedFloatingPoint.h> #include <template_tensors/interface/jtuple/Tuple.h> #include <template_tensors/interface/cublas/Gemm.h> #include <template_tensors/interface/cudnn/ConvolutionForward.h> #include <template_tensors/interface/std/Vector.h> #include <template_tensors/interface/thrust/Vector.h> #include <template_tensors/interface/tf/Tf.h> #include <template_tensors/interface/tf2/Tf2.h> #include <template_tensors/interface/freeimage/TensorInterface.h> #include <template_tensors/interface/sensor_msgs/SensorMsgs.h> #include <template_tensors/interface/pcl/PointCloud.h> #include <template_tensors/interface/orocos_kdl/Kdl.h> #include <template_tensors/interface/tinyply/Tinyply.h> #include <template_tensors/interface/cnpy/Cnpy.h> #include <template_tensors/interface/python/GIL.h> #include <template_tensors/interface/boost_python/Util.h> #include <template_tensors/interface/numpy/Util.h> #include <template_tensors/interface/numpy/boost_python/NdArray.h> #include <template_tensors/interface/numpy/boost_python/Dispatch.h> #include <template_tensors/interface/cupy/Util.h> #include <template_tensors/interface/cupy/boost_python/NdArray.h> #include <template_tensors/interface/soil/Soil.h> #include <template_tensors/interface/dlpack/SafeWrapper.h> #include <template_tensors/interface/dlpack/Util.h> #include <template_tensors/interface/dlpack/Tensor.h> #include <template_tensors/interface/dlpack/boost_python/PyCapsule.h> #include <template_tensors/interface/dlpack/boost_python/Dispatch.h> #include <template_tensors/interface/tensorflow/boost_python/EagerTensor.h> #include <template_tensors/interface/tensorflow/boost_python/Dispatch.h> #include <template_tensors/interface/nvof/NVOF.h> #include <template_tensors/interface/boost_python/Tensor.h> #include <template_tensors/interface/cppflow/CppFlow.h> #include <template_tensors/field/CoordinateTransform.h> #include <template_tensors/field/Interpolation.h> #include <template_tensors/field/FromSupplier.h> #include <template_tensors/field/Map.h> #include <template_tensors/field/Differentiate.h> #include <template_tensors/field/Wrap.h> #include <template_tensors/point_cloud/nearest_neighbors/NearestNeighbors.h> #include <template_tensors/point_cloud/nearest_neighbors/FeatureTransform.h> #include <template_tensors/point_cloud/nearest_neighbors/GridSearch.h> #include <template_tensors/point_cloud/SortGrid.h> #include <template_tensors/file/slippy_maps/TileLoader.h> #undef ELEMENT_ACCESS_PREFIX // TODO: rename prefix TENSOR_ #undef ELEMENT_ACCESS #undef ELEMENT_ACCESS_HOST #undef ELEMENT_ACCESS_DEVICE #ifndef TEMPLATE_TENSORS_DONT_ALIAS_NAMESPACE_AS_TT namespace tt = template_tensors; #endif
44.672862
95
0.838728
e6406203385961960343eb8f77fec3a7ef0351e8
1,573
h
C
Examples/To do/Image synthesis/RayTracer2010Cpp/RayTracer2010Cpp/array.h
dotnuttx/Alter-Native
9282c7d48a4baae1ea6fd9b102bc6f55ba0e6e95
[ "MIT" ]
119
2015-01-09T14:02:17.000Z
2022-03-09T14:24:21.000Z
Examples/To do/Image synthesis/RayTracer2010Cpp/RayTracer2010Cpp/array.h
dotnuttx/Alter-Native
9282c7d48a4baae1ea6fd9b102bc6f55ba0e6e95
[ "MIT" ]
12
2016-01-15T11:33:32.000Z
2021-06-08T04:57:07.000Z
Examples/To do/Image synthesis/RayTracer2010Cpp/RayTracer2010Cpp/array.h
dotnuttx/Alter-Native
9282c7d48a4baae1ea6fd9b102bc6f55ba0e6e95
[ "MIT" ]
43
2015-01-14T10:59:51.000Z
2022-01-10T23:46:06.000Z
#pragma once #include <assert.h> template <class T> struct Array { Array(){data = 0; s = 0; c = 0;} Array(const Array<T> &a){data = 0; s = 0; c = 0; copy(a);} ~Array(){clear();} T *data; int s, c; void operator=(const Array<T> &a) {copy(a);} void copy(const Array<T> &a) { if (a.s) { resize(a.s); for (int i = 0; i < s; i++) data[i] = a.data[i]; } } int size(){return s;} bool empty(){return s == 0;} void resize(int S) { reserve(S); s = S; } void reserve(int C) { assert(C >= s); if (C <= 0) { c = 0; data = 0; return; } T *d = new T[C]; for (int i = 0; i < s; i++) d[i] = data[i]; delete[] data; data = d; c = C; } T &operator[](int i) { assert(c >= s); assert(i >= 0 && i < s); return data[i]; } void clear() { s = 0; c = 0; delete[] data; data = 0; } void push_back(const T &v){push(v);} void insert(const T &v){push(v);} void push(const T &v) { if (s >= c) reserve(c > 0 ? c * 2 : 1); data[s] = v; s++; } T& push() { if (s >= c) reserve(c > 0 ? c * 2 : 1); return data[s++]; } void pop_back(){pop();} void pop() { s--; if (s <= c / 2) reserve(s); } void erase(const T &v) { for (int i = 0; i < s; i++) { if (data[i] == v) { data[i] = data[s-1]; pop(); break; } } } int count(const T& v) { int n = 0; for (int i = 0; i < s; i++) { if (data[i] == v) n++; } return n; } bool contains(const T& v) {return count(v);} T* begin(){return data;} T* end(){return data + size;} };
12.584
59
0.459631
61dcfcd0a01ad5e3f2427fd73f349f62720ab873
420
h
C
Chip/inc/io.h
498143049/smartcar
b1e58dacbe88a883034f48ae008df0b97d108e2a
[ "MIT" ]
null
null
null
Chip/inc/io.h
498143049/smartcar
b1e58dacbe88a883034f48ae008df0b97d108e2a
[ "MIT" ]
null
null
null
Chip/inc/io.h
498143049/smartcar
b1e58dacbe88a883034f48ae008df0b97d108e2a
[ "MIT" ]
null
null
null
/* * File: io.h * Purpose: Serial Input/Output routines * */ #ifndef _IO_H #define _IO_H /********************************************************************/ char in_char(void); void out_char(char); int char_present(void); int printf(const char *, ... ); int sprintf(char *, const char *, ... ); /********************************************************************/ #endif
14
71
0.37381
fb333b88a2304990544af86067a80c645288bbfc
526
h
C
youth/practise/YourOS/Tinix/chapter5/i/include/proto.h
uivid64/violet_youth
8568c1c22b2dc446d54061474330620f92bd594d
[ "Apache-2.0" ]
null
null
null
youth/practise/YourOS/Tinix/chapter5/i/include/proto.h
uivid64/violet_youth
8568c1c22b2dc446d54061474330620f92bd594d
[ "Apache-2.0" ]
null
null
null
youth/practise/YourOS/Tinix/chapter5/i/include/proto.h
uivid64/violet_youth
8568c1c22b2dc446d54061474330620f92bd594d
[ "Apache-2.0" ]
null
null
null
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ proto.h ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Forrest Yu, 2005 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ /* klib.asm */ PUBLIC void out_byte(t_port port, t_8 value); PUBLIC t_8 in_byte(t_port port); PUBLIC void disp_str(char * info); PUBLIC void disp_color_str(char * info, int color); PUBLIC void init_prot();
37.571429
70
0.328897
59ccb13c398de11c884e22587eeb85e1946cff76
939
h
C
exercises/4.4.2/contact.h
PatrickTrentin88/intro_c-_qt
1d73ef364711fac7b46cd3752258c0273c689835
[ "MIT" ]
null
null
null
exercises/4.4.2/contact.h
PatrickTrentin88/intro_c-_qt
1d73ef364711fac7b46cd3752258c0273c689835
[ "MIT" ]
null
null
null
exercises/4.4.2/contact.h
PatrickTrentin88/intro_c-_qt
1d73ef364711fac7b46cd3752258c0273c689835
[ "MIT" ]
null
null
null
#ifndef __CONTACT_H__ #define __CONTACT_H__ #include <QTextStream> #include <QString> class Contact { public: Contact(QString firstName, QString lastName, QString streetAddress, QString zipCode, QString city, QString phoneNumber); QString toString() const; int getCategory() { return category; }; QString getFirstName() { return firstName; }; QString getLastName() { return lastName; }; QString getStreetAddress() { return streetAddress; }; QString getZipCode() { return zipCode; }; QString getCity() { return city; }; QString getPhoneNumber() { return phoneNumber; }; friend bool operator == (const Contact &c1, const Contact &c2); friend QTextStream& operator << (QTextStream &ts, const Contact &c); private: int category; QString firstName; QString lastName; QString streetAddress; QString zipCode; QString city; QString phoneNumber; }; #endif
24.710526
72
0.693291
50e33ed89c47f0722e0fec1ee08e0ab1561c026f
445
h
C
device/Passive.h
start-x/startx-src
4f09e6d42af365cd69f8d1ada6e2b2ab4b4f5632
[ "MIT" ]
2
2016-06-30T12:53:45.000Z
2016-06-30T12:53:47.000Z
device/Passive.h
start-x/startx-src
4f09e6d42af365cd69f8d1ada6e2b2ab4b4f5632
[ "MIT" ]
1
2015-04-03T17:01:58.000Z
2015-04-03T17:01:58.000Z
device/Passive.h
start-x/startx-src
4f09e6d42af365cd69f8d1ada6e2b2ab4b4f5632
[ "MIT" ]
null
null
null
#ifndef PASSIVE_H #define PASSIVE_H #include <Device.h> #define PASSIVE_FILENAME "files/passive.txt" /** * Represents all devices which will be serving as data sources */ class Passive : public Device { public: /** * Reads specific char at from a device and returns 0 in case of success or != 0 otherwise */ virtual int getData(double &data) = 0; /** * Flush the old data and get the new one */ static int flush(); }; #endif
16.481481
91
0.689888
1cb10b3b79e15db0d024fea442e157932a88a852
772
h
C
pariapse-networking/WebRequestFactories/AbstractWebRequest/WebRequest.h
JeremyVoisin/PeriapseNetworking
482ae487ea1d652fdd82ece6b372caad537af889
[ "MIT" ]
null
null
null
pariapse-networking/WebRequestFactories/AbstractWebRequest/WebRequest.h
JeremyVoisin/PeriapseNetworking
482ae487ea1d652fdd82ece6b372caad537af889
[ "MIT" ]
null
null
null
pariapse-networking/WebRequestFactories/AbstractWebRequest/WebRequest.h
JeremyVoisin/PeriapseNetworking
482ae487ea1d652fdd82ece6b372caad537af889
[ "MIT" ]
null
null
null
// // WebRequest.h // // Created by Jérémy Voisin on 16/09/2015. // Copyright (c) 2015 jeyz. All rights reserved. // #import <Foundation/Foundation.h> #import "WebRequestProtocol.h" #import "NetworkStateHelper.h" #import "NetworkStateObserver.h" #import "WebRequestURLProperty.h" #ifndef WebRequest_h #define WebRequest_h @interface WebRequest : WebRequestURLProperty<WebRequestProtocol, NSURLSessionDelegate> - (id _Nonnull)initWithURL:(NSString* _Nonnull)url; - (NSObject* _Nonnull) parseJSON; + (NSObject*_Nonnull) parseJSON:(NSData*_Nullable)response; - (void)handleResponse:(void (^_Nonnull)(void))completion withDatas:(NSData*_Nullable)data andTheHTTPResponse:(NSURLResponse*_Nullable)resp; + (id _Nullable) encodeInJSON:(id _Nonnull)toEncode; @end #endif
26.62069
140
0.778497
2dad6de03183973907910b357447b57500ddf843
1,750
c
C
src/chxj_apache.c
unpush/mod_chxj
b4dc76ad0f5c843c1b250fd0ee4c0616bbc39c48
[ "Apache-2.0" ]
1
2016-05-08T13:23:59.000Z
2016-05-08T13:23:59.000Z
src/chxj_apache.c
unpush/mod_chxj
b4dc76ad0f5c843c1b250fd0ee4c0616bbc39c48
[ "Apache-2.0" ]
null
null
null
src/chxj_apache.c
unpush/mod_chxj
b4dc76ad0f5c843c1b250fd0ee4c0616bbc39c48
[ "Apache-2.0" ]
null
null
null
/* * Copyright (C) 2005-2008 Atsushi Konno All rights reserved. * Copyright (C) 2005 QSDN,Inc. All rights reserved. * * 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 "chxj_apache.h" const char * chxj_apache_run_http_scheme(request_rec *r) { #if defined(CHXJ_TEST) return test_run_http_scheme(r); #else # if AP_SERVER_MAJORVERSION_NUMBER == 2 && AP_SERVER_MINORVERSION_NUMBER == 2 return ap_run_http_scheme(r); # else return ap_run_http_method(r); # endif #endif } char *chxj_os_escape_path(apr_pool_t *p, const char *path, int partial) { #if defined(CHXJ_TEST) return test_os_escape_path(p, path, partial); #else return ap_os_escape_path(p, path, partial); #endif } void chxj_set_content_type(request_rec *r, const char *ct) { #if defined(CHXJ_TEST) test_set_content_type(r, ct); #else ap_set_content_type(r, ct); #endif } void * chxj_get_module_config(const ap_conf_vector_t *cv, const module *m) { #if defined(CHXJ_TEST) return test_get_module_config(cv,m); #else return ap_get_module_config(cv,m); #endif } char * chxj_ap_escape_html(apr_pool_t *p, const char *s) { #if defined(CHXJ_TEST) return test_ap_escape_html(p, s); #else return ap_escape_html(p, s); #endif } /* * vim:ts=2 et */
22.727273
78
0.740571
1017656a5867164a0c1752325e032c3cbb147366
2,918
h
C
data/shapenet/libvoxelizemesh/timer/timer.h
davidstutz/aml-improved-shape-completion
9337a0421994199fa218d564cc34a7e7af1a275f
[ "Unlicense" ]
9
2018-10-11T08:03:59.000Z
2021-11-17T11:16:07.000Z
icp/timer/timer.h
jtpils/aml-improved-shape-completion
9337a0421994199fa218d564cc34a7e7af1a275f
[ "Unlicense" ]
1
2019-07-08T16:43:53.000Z
2019-11-25T17:08:07.000Z
icp/timer/timer.h
jtpils/aml-improved-shape-completion
9337a0421994199fa218d564cc34a7e7af1a275f
[ "Unlicense" ]
3
2018-07-19T13:06:16.000Z
2020-12-09T00:59:56.000Z
////////////////////////////////////////////////////////////////////////////// // Timer.h // ======= // High Resolution Timer. // This timer is able to measure the elapsed time with 1 micro-second accuracy // in both Windows, Linux and Unix system // // AUTHOR: Song Ho Ahn (song.ahn@gmail.com) // CREATED: 2003-01-13 // UPDATED: 2017-03-30 // // Copyright (c) 2003 Song Ho Ahn ////////////////////////////////////////////////////////////////////////////// #ifndef TIMER_H_DEF #define TIMER_H_DEF #if defined(WIN32) || defined(_WIN32) // Windows system specific #include <windows.h> #else // Unix based system specific #include <sys/time.h> #endif #include <stdlib.h> class Timer { public: Timer() { #if defined(WIN32) || defined(_WIN32) QueryPerformanceFrequency(&frequency); startCount.QuadPart = 0; endCount.QuadPart = 0; #else startCount.tv_sec = startCount.tv_usec = 0; endCount.tv_sec = endCount.tv_usec = 0; #endif stopped = 0; startTimeInMicroSec = 0; endTimeInMicroSec = 0; }; ~Timer() { }; void start() { stopped = 0; // reset stop flag #if defined(WIN32) || defined(_WIN32) QueryPerformanceCounter(&startCount); #else gettimeofday(&startCount, NULL); #endif }; void stop() { stopped = 1; // set timer stopped flag #if defined(WIN32) || defined(_WIN32) QueryPerformanceCounter(&endCount); #else gettimeofday(&endCount, NULL); #endif }; double getElapsedTimeInMicroSec() { #if defined(WIN32) || defined(_WIN32) if(!stopped) QueryPerformanceCounter(&endCount); startTimeInMicroSec = startCount.QuadPart * (1000000.0 / frequency.QuadPart); endTimeInMicroSec = endCount.QuadPart * (1000000.0 / frequency.QuadPart); #else if(!stopped) gettimeofday(&endCount, NULL); startTimeInMicroSec = (startCount.tv_sec * 1000000.0) + startCount.tv_usec; endTimeInMicroSec = (endCount.tv_sec * 1000000.0) + endCount.tv_usec; #endif return endTimeInMicroSec - startTimeInMicroSec; }; double getElapsedTimeInMilliSec() { return this->getElapsedTimeInMicroSec() * 0.001; }; double getElapsedTimeInSec() { return this->getElapsedTimeInMicroSec() * 0.000001; }; double getElapsedTime() { return this->getElapsedTimeInSec(); }; private: double startTimeInMicroSec; double endTimeInMicroSec; int stopped; #if defined(WIN32) || defined(_WIN32) LARGE_INTEGER frequency; LARGE_INTEGER startCount; LARGE_INTEGER endCount; #else timeval startCount; timeval endCount; #endif }; #endif // TIMER_H_DEF
25.823009
89
0.570596
f4aa0b22e60157b7642e3c91ce6b8f787d463d93
360
h
C
platforms/ios/Weexplugin/Weexplugin/Plugins/nat-stream/WeexNatStream.h
weexjs/weex-plugins
d9396d7c37d9aecbf489571b1c8cc6d5403a8294
[ "MIT" ]
2
2018-03-21T08:10:54.000Z
2018-07-22T02:59:20.000Z
platforms/ios/Weexplugin/Weexplugin/Plugins/nat-stream/WeexNatStream.h
weexjs/weex-plugins
d9396d7c37d9aecbf489571b1c8cc6d5403a8294
[ "MIT" ]
null
null
null
platforms/ios/Weexplugin/Weexplugin/Plugins/nat-stream/WeexNatStream.h
weexjs/weex-plugins
d9396d7c37d9aecbf489571b1c8cc6d5403a8294
[ "MIT" ]
null
null
null
// // WeexNatStream.h // // Created by huangyake on 17/1/7. // Copyright © 2017 Instapp. All rights reserved. // #import <Foundation/Foundation.h> #import <WeexSDK/WeexSDK.h> @protocol WeexNatStreamPro <WXModuleProtocol> - (void)fetch:(NSDictionary *)params :(WXModuleCallback)callback; @end @interface WeexNatStream : NSObject<WeexNatStreamPro> @end
18
65
0.738889
4c2785342f843f117ad5872d95494b9ecd9e1d1b
418
h
C
src/regions/llist.h
magnostherobot/czi-tools
e6fe3f2e078ba794f3dcadabea4265b9ecc9ba7b
[ "BSD-2-Clause" ]
5
2019-04-02T00:56:01.000Z
2022-03-11T06:33:52.000Z
src/regions/llist.h
aly202012/czi-tools
e6fe3f2e078ba794f3dcadabea4265b9ecc9ba7b
[ "BSD-2-Clause" ]
4
2018-09-14T10:00:09.000Z
2019-05-03T19:14:38.000Z
src/regions/llist.h
aly202012/czi-tools
e6fe3f2e078ba794f3dcadabea4265b9ecc9ba7b
[ "BSD-2-Clause" ]
2
2020-11-16T20:46:47.000Z
2021-03-31T12:49:16.000Z
#ifndef _LLIST_H #define _LLIST_H #include <stdbool.h> typedef struct ll_node { void *content; struct ll_node *next; } llist; typedef bool ll_comparator(void *, void *); typedef bool ll_foreach_fn(void *, void*); llist *ll_add_item(llist *list, void *content, ll_comparator *comp); bool ll_foreach(llist *list,ll_foreach_fn *fn, void *data); int ll_length(llist *list); #endif /* _LLIST_H */
19
68
0.700957
ad91f9219fb25b436ca600a315b045145079da8a
901
h
C
SiriusClient.h
NiklasWang/Sirius
823f73363984a166124c2c9ffd08bbacfe7f7ee7
[ "Apache-2.0" ]
null
null
null
SiriusClient.h
NiklasWang/Sirius
823f73363984a166124c2c9ffd08bbacfe7f7ee7
[ "Apache-2.0" ]
null
null
null
SiriusClient.h
NiklasWang/Sirius
823f73363984a166124c2c9ffd08bbacfe7f7ee7
[ "Apache-2.0" ]
null
null
null
#ifndef _SIRIUS_CLIENT_H_ #define _SIRIUS_CLIENT_H_ #include "SiriusClientIntf.h" namespace sirius { class SiriusClientImpl; class SiriusClient : public SiriusClientIntf { public: int32_t init(Header &header) override; int32_t onPreviewReady(int32_t w, int32_t h, int32_t stride, int32_t scanline, void *data, int64_t ts) override; int32_t onYuvPictureReady(int32_t w, int32_t h, int32_t stride, int32_t scanline, void *data, int64_t ts) override; int32_t onBayerPictureReady(int32_t w, int32_t h, void *data, int64_t ts, Pattern pattern) override; int32_t sendEvent(int32_t evt, int32_t arg1, int32_t arg2) override; int32_t sendData(int32_t type, void *data, int32_t size) override; int32_t abort(int32_t type) override; public: SiriusClient(); virtual ~SiriusClient(); private: SiriusClientImpl *mImpl; }; }; #endif
21.452381
72
0.72808
1fcd9e1134aafcff5fe2c94d6db002bae25256e2
2,559
h
C
WVRUIFrame/WVRUIFrame/Core/SQKit/Core/SQCollectionViewDelegate.h
portal-io/portal-ios-midware
371f7ef4f6a390fb56ed508964f69b7b4855c3b8
[ "MIT" ]
null
null
null
WVRUIFrame/WVRUIFrame/Core/SQKit/Core/SQCollectionViewDelegate.h
portal-io/portal-ios-midware
371f7ef4f6a390fb56ed508964f69b7b4855c3b8
[ "MIT" ]
null
null
null
WVRUIFrame/WVRUIFrame/Core/SQKit/Core/SQCollectionViewDelegate.h
portal-io/portal-ios-midware
371f7ef4f6a390fb56ed508964f69b7b4855c3b8
[ "MIT" ]
null
null
null
// // SQCollectionViewDelegate.h // SQCollectionDemo // // Created by qbshen on 16/6/14. // Copyright © 2016年 qbshen. All rights reserved. // #import <UIKit/UIKit.h> @interface SQBaseCollectionViewInfo : NSObject @property (nonatomic) NSString * cellNibName; @property (nonatomic) NSString * cellClassName; @property (nonatomic) NSInteger cellIndex; @property (nonatomic) CGSize cellSize; @property (nonatomic, copy) void(^gotoNextBlock)(id); @property (nonatomic) id viewTag; @property (nonatomic) BOOL needRefresh; @property (nonatomic) id args; @property (nonatomic, weak) id delegate; @end @interface SQCollectionViewHeaderInfo : SQBaseCollectionViewInfo @end @interface SQCollectionViewFooterInfo : SQBaseCollectionViewInfo @end @interface SQCollectionViewSectionInfo : NSObject @property (nonatomic) NSInteger sectionIndex; @property (nonatomic) SQCollectionViewHeaderInfo * headerInfo; @property (nonatomic) SQCollectionViewFooterInfo * footerInfo; @property (nonatomic) NSArray * cellDataArray; @property (nonatomic) NSArray * originDataArray; @property (nonatomic) BOOL isOpen; @property (nonatomic) UIEdgeInsets edgeInsets; @property (nonatomic) CGFloat minItemSpace; @property (nonatomic) CGFloat minLineSpace; //@property (nonatomic, weak) UIViewController * viewController; //@property (nonatomic, weak) UICollectionView * collectionView; @end @interface SQCollectionViewCellInfo : SQBaseCollectionViewInfo @end @interface SQBaseCollectionViewCell : UICollectionViewCell - (void)fillData:(SQBaseCollectionViewInfo *)info; - (void)didHighlight; - (void)didUnhighlight; @end @interface SQBaseCollectionReusableHeader : UICollectionReusableView - (void)fillData:(SQBaseCollectionViewInfo *)info; @end @interface SQBaseCollectionReusableFooter : UICollectionReusableView - (void)fillData:(SQBaseCollectionViewInfo *)info; - (void)updateButtonEdgeInsets:(UIButton *)btn; @end @interface SQCollectionViewDelegate : NSObject<UICollectionViewDelegate,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout> @property (nonatomic, copy) void(^scrollBottomBlock)(BOOL); @property (nonatomic, copy) void(^scrollWillEndDragBlock)(CGFloat y); @property (nonatomic, copy) void(^scrollDidToTop)(BOOL); @property (nonatomic, copy) void(^scrollDidScrolling)(CGFloat y); @property (nonatomic, copy) void(^DidEndDecelerating)(UIScrollView *scrollView); @property (nonatomic, copy) void(^WillBeginDragging)(UIScrollView *scrollView); @property (nonatomic) BOOL isBottom; - (void)loadData:(NSDictionary *)data; @end
25.088235
134
0.79406
af37207453d9087c7d7d986a29952da1d4586b07
1,226
c
C
v3/ext/asn1c/Features.c
fotisl/zlint
6bd12988da7f11085e83f9d3bb0933df200d89f0
[ "Apache-2.0" ]
null
null
null
v3/ext/asn1c/Features.c
fotisl/zlint
6bd12988da7f11085e83f9d3bb0933df200d89f0
[ "Apache-2.0" ]
null
null
null
v3/ext/asn1c/Features.c
fotisl/zlint
6bd12988da7f11085e83f9d3bb0933df200d89f0
[ "Apache-2.0" ]
null
null
null
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "TLS-Feature-Module-2015" * found in "asn1/rfc7633-TLS-Feature-Module-2015.asn1" * `asn1c -S /home/fotisl/Projects/revlintsynt/asn1c/skeletons -pdu=all -fwide-types -fcompound-names` */ #include "Features.h" static asn_TYPE_member_t asn_MBR_Features_1[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, &asn_DEF_INTEGER, 0, { 0, 0, 0 }, 0, 0, /* No default value */ "" }, }; static const ber_tlv_tag_t asn_DEF_Features_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_Features_specs_1 = { sizeof(struct Features), offsetof(struct Features, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; asn_TYPE_descriptor_t asn_DEF_Features = { "Features", "Features", &asn_OP_SEQUENCE_OF, asn_DEF_Features_tags_1, sizeof(asn_DEF_Features_tags_1) /sizeof(asn_DEF_Features_tags_1[0]), /* 1 */ asn_DEF_Features_tags_1, /* Same as above */ sizeof(asn_DEF_Features_tags_1) /sizeof(asn_DEF_Features_tags_1[0]), /* 1 */ { 0, 0, SEQUENCE_OF_constraint }, asn_MBR_Features_1, 1, /* Single element */ &asn_SPC_Features_specs_1 /* Additional specs */ };
27.244444
103
0.715334
79d84224c243df51c9cb5c47db304e993868d420
320
h
C
HDMap/include/map_api/msg/nav_msgs_GetMapResult.h
1335654481ren/autoparking
a36ffaa1f787329b5e8324beb261059d6c0bd63f
[ "MIT" ]
2
2019-10-16T06:48:35.000Z
2019-10-22T16:06:30.000Z
HDMap/include/map_api/msg/nav_msgs_GetMapResult.h
1335654481ren/autoparking
a36ffaa1f787329b5e8324beb261059d6c0bd63f
[ "MIT" ]
null
null
null
HDMap/include/map_api/msg/nav_msgs_GetMapResult.h
1335654481ren/autoparking
a36ffaa1f787329b5e8324beb261059d6c0bd63f
[ "MIT" ]
1
2019-10-16T08:15:01.000Z
2019-10-16T08:15:01.000Z
#ifndef NAV_MSGS_GETMAPRESULT_H #define NAV_MSGS_GETMAPRESULT_H #include "nav_msgs_OccupancyGrid.h" #include <string> #include <vector> using namespace std; namespace nav_msgs { class GetMapResult { public: GetMapResult() {}; ~GetMapResult() {}; nav_msgs::OccupancyGrid map; }; } // namespace nav_msgs #endif
14.545455
35
0.753125
61256c6c9c947e8589338ba7c1b741b35bcbb4a1
324
c
C
Languages/C/Swap two numbers without using third variable .c
bluey-crypto/Hacktoberfest
c826d5faf1d1c860dbffe665e6a7cf1e35ba76ba
[ "MIT" ]
1
2020-10-03T03:17:03.000Z
2020-10-03T03:17:03.000Z
Languages/C/Swap two numbers without using third variable .c
bluey-crypto/Hacktoberfest
c826d5faf1d1c860dbffe665e6a7cf1e35ba76ba
[ "MIT" ]
1
2020-10-01T18:03:45.000Z
2020-10-01T18:03:45.000Z
Languages/C/Swap two numbers without using third variable .c
bluey-crypto/Hacktoberfest
c826d5faf1d1c860dbffe665e6a7cf1e35ba76ba
[ "MIT" ]
4
2020-10-07T14:58:50.000Z
2020-10-24T10:13:17.000Z
//Swapping two numbers without using additional variables #include<stdio.h> int main() { int a,b; printf("Enter two numbers to be swapped:\n") scanf("%d %d",&a,&b); printf("Before swap a=%d b=%d",a,b); a=a+b; b=a-b; a=a-b; printf("\nAfter swap a=%d b=%d",a,b); return 0; }
20.25
57
0.54321
056f33f7ff9900bf644c54aa1f23d71127e025ab
4,103
c
C
nitan/d/heimuya/npc/obj/pixie-jian.c
cantona/NT6
073f4d491b3cfe6bfbe02fbad12db8983c1b9201
[ "MIT" ]
1
2019-03-27T07:25:16.000Z
2019-03-27T07:25:16.000Z
nitan/d/heimuya/npc/obj/pixie-jian.c
cantona/NT6
073f4d491b3cfe6bfbe02fbad12db8983c1b9201
[ "MIT" ]
null
null
null
nitan/d/heimuya/npc/obj/pixie-jian.c
cantona/NT6
073f4d491b3cfe6bfbe02fbad12db8983c1b9201
[ "MIT" ]
null
null
null
// pixie-jian.c 辟邪劍法 // Jay 4/5/96 inherit SKILL; string *dodge_msg = ({ "突然之間,白影急幌,$n向後滑出丈餘,立時又回到了原地,躲過了$N這一招。\n", "$n手臂迴轉,在$N手肘下一推,順勢閃到一旁。\n", "$n右手伸出,在$N手腕上迅速無比的一按,順勢跳到一旁。\n", "$n身形飄忽,有如鬼魅,轉了幾轉,移步到$N的身後,躲過了$N這一招。\n", "$N只覺眼前一花,似乎見到$n身形一幌,但隨即又見$n回到原地,卻似從未離開。\n", "$N眼睛一花,$n已沒了蹤影。突然$n從身後拍了一下$N的頭,輕輕躍開。\n", "$n嫣然一笑,詭異之極,$N竟不知如何是好,停住了攻擊。\n", }); string *parry_msg = ({ "突然之間,白影急幌,$n向後滑出丈餘,立時又回到了原地,格開了$N這一招。\n", "$n手臂迴轉,在$N手肘下一推,順勢閃到一旁。\n", "$n右手伸出,在$N手腕上迅速無比的一按,順勢跳到一旁。\n", "$n身形飄忽,有如鬼魅,轉了幾轉,移步到$N的身後,架過了$N這一招。\n", "$N只覺眼前一花,似乎見到$n身形一幌,但隨即又見$n回到原地,卻似從未離開。\n", "$N眼睛一花,$n已沒了蹤影。突然$n從身後拍了一下$N的頭,輕輕躍開。\n", "$n嫣然一笑,詭異之極,$N竟不知如何是好,停住了攻擊。\n", }); mapping *action = ({ ([ "action":"突然之間,白影急幌,$N向後滑出丈餘,立時又回到了原地", "force" : 80, "dodge" : 40, "damage": 40, "lvl" : 0, "skill_name" : "白影急幌", "damage_type": "刺傷" ]), ([ "action":"$N右手伸出,在$n手腕上迅速無比的一按,$n險些擊中自己小腹", "force" : 90, "dodge" : 30, "damage": 50, "lvl" : 0, "skill_name" : "自己小腹", "damage_type": "刺傷" ]), ([ "action":"驀地裏$N猱身而上,躥到$n的身後,又躍回原地", "force" : 80, "dodge" : 60, "damage": 70, "lvl" : 25, "skill_name" : "猱身而上", "damage_type": "刺傷" ]), ([ "action":"$N突然間招法一變,$w忽伸忽縮,招式詭奇絕倫。$n驚駭之中方寸大亂", "force" : 80, "dodge" : 40, "damage": 50, "lvl" : 5, "skill_name" : "招法一變", "damage_type": "刺傷" ]), ([ "action":"$N身形飄忽,有如鬼魅,轉了幾轉,移步到$n的左側", "force" : 90, "dodge" : 40, "damage": 90, "lvl" : 10, "skill_name" : "有如鬼魅", "damage_type": "刺傷" ]), ([ "action":"$N一聲冷笑,驀地裏疾衝上前,一瞬之間,與$n相距已不到一尺,$w隨即遞出", "force" : 140, "dodge" : -5, "damage": 100, "lvl" : 10, "skill_name" : "疾衝上前", "damage_type": "刺傷" ]), ([ "action":"$N喝道:“好!”,便即拔出$w,反手刺出,跟着轉身離去", "force" : 80, "dodge" : 30, "damage": 50, "lvl" : 0, "skill_name" : "反手刺出", "damage_type": "刺傷" ]), ([ "action":"$n只覺眼前一花,似乎見到$N身形一幌,但隨即又見$N回到原地,卻似從未離開", "force" : 140, "dodge" : 80, "damage": 100, "lvl" : 20, "skill_name" : "眼前一花", "damage_type": "刺傷" ]), ([ "action":"$N向後疾退,$n緊追兩步,突然間$N閃到$n面前,手中$w直指$n的$l", "force" : 60, "dodge" : 10, "damage": 40, "lvl" : 5, "skill_name" : "向後疾退", "damage_type": "刺傷" ]), ([ "action":"$N驀地衝到$n面前,手中$w直刺$n右眼!$n慌忙招架,不想$N的$w突然轉向", "force" : 200, "dodge" : 4, "damage": 100, "lvl" : 45, "skill_name" : "直刺右眼", "damage_type": "刺傷" ]), ([ "action":"$N飛身躍起,$n抬眼一望,但見得$N從天直落而下,手中$w刺向$n的$l", "force" : 340, "dodge" : 20, "damage": 105, "lvl" : 64, "skill_name" : "飛身躍起", "damage_type": "刺傷" ]), ([ "action":"$N腰枝猛擺,$n眼前彷彿突然出現了七八個$N,七八隻$w一起刺向$n", "force" : 380, "dodge" : 60, "damage": 130, "lvl" : 79, "skill_name" : "腰枝猛擺", "damage_type": "刺傷" ]), }); int valid_enable(string usage) { return usage == "sword" || usage == "dodge" || usage == "parry"; } string query_skill_name(int level) { int i; for(i = sizeof(action)-1; i >= 0; i--) if(level >= action[i]["lvl"]) return action[i]["skill_name"]; } mapping query_action(object me, object weapon) { int i, level; level = (int) me->query_skill("pixie-jian",1); for(i = sizeof(action); i > 0; i--) if(level > action[i-1]["lvl"]) return action[NewRandom(i, 20, level/5)]; } string query_dodge_msg(string limb) { return dodge_msg[random(sizeof(dodge_msg))]; } string query_parry_msg(string limb) { return parry_msg[random(sizeof(parry_msg))]; } int valid_learn(object me) { return notify_fail("辟邪劍法只能通過研習《葵花寶典》來學習。\n"); }
25.484472
69
0.481599
0579d83e289352d42a3b3bc91cc53741c66b3d98
9,148
h
C
src/tersgen.h
MyersResearchGroup/ATACS
d6eeec63fbc53794f0376592e7357ad08a7dddd1
[ "Apache-2.0" ]
6
2017-03-10T14:55:45.000Z
2021-09-10T10:44:21.000Z
src/tersgen.h
MyersResearchGroup/ATACS
d6eeec63fbc53794f0376592e7357ad08a7dddd1
[ "Apache-2.0" ]
77
2016-11-07T08:44:57.000Z
2018-07-11T03:19:13.000Z
src/tersgen.h
MyersResearchGroup/ATACS
d6eeec63fbc53794f0376592e7357ad08a7dddd1
[ "Apache-2.0" ]
1
2021-09-10T10:44:22.000Z
2021-09-10T10:44:22.000Z
/*****************************************************************************/ /* */ /* Automated Timed Asynchronous Circuit Synthesis (ATACS) */ /* */ /* Copyright (C) 1993 by, Chris J. Myers */ /* Center for Integrated Systems, */ /* Stanford University */ /* */ /* Permission to use, copy, modify and/or distribute, but not sell, this */ /* software and its documentation for any purpose is hereby granted */ /* without fee, subject to the following terms and conditions: */ /* */ /* 1. The above copyright notice and this permission notice must */ /* appear in all copies of the software and related documentation. */ /* */ /* 2. The name of Stanford University may not be used in advertising or */ /* publicity pertaining to distribution of the software without the */ /* specific, prior written permission of Stanford. */ /* */ /* 3. This software may not be called "ATACS" if it has been modified */ /* in any way, without the specific prior written permission of */ /* Chris J. Myers. */ /* */ /* 4. THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, */ /* EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY */ /* WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. */ /* */ /* IN NO EVENT SHALL STANFORD OR THE AUTHORS OF THIS SOFTWARE BE LIABLE */ /* FOR ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY */ /* KIND, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR */ /* PROFITS, WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON */ /* ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE */ /* OR PERFORMANCE OF THIS SOFTWARE. */ /* */ /*****************************************************************************/ /*****************************************************************************/ /* tersgen.h - miscellaneous routines used in TERS generation. */ /*****************************************************************************/ #ifndef _tersgen_h #define _tersgen_h #include <string> /*****************************************************************************/ /* Create an empty timed event-rule structure. */ /*****************************************************************************/ TERstructADT TERSempty(); /*****************************************************************************/ /* Create a timed event-rule structure for an action. */ /*****************************************************************************/ TERstructADT TERS(actionADT action, bool type, int lower, int upper, bool vhdl, const char *level = "[true]", char *dist = NULL, int occur = (-1), const string&data = ""); /*****************************************************************************/ /* Create a timed event-rule structure for a probe. */ /*****************************************************************************/ /* TERstructADT probe(actionADT action,int data); */ /*****************************************************************************/ /* Modify distribution on an event for choice probabilities. */ /*****************************************************************************/ void TERSmodifydist(TERstructADT S,double dist); /*****************************************************************************/ /* Mark all rules in timed event-rule structure as ordering. */ /*****************************************************************************/ void TERSmarkord(TERstructADT S); /*****************************************************************************/ /* Mark all rules in timed event-rule structure as assumptions. */ /*****************************************************************************/ void TERSmarkassump(TERstructADT S); /*****************************************************************************/ /* Copy a timed event-rule structure. */ /*****************************************************************************/ TERstructADT TERScopy(TERstructADT S0); /*****************************************************************************/ /* Delete a timed event-rule structures. */ /*****************************************************************************/ void TERSdelete(TERstructADT S); /*****************************************************************************/ /* Compose two timed event-rule structures. */ /*****************************************************************************/ TERstructADT TERScompose(TERstructADT TERS1,TERstructADT TERS2, char* op); /*****************************************************************************/ /* Rename a timed event-rule structures based on the events of another. */ /*****************************************************************************/ TERstructADT TERSrename(TERstructADT TERS1,TERstructADT TERS2); /*****************************************************************************/ /* Setup a timed event-rule structure to loop or repeat. */ /*****************************************************************************/ TERstructADT TERSmakeloop(TERstructADT S); /*****************************************************************************/ /* Make a timed event-rule structure loop. */ /*****************************************************************************/ TERstructADT TERSloop(TERstructADT S); /*****************************************************************************/ /* Make a timed event-rule structure repetitive. */ /*****************************************************************************/ TERstructADT TERSrepeat(TERstructADT S0,char *op); /*****************************************************************************/ /* Check if a timed event-rule structure is closed. */ /*****************************************************************************/ void checkclosed(TERstructADT S); /*****************************************************************************/ /* Emit a timed event-rule structure. */ /*****************************************************************************/ void emitters(const char* path, const char* filename, TERstructADT TERS); // Print a rule set: void emit_rule_set(ostream& out, bool ord, rulesetADT rules, int epsilon, bool fail,const char *type=""); // The following function emits either the input or the output events: void emit_some_events(ostream&out, TERstructADT S, int type, char*prefix, bool dummy); //print the declaration of event (A,i) followed by <delim>: void declare_event(ostream&out, actionADT A, int i, char delim); //print the declarations of (A,i) and (A->inverse,i) on one line: void declare_pair (ostream&out, actionADT A, int i); ostream& operator<<(ostream&out, eventsADT E);//Output an event //Output a whole set of conflicts: ostream& operator<<(ostream&out, conflictsetADT cur_conflict); //Return the maximum occurrence of act and act->inverse (if act has an inverse) int Max(actionADT act); /*****************************************************************************/ /* Emit a timed event-rule structure. */ /*****************************************************************************/ void print_ters(TERstructADT TERS); int rule_cnt(telADT); int event_cnt(telADT); //void post_process(TERstructADT S, bool self_lp=false); void replace(TERstructADT S); /*****************************************************************************/ /* Load a timed event-rule structure from a file to a TERSstruct. */ /*****************************************************************************/ void postprocess(char * filename,bool postproc,bool redchk,bool fromG, bool verbose); #endif /* tersgen.h */
50.263736
79
0.365654
ba2c6efd80bee08ead9f7b9c30129b5ff5d33b42
816
h
C
Nanoforge/gui/MenuItem.h
Moneyl/Nanoforge
8fb24f6033d2c50496960ff0c00b48bf80b90b14
[ "MIT" ]
18
2020-11-15T00:30:37.000Z
2021-12-02T23:32:58.000Z
Nanoforge/gui/MenuItem.h
Moneyl/Nanoforge
8fb24f6033d2c50496960ff0c00b48bf80b90b14
[ "MIT" ]
15
2021-06-09T15:31:10.000Z
2022-01-02T07:52:45.000Z
Nanoforge/gui/MenuItem.h
Moneyl/Nanoforge
8fb24f6033d2c50496960ff0c00b48bf80b90b14
[ "MIT" ]
null
null
null
#pragma once #include "common/Typedefs.h" #include "IGuiPanel.h" #include <vector> struct MenuItem { string Text; std::vector<MenuItem> Items = {}; //Todo: Must update if we resize MainGui::panels_. Currently do not do this Handle<IGuiPanel> panel = nullptr; MenuItem* GetItem(std::string_view text) { for (auto& item : Items) { if (item.Text == text) return &item; } return nullptr; } void Draw() { if (panel) { ImGui::MenuItem(Text.c_str(), "", &panel->Open); return; } if (ImGui::BeginMenu(Text.c_str())) { for (auto& item : Items) { item.Draw(); } ImGui::EndMenu(); } } };
20.4
79
0.480392
d571086068a9b19177a8d5055744976baf0ca440
4,810
h
C
Headers/Frameworks/Flexo/MXFMedia.h
CommandPost/FinalCutProFrameworks
d98b00ff0c84af80942d71514e9238d624aca50a
[ "MIT" ]
3
2020-11-19T10:04:02.000Z
2021-10-02T17:25:21.000Z
Headers/Frameworks/Flexo/MXFMedia.h
CommandPost/FinalCutProFrameworks
d98b00ff0c84af80942d71514e9238d624aca50a
[ "MIT" ]
null
null
null
Headers/Frameworks/Flexo/MXFMedia.h
CommandPost/FinalCutProFrameworks
d98b00ff0c84af80942d71514e9238d624aca50a
[ "MIT" ]
null
null
null
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Mar 11 2021 20:53:35). // // Copyright (C) 1997-2019 Steve Nygard. // #import <objc/NSObject.h> #import <Flexo/HPMMediaProtocol-Protocol.h> @class NSString; __attribute__((visibility("hidden"))) @interface MXFMedia : NSObject <HPMMediaProtocol> { int _typeID; CDStruct_2689111f _editRate; long long _frameDuration; long long _origin; long long _originInSamples; long long _startPosition; int _essenceType; int _codecType; long long _commonPacketUnits; struct vector<HPMChunkEntry, std::__1::allocator<HPMChunkEntry>> *_index; struct MXUMID *_sourcePackID; int _wrapping; unsigned int _trackID; unsigned int _trackNumber; unsigned int _bodySID; unsigned int _essenceOffset; int _deltaEntryIndex; unsigned int _deltaOffset; unsigned int klvHeaderSize; unsigned long long klvValueSize; unsigned int _bytesPerSample; struct __CFDictionary *descriptiveMetadata; } @property struct __CFDictionary *descriptiveMetadata; // @synthesize descriptiveMetadata; @property unsigned int bytesPerSample; // @synthesize bytesPerSample=_bytesPerSample; @property unsigned long long klvValueSize; // @synthesize klvValueSize; @property unsigned int klvHeaderSize; // @synthesize klvHeaderSize; @property(readonly) unsigned int essenceOffset; // @synthesize essenceOffset=_essenceOffset; @property(readonly) unsigned int bodySID; // @synthesize bodySID=_bodySID; @property(readonly) unsigned int trackNumber; // @synthesize trackNumber=_trackNumber; @property(readonly) unsigned int trackID; // @synthesize trackID=_trackID; @property(readonly) int wrapping; // @synthesize wrapping=_wrapping; @property(readonly) const struct MXUMID *sourcePackID; // @synthesize sourcePackID=_sourcePackID; @property long long commonPacketUnits; // @synthesize commonPacketUnits=_commonPacketUnits; @property(readonly) int codecType; // @synthesize codecType=_codecType; @property(readonly) int essenceType; // @synthesize essenceType=_essenceType; @property(readonly) long long startPosition; // @synthesize startPosition=_startPosition; @property(readonly) long long originInSamples; // @synthesize originInSamples=_originInSamples; @property(readonly) long long origin; // @synthesize origin=_origin; @property(readonly) long long frameDuration; // @synthesize frameDuration=_frameDuration; @property(readonly) CDStruct_2689111f editRate; // @synthesize editRate=_editRate; @property(readonly) int type; // @synthesize type=_typeID; - (int)unitsPerPacketWithIndexPosition:(unsigned long long)arg1; - (void)checkMediaWithIndexDuration:(long long)arg1; - (unsigned char)frameTypeWithIndexPosition:(unsigned long long)arg1; - (BOOL)temporalFrameOffsetWithIndexPosition:(unsigned long long)arg1; - (BOOL)displayFrameOffsetWithIndexPosition:(unsigned long long)arg1 mustLoadAtMediaIndexPosition:(long long *)arg2; - (long long)indexPositionWithSamplePosition:(long long)arg1 sampleOffset:(int *)arg2 mustLoadAtMediaIndexPosition:(long long *)arg3; - (CDStruct_37d50165 *)mutableIndexEntryWithEditPosition:(long long)arg1; - (const CDStruct_37d50165 *)indexEntryWithEditPosition:(long long)arg1; - (void)setIndexEntryWithIndexPosition:(unsigned long long)arg1 filePosition:(long long)arg2 size:(unsigned int)arg3 isExactSize:(BOOL)arg4 unitsPerPacket:(unsigned int)arg5 packageStartUnit:(long long)arg6; - (void)addIndexEntryWithFilePosition:(long long)arg1 size:(unsigned int)arg2 isExactSize:(BOOL)arg3 unitsPerPacket:(unsigned int)arg4; - (void)fixLastIndexEntryWithEndPosition:(long long)arg1 unitsSize:(unsigned int)arg2; - (void)resizeIndexTableWithNewSize:(long long)arg1; - (void)preserveIndexWithSize:(long long)arg1; - (CDStruct_37d50165 *)lastIndexEntry; @property(readonly) BOOL isValid; - (unsigned long long)nextDeltaWithDeltaEntries:(const struct MXArray *)arg1 indexEntry:(const struct MXIndexEntry *)arg2; - (unsigned char)sliceWithDeltaEntries:(const struct MXArray *)arg1; - (unsigned int)deltaOffsetWithDeltaEntries:(const struct MXArray *)arg1; @property unsigned int deltaOffset; @property int deltaEntryIndex; @property(readonly) BOOL isEssenceAssigned; @property(readonly) BOOL hasDisplayOffsets; @property(readonly) long long indexDataSize; @property long long indexSampleCount; @property(readonly) unsigned long long indexEntryCount; @property(readonly) CDStruct_2689111f sampleRate; - (void)dealloc; - (id)initWithTrack:(const struct MXTrack *)arg1 sourcePackID:(const struct MXUMID *)arg2 bodySID:(unsigned int)arg3 trackType:(int)arg4; // Remaining properties @property(readonly, copy) NSString *debugDescription; @property(readonly, copy) NSString *description; @property(readonly) unsigned long long hash; @property(readonly) Class superclass; @end
50.104167
207
0.796466
8451b2cd1f7abf231c5635760e208702e0ac1f43
2,158
c
C
Openharmony v1.0/third_party/ltp/testcases/kernel/syscalls/mlock2/mlock203.c
clkbit123/TheOpenHarmony
0e6bcd9dee9f1a2481d762966b8bbd24baad6159
[ "MIT" ]
1
2022-02-15T08:51:55.000Z
2022-02-15T08:51:55.000Z
hihope_neptune-oh_hid/00_src/v0.3/third_party/ltp/testcases/kernel/syscalls/mlock2/mlock203.c
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
hihope_neptune-oh_hid/00_src/v0.3/third_party/ltp/testcases/kernel/syscalls/mlock2/mlock203.c
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2018 FUJITSU LIMITED. All rights reserved. * Author: Xiao Yang <yangx.jy@cn.fujitsu.com> */ /* * Description: * If one memory is already locked by mlock2() with MLOCK_ONFAULT and then * it is locked again by mlock()(or mlock2() without MLOCK_ONFAULT), the * VmLck field in /proc/pid/status should increase once instead of twice. * * This issue has been fixed in kernel: * 'b155b4fde5bd("mm: mlock: avoid increase mm->locked_vm on mlock() when already mlock2(,MLOCK_ONFAULT)")' */ #include <errno.h> #include <unistd.h> #include <sys/mman.h> #include <linux/mman.h> #include "tst_test.h" #include "lapi/syscalls.h" #include "lapi/mlock2.h" static unsigned long pgsz; static char *addr; static void verify_mlock2(void) { unsigned long bsize, asize1, asize2; SAFE_FILE_LINES_SCANF("/proc/self/status", "VmLck: %lu", &bsize); TEST(tst_syscall(__NR_mlock2, addr, pgsz, MLOCK_ONFAULT)); if (TST_RET != 0) { if (TST_ERR == EINVAL) { tst_res(TCONF, "mlock2() didn't support MLOCK_ONFAULT"); } else { tst_res(TFAIL | TTERRNO, "mlock2(MLOCK_ONFAULT) failed"); } return; } SAFE_FILE_LINES_SCANF("/proc/self/status", "VmLck: %lu", &asize1); if ((asize1 - bsize) * 1024 != pgsz) { tst_res(TFAIL, "mlock2(MLOCK_ONFAULT) locked %lu size, expected %lu", (asize1 - bsize) * 1024, pgsz); goto end; } TEST(tst_syscall(__NR_mlock2, addr, pgsz, 0)); if (TST_RET != 0) { tst_res(TFAIL | TTERRNO, "mlock2() failed"); goto end; } SAFE_FILE_LINES_SCANF("/proc/self/status", "VmLck: %lu", &asize2); if (asize1 != asize2) { tst_res(TFAIL, "Locking one memory again increased VmLck"); } else { tst_res(TPASS, "Locking one memory again didn't increased VmLck"); } end: SAFE_MUNLOCK(addr, pgsz); } static void setup(void) { pgsz = getpagesize(); addr = SAFE_MMAP(NULL, pgsz, PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, 0, 0); } static void cleanup(void) { if (addr) SAFE_MUNMAP(addr, pgsz); } static struct tst_test test = { .test_all = verify_mlock2, .setup = setup, .cleanup = cleanup, .needs_root = 1, .min_kver = "2.6.9", };
23.204301
107
0.679796
c535fc462be76604c5d4a9220ce16d749831dbae
1,212
h
C
development/C++/src/client/Ae/ClientAeAttribute.h
Movares/OPC-Classic-SDK
65e022dd4ccf20bbdacdfc49cac23bd99d773b98
[ "MIT" ]
19
2021-05-19T11:03:57.000Z
2022-03-18T06:53:48.000Z
development/C++/src/client/Ae/ClientAeAttribute.h
Movares/OPC-Classic-SDK
65e022dd4ccf20bbdacdfc49cac23bd99d773b98
[ "MIT" ]
8
2021-04-26T10:47:20.000Z
2022-03-15T11:25:07.000Z
development/C++/src/client/Ae/ClientAeAttribute.h
Movares/OPC-Classic-SDK
65e022dd4ccf20bbdacdfc49cac23bd99d773b98
[ "MIT" ]
11
2021-05-28T06:35:20.000Z
2022-03-31T14:07:25.000Z
#ifndef _CLIENTAEATTRIBUTE_H_ #define _CLIENTAEATTRIBUTE_H_ #include "../ClientEnums.h" #include "../../Enums.h" #ifdef WIN64 #pragma pack(push,8) #else #pragma pack(push,4) #endif namespace SoftingOPCToolboxClient { class TBC_EXPORT AeAttribute { private: protected: unsigned long m_id; tstring m_description; VARTYPE m_dataType; public: AeAttribute() { m_id = 0; m_description = _T(""); m_dataType = 0; } //end constructor AeAttribute( unsigned long id, tstring description, unsigned short type) { m_id = id; m_description = description; m_dataType = type; } //end constructor virtual ~AeAttribute() {} //end destructor unsigned long getId() { return m_id; } //end getId void setId(unsigned long id) { m_id = id; } //end setId tstring& getDescription() { return m_description; } //end getDescription void setDescription(tstring description) { m_description = description; } //end setDescription VARTYPE getDataType() { return m_dataType; } //end getDataType void setDataType(VARTYPE dataType) { m_dataType = dataType; } //end setDataType }; // end class AeAttribute }; //end namespace OPC_Client #pragma pack(pop) #endif
14.60241
43
0.69967
d59f5753ce33c762e00cc685ee17cb2336ebf624
127
h
C
Simplified/NYPLOPDSAttribute.h
datalogics-tsmith/Simplified-iOS
2822295486f3f4901ce65731bcd30dd77b9ed003
[ "Apache-2.0" ]
null
null
null
Simplified/NYPLOPDSAttribute.h
datalogics-tsmith/Simplified-iOS
2822295486f3f4901ce65731bcd30dd77b9ed003
[ "Apache-2.0" ]
1
2021-08-04T12:29:05.000Z
2021-08-04T12:29:05.000Z
Simplified/NYPLOPDSAttribute.h
datalogics-tsmith/Simplified-iOS
2822295486f3f4901ce65731bcd30dd77b9ed003
[ "Apache-2.0" ]
3
2016-11-08T20:22:53.000Z
2021-08-04T12:28:03.000Z
BOOL NYPLOPDSAttributeKeyStringIsActiveFacet(NSString *string); BOOL NYPLOPDSAttributeKeyStringIsFacetGroup(NSString *string);
42.333333
63
0.889764
22ef4d4bb777bddd4d47318cafdffdbad0479ef3
29,737
c
C
Driver/OID/OIDRequest.c
cloudbase/openvswitch-hyperv-kernel
25bf7b34107f4c2d4f5ac5846112f78e3769a2bc
[ "Apache-2.0" ]
6
2015-05-30T21:51:50.000Z
2019-06-27T07:56:32.000Z
Driver/OID/OIDRequest.c
cloudbase/openvswitch-hyperv-kernel
25bf7b34107f4c2d4f5ac5846112f78e3769a2bc
[ "Apache-2.0" ]
null
null
null
Driver/OID/OIDRequest.c
cloudbase/openvswitch-hyperv-kernel
25bf7b34107f4c2d4f5ac5846112f78e3769a2bc
[ "Apache-2.0" ]
3
2016-01-26T03:35:19.000Z
2018-04-12T03:13:45.000Z
/* Copyright 2014 Cloudbase Solutions Srl 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 "precomp.h" #include "OidPort.h" #include "OidNic.h" #include "Switch.h" #include "OIDRequest.h" _Use_decl_annotations_ VOID OID_CompleteInternalOidRequest(NDIS_OID_REQUEST* pNdisRequest, NDIS_STATUS status) { OVS_OID_REQUEST* pOidRequest = NULL; ULONG bytesNeeded = 0; switch (pNdisRequest->RequestType) { case NdisRequestSetInformation: bytesNeeded = pNdisRequest->DATA.SET_INFORMATION.BytesNeeded; break; case NdisRequestQueryInformation: bytesNeeded = pNdisRequest->DATA.QUERY_INFORMATION.BytesNeeded; break; case NdisRequestMethod: bytesNeeded = pNdisRequest->DATA.METHOD_INFORMATION.BytesNeeded; break; } pOidRequest = CONTAINING_RECORD(pNdisRequest, OVS_OID_REQUEST, ndisOidRequest); pOidRequest->status = status; pOidRequest->bytesNeeded = bytesNeeded; NdisSetEvent(&pOidRequest->reqEvent); } /************************************ SWITCH OIDS ************************************/ _Use_decl_annotations_ NDIS_STATUS OID_GetSwitchPropertyUnsafe(OVS_SWITCH_INFO* pSwitchInfo, NDIS_SWITCH_PROPERTY_TYPE propertyType, NDIS_SWITCH_OBJECT_ID* pPropertyId, NDIS_SWITCH_PROPERTY_ENUM_PARAMETERS** ppSwitchPropertyEnumParameters) { NDIS_STATUS status = NDIS_STATUS_SUCCESS; NDIS_SWITCH_PROPERTY_ENUM_PARAMETERS propertyParameters; ULONG bytesNeeded = 0; NDIS_SWITCH_PROPERTY_ENUM_PARAMETERS* pOutputBuffer = NULL; USHORT outputBufferLength = sizeof(NDIS_SWITCH_PROPERTY_ENUM_PARAMETERS); propertyParameters.Header.Type = NDIS_OBJECT_TYPE_DEFAULT; propertyParameters.Header.Revision = NDIS_SWITCH_PROPERTY_ENUM_PARAMETERS_REVISION_1; propertyParameters.PropertyType = propertyType; propertyParameters.SerializationVersion = NDIS_SWITCH_OBJECT_SERIALIZATION_VERSION_1; if (pPropertyId != NULL) { NdisMoveMemory(&propertyParameters.PropertyId, pPropertyId, sizeof(NDIS_SWITCH_OBJECT_ID)); } else { OVS_CHECK(propertyType != NdisSwitchPropertyTypeCustom); } pOutputBuffer = KAlloc(outputBufferLength); if (pOutputBuffer == NULL) { status = NDIS_STATUS_RESOURCES; goto Cleanup; } do { //bytesNeeded: at first ener in loop, it is 0 (local var); it is an out var of OID_IssueOidRequest if (bytesNeeded != 0) { KFree(pOutputBuffer); outputBufferLength = (USHORT)bytesNeeded; pOutputBuffer = KAlloc(outputBufferLength); if (pOutputBuffer == NULL) { status = NDIS_STATUS_RESOURCES; goto Cleanup; } } if (outputBufferLength >= sizeof(propertyParameters)) { //perhaps the pOutputBuffer begins with a property params header NdisMoveMemory(pOutputBuffer, &propertyParameters, sizeof(propertyParameters)); } status = OID_IssueOidRequest(pSwitchInfo, NdisRequestMethod, OID_SWITCH_PROPERTY_ENUM, pOutputBuffer, sizeof(propertyParameters), outputBufferLength, 0, 0, &bytesNeeded); } while (status == NDIS_STATUS_INVALID_LENGTH); Cleanup: if (status != NDIS_STATUS_SUCCESS) { KFree(pOutputBuffer); pOutputBuffer = NULL; } *ppSwitchPropertyEnumParameters = pOutputBuffer; return status; } /************************************ PORT OIDS ************************************/ NDIS_STATUS _OnOidPortPropertyAdd(_In_ const NDIS_OBJECT_HEADER* pObjectHeader, _Inout_ BOOLEAN* pComplete) { NDIS_STATUS status = NDIS_STATUS_SUCCESS; if (pObjectHeader->Type != NDIS_OBJECT_TYPE_DEFAULT || pObjectHeader->Revision < NDIS_SWITCH_PORT_PROPERTY_PARAMETERS_REVISION_1 || pObjectHeader->Size < NDIS_SIZEOF_NDIS_SWITCH_PORT_PROPERTY_PARAMETERS_REVISION_1) { status = NDIS_STATUS_NOT_SUPPORTED; *pComplete = TRUE; goto Cleanup; } status = Port_AddProperty((NDIS_SWITCH_PORT_PROPERTY_PARAMETERS*)pObjectHeader); if (status == NDIS_STATUS_NOT_SUPPORTED) { status = NDIS_STATUS_SUCCESS; } else { *pComplete = TRUE; goto Cleanup; } Cleanup: return status; } NDIS_STATUS _OnOidPortPropertyUpdate(_In_ const NDIS_OBJECT_HEADER* pObjectHeader, _Inout_ BOOLEAN* pComplete) { NDIS_STATUS status = NDIS_STATUS_SUCCESS; if (pObjectHeader->Type != NDIS_OBJECT_TYPE_DEFAULT || pObjectHeader->Revision < NDIS_SWITCH_PORT_PROPERTY_PARAMETERS_REVISION_1 || pObjectHeader->Size < NDIS_SIZEOF_NDIS_SWITCH_PORT_PROPERTY_PARAMETERS_REVISION_1) { status = NDIS_STATUS_NOT_SUPPORTED; *pComplete = TRUE; goto Cleanup; } status = Port_UpdateProperty((NDIS_SWITCH_PORT_PROPERTY_PARAMETERS*)pObjectHeader); if (status == NDIS_STATUS_NOT_SUPPORTED) { status = NDIS_STATUS_SUCCESS; } else { *pComplete = TRUE; goto Cleanup; } Cleanup: return status; } NDIS_STATUS _OnOidPortPropertyDelete(_In_ const NDIS_OBJECT_HEADER* pObjectHeader, _Out_ BOOLEAN* pComplete) { NDIS_STATUS status = NDIS_STATUS_SUCCESS; if (pObjectHeader->Type != NDIS_OBJECT_TYPE_DEFAULT || pObjectHeader->Revision < NDIS_SWITCH_PORT_PROPERTY_DELETE_PARAMETERS_REVISION_1 || pObjectHeader->Size < NDIS_SIZEOF_NDIS_SWITCH_PORT_PROPERTY_DELETE_PARAMETERS_REVISION_1) { status = NDIS_STATUS_NOT_SUPPORTED; *pComplete = TRUE; goto Cleanup; } *pComplete = Port_DeleteProperty((const NDIS_SWITCH_PORT_PROPERTY_DELETE_PARAMETERS*)pObjectHeader); Cleanup: return status; } NDIS_STATUS _OnOidPortCreate(_Inout_ OVS_GLOBAL_FORWARD_INFO* pForwardInfo, _In_ const NDIS_OBJECT_HEADER* pObjectHeader, _Inout_ BOOLEAN* pComplete) { NDIS_STATUS status = NDIS_STATUS_SUCCESS; if (pObjectHeader->Type != NDIS_OBJECT_TYPE_DEFAULT || pObjectHeader->Revision < NDIS_SWITCH_PORT_PARAMETERS_REVISION_1 || pObjectHeader->Size < NDIS_SIZEOF_NDIS_SWITCH_PORT_PARAMETERS_REVISION_1) { status = NDIS_STATUS_NOT_SUPPORTED; *pComplete = TRUE; goto Cleanup; } status = Port_Create(pForwardInfo, (PNDIS_SWITCH_PORT_PARAMETERS)pObjectHeader); if (status != NDIS_STATUS_SUCCESS) { *pComplete = TRUE; } Cleanup: return status; } NDIS_STATUS _OnOidPortUpdated(_In_ const OVS_GLOBAL_FORWARD_INFO* pForwardInfo, _In_ const NDIS_OBJECT_HEADER* pObjectHeader, _Inout_ BOOLEAN* pComplete) { NDIS_STATUS status = NDIS_STATUS_SUCCESS; if (pObjectHeader->Type != NDIS_OBJECT_TYPE_DEFAULT || pObjectHeader->Revision < NDIS_SWITCH_PORT_PARAMETERS_REVISION_1 || pObjectHeader->Size < NDIS_SIZEOF_NDIS_SWITCH_PORT_PARAMETERS_REVISION_1) { status = NDIS_STATUS_NOT_SUPPORTED; *pComplete = TRUE; goto Cleanup; } Port_Update(pForwardInfo, (PNDIS_SWITCH_PORT_PARAMETERS)pObjectHeader); Cleanup: return status; } NDIS_STATUS _OnOidPortTeardown(_Inout_ OVS_GLOBAL_FORWARD_INFO* pForwardInfo, _In_ const NDIS_OBJECT_HEADER* pObjectHeader, _Inout_ BOOLEAN* pComplete) { NDIS_STATUS status = NDIS_STATUS_SUCCESS; if (pObjectHeader->Type != NDIS_OBJECT_TYPE_DEFAULT || pObjectHeader->Revision < NDIS_SWITCH_PORT_PARAMETERS_REVISION_1 || pObjectHeader->Size < NDIS_SIZEOF_NDIS_SWITCH_PORT_PARAMETERS_REVISION_1) { status = NDIS_STATUS_NOT_SUPPORTED; *pComplete = TRUE; goto Cleanup; } Port_Teardown(pForwardInfo, (PNDIS_SWITCH_PORT_PARAMETERS)pObjectHeader); Cleanup: return status; } NDIS_STATUS _OnOidPortDelete(_Inout_ OVS_GLOBAL_FORWARD_INFO* pForwardInfo, _In_ const NDIS_OBJECT_HEADER* pObjectHeader, _Inout_ BOOLEAN* pComplete) { NDIS_STATUS status = NDIS_STATUS_SUCCESS; if (pObjectHeader->Type != NDIS_OBJECT_TYPE_DEFAULT || pObjectHeader->Revision < NDIS_SWITCH_PORT_PARAMETERS_REVISION_1 || pObjectHeader->Size < NDIS_SIZEOF_NDIS_SWITCH_PORT_PARAMETERS_REVISION_1) { status = NDIS_STATUS_NOT_SUPPORTED; *pComplete = TRUE; goto Cleanup; } Port_Delete(pForwardInfo, (PNDIS_SWITCH_PORT_PARAMETERS)pObjectHeader); Cleanup: return status; } NDIS_STATUS _OnOidPortFeatureStatusQuery(_In_ const OVS_GLOBAL_FORWARD_INFO* pForwardInfo, _In_ NDIS_OBJECT_HEADER* pObjectHeader, _Out_ BOOLEAN* pComplete, _Inout_ ULONG* pOutBytesNeeded) { NDIS_STATUS status = NDIS_STATUS_SUCCESS; if (pObjectHeader->Type != NDIS_OBJECT_TYPE_DEFAULT || pObjectHeader->Revision < NDIS_SWITCH_FEATURE_STATUS_PARAMETERS_REVISION_1 || pObjectHeader->Size < NDIS_SIZEOF_NDIS_SWITCH_FEATURE_STATUS_PARAMETERS_REVISION_1) { status = NDIS_STATUS_NOT_SUPPORTED; *pComplete = TRUE; goto Cleanup; } *pComplete = Port_QueryFeatureStatus(pForwardInfo, (NDIS_SWITCH_PORT_FEATURE_STATUS_PARAMETERS*)pObjectHeader, pOutBytesNeeded); if (*pOutBytesNeeded > 0) { status = NDIS_STATUS_BUFFER_TOO_SHORT; } Cleanup: return status; } _Use_decl_annotations_ NDIS_STATUS OID_GetPortPropertyUnsafe(OVS_SWITCH_INFO* pSwitchInfo, NDIS_SWITCH_PORT_ID portId, NDIS_SWITCH_PORT_PROPERTY_TYPE propertyType, NDIS_SWITCH_OBJECT_ID* pPropertyId, NDIS_SWITCH_PORT_PROPERTY_ENUM_PARAMETERS** ppPortPropertyEnumParameters) { NDIS_STATUS status = NDIS_STATUS_SUCCESS; NDIS_SWITCH_PORT_PROPERTY_ENUM_PARAMETERS propertyParameters; ULONG bytesNeeded = 0; NDIS_SWITCH_PORT_PROPERTY_ENUM_PARAMETERS* pOutputBuffer = NULL; USHORT outputBufferLength = sizeof(NDIS_SWITCH_PORT_PROPERTY_ENUM_PARAMETERS); propertyParameters.Header.Type = NDIS_OBJECT_TYPE_DEFAULT; propertyParameters.Header.Revision = NDIS_SWITCH_PORT_PROPERTY_ENUM_PARAMETERS_REVISION_1; propertyParameters.PortId = portId; propertyParameters.PropertyType = propertyType; propertyParameters.SerializationVersion = NDIS_SWITCH_OBJECT_SERIALIZATION_VERSION_1; if (pPropertyId != NULL) { NdisMoveMemory(&propertyParameters.PropertyId, pPropertyId, sizeof(NDIS_SWITCH_OBJECT_ID)); } else { OVS_CHECK(propertyType != NdisSwitchPortPropertyTypeCustom); } pOutputBuffer = KAlloc(outputBufferLength); if (pOutputBuffer == NULL) { status = NDIS_STATUS_RESOURCES; goto Cleanup; } do { if (bytesNeeded != 0) { KFree(pOutputBuffer); outputBufferLength = (USHORT)bytesNeeded; pOutputBuffer = KAlloc(outputBufferLength); if (pOutputBuffer == NULL) { status = NDIS_STATUS_RESOURCES; goto Cleanup; } } if (outputBufferLength >= sizeof(propertyParameters)) { pOutputBuffer->Header.Size = outputBufferLength; NdisMoveMemory(pOutputBuffer, &propertyParameters, sizeof(propertyParameters)); } status = OID_IssueOidRequest(pSwitchInfo, NdisRequestMethod, OID_SWITCH_PORT_PROPERTY_ENUM, pOutputBuffer, sizeof(propertyParameters), outputBufferLength, 0, 0, &bytesNeeded); } while (status == NDIS_STATUS_INVALID_LENGTH); Cleanup: if (status != NDIS_STATUS_SUCCESS) { KFree(pOutputBuffer); pOutputBuffer = NULL; } *ppPortPropertyEnumParameters = pOutputBuffer; return status; } _Use_decl_annotations_ NDIS_STATUS OID_GetPortArrayUnsafe(OVS_SWITCH_INFO* pSwitchInfo, NDIS_SWITCH_PORT_ARRAY** ppOutPortArray) { NDIS_STATUS status = NDIS_STATUS_SUCCESS; ULONG bytesNeeded = 0; NDIS_SWITCH_PORT_ARRAY* pPortArray = NULL; ULONG arrayLength = 0; do { KFree(pPortArray); if (bytesNeeded != 0) { arrayLength = bytesNeeded; pPortArray = KAlloc(arrayLength); if (pPortArray == NULL) { status = NDIS_STATUS_RESOURCES; goto Cleanup; } pPortArray->Header.Revision = NDIS_SWITCH_PORT_ARRAY_REVISION_1; pPortArray->Header.Type = NDIS_OBJECT_TYPE_DEFAULT; pPortArray->Header.Size = (USHORT)arrayLength; } status = OID_IssueOidRequest(pSwitchInfo, NdisRequestQueryInformation, OID_SWITCH_PORT_ARRAY, pPortArray, arrayLength, 0, 0, 0, &bytesNeeded); } while (status == NDIS_STATUS_INVALID_LENGTH); *ppOutPortArray = pPortArray; Cleanup: if (status != NDIS_STATUS_SUCCESS) { KFree(pPortArray); } return status; } /************************************ NIC OIDS ************************************/ NDIS_STATUS _OnOidNicCreate(_In_ OVS_GLOBAL_FORWARD_INFO* pForwardInfo, _In_ const NDIS_OBJECT_HEADER* pObjectHeader, _Inout_ BOOLEAN* pComplete) { NDIS_STATUS status = NDIS_STATUS_SUCCESS; if (pObjectHeader->Type != NDIS_OBJECT_TYPE_DEFAULT || pObjectHeader->Revision < NDIS_SWITCH_NIC_PARAMETERS_REVISION_1 || pObjectHeader->Size < NDIS_SIZEOF_NDIS_SWITCH_NIC_PARAMETERS_REVISION_1) { status = NDIS_STATUS_NOT_SUPPORTED; *pComplete = TRUE; goto Cleanup; } status = Nic_Create(pForwardInfo, (PNDIS_SWITCH_NIC_PARAMETERS)pObjectHeader); if (status != NDIS_STATUS_SUCCESS) { *pComplete = TRUE; } Cleanup: return status; } NDIS_STATUS _OnOidNicConnect(_In_ OVS_GLOBAL_FORWARD_INFO* pForwardInfo, _In_ const NDIS_OBJECT_HEADER* pObjectHeader, _Inout_ BOOLEAN* pComplete) { NDIS_STATUS status = NDIS_STATUS_SUCCESS; if (pObjectHeader->Type != NDIS_OBJECT_TYPE_DEFAULT || pObjectHeader->Revision < NDIS_SWITCH_NIC_PARAMETERS_REVISION_1 || pObjectHeader->Size < NDIS_SIZEOF_NDIS_SWITCH_NIC_PARAMETERS_REVISION_1) { status = NDIS_STATUS_NOT_SUPPORTED; *pComplete = TRUE; goto Cleanup; } Nic_Connect(pForwardInfo, (const NDIS_SWITCH_NIC_PARAMETERS*)pObjectHeader); Cleanup: return status; } NDIS_STATUS _OnOidNicUpdated(_In_ const OVS_GLOBAL_FORWARD_INFO* pForwardInfo, _In_ const NDIS_OBJECT_HEADER* pObjectHeader, _Inout_ BOOLEAN* pComplete) { NDIS_STATUS status = NDIS_STATUS_SUCCESS; if (pObjectHeader->Type != NDIS_OBJECT_TYPE_DEFAULT || pObjectHeader->Revision < NDIS_SWITCH_NIC_PARAMETERS_REVISION_1 || pObjectHeader->Size < NDIS_SIZEOF_NDIS_SWITCH_NIC_PARAMETERS_REVISION_1) { status = NDIS_STATUS_NOT_SUPPORTED; *pComplete = TRUE; goto Cleanup; } Nic_Update(pForwardInfo, (PNDIS_SWITCH_NIC_PARAMETERS)pObjectHeader); Cleanup: return status; } NDIS_STATUS _OnOidNicDisconnect(_In_ OVS_GLOBAL_FORWARD_INFO* pForwardInfo, _In_ const NDIS_OBJECT_HEADER* pObjectHeader, _Inout_ BOOLEAN* pComplete) { NDIS_STATUS status = NDIS_STATUS_SUCCESS; if (pObjectHeader->Type != NDIS_OBJECT_TYPE_DEFAULT || pObjectHeader->Revision < NDIS_SWITCH_NIC_PARAMETERS_REVISION_1 || pObjectHeader->Size < NDIS_SIZEOF_NDIS_SWITCH_NIC_PARAMETERS_REVISION_1) { status = NDIS_STATUS_NOT_SUPPORTED; *pComplete = TRUE; goto Cleanup; } Nic_Disconnect(pForwardInfo, (const NDIS_SWITCH_NIC_PARAMETERS*)pObjectHeader); Cleanup: return status; } NDIS_STATUS _OnOidNicDelete(_In_ OVS_GLOBAL_FORWARD_INFO* pForwardInfo, _In_ const NDIS_OBJECT_HEADER* pObjectHeader, _Inout_ BOOLEAN* pComplete) { NDIS_STATUS status = NDIS_STATUS_SUCCESS; if (pObjectHeader->Type != NDIS_OBJECT_TYPE_DEFAULT || pObjectHeader->Revision < NDIS_SWITCH_NIC_PARAMETERS_REVISION_1 || pObjectHeader->Size < NDIS_SIZEOF_NDIS_SWITCH_NIC_PARAMETERS_REVISION_1) { status = NDIS_STATUS_NOT_SUPPORTED; *pComplete = TRUE; goto Cleanup; } Nic_Delete(pForwardInfo, (const NDIS_SWITCH_NIC_PARAMETERS*)pObjectHeader); Cleanup: return status; } NDIS_STATUS _OnOidNicRestore(_In_ const OVS_GLOBAL_FORWARD_INFO* pForwardInfo, _In_ const NDIS_OBJECT_HEADER* pObjectHeader, _Inout_ BOOLEAN* pComplete) { NDIS_STATUS status = NDIS_STATUS_SUCCESS; ULONG bytesRestored = 0; if (pObjectHeader->Type != NDIS_OBJECT_TYPE_DEFAULT || pObjectHeader->Revision < NDIS_SWITCH_NIC_SAVE_STATE_REVISION_1 || pObjectHeader->Size < NDIS_SIZEOF_NDIS_SWITCH_NIC_SAVE_STATE_REVISION_1) { status = NDIS_STATUS_NOT_SUPPORTED; goto Cleanup; } status = Nic_Restore(pForwardInfo, (PNDIS_SWITCH_NIC_SAVE_STATE)pObjectHeader, &bytesRestored); if (status != NDIS_STATUS_SUCCESS) { *pComplete = TRUE; } else if (bytesRestored > 0) { *pComplete = TRUE; } Cleanup: return status; } NDIS_STATUS _OnOidNicRestoreComplete(_In_ const OVS_GLOBAL_FORWARD_INFO* pForwardInfo, _In_ const NDIS_OBJECT_HEADER* pObjectHeader, _Inout_ BOOLEAN* pComplete) { NDIS_STATUS status = NDIS_STATUS_SUCCESS; if (pObjectHeader->Type != NDIS_OBJECT_TYPE_DEFAULT || pObjectHeader->Revision < NDIS_SWITCH_NIC_SAVE_STATE_REVISION_1 || pObjectHeader->Size < NDIS_SIZEOF_NDIS_SWITCH_NIC_SAVE_STATE_REVISION_1) { status = NDIS_STATUS_NOT_SUPPORTED; *pComplete = TRUE; goto Cleanup; } Nic_RestoreComplete(pForwardInfo, (PNDIS_SWITCH_NIC_SAVE_STATE)pObjectHeader); Cleanup: return status; } NDIS_STATUS _OnOidNicSaveComplete(_In_ const OVS_GLOBAL_FORWARD_INFO* pForwardInfo, _In_ const NDIS_OBJECT_HEADER* pObjectHeader, _Inout_ BOOLEAN* pComplete) { NDIS_STATUS status = NDIS_STATUS_SUCCESS; if (pObjectHeader->Type != NDIS_OBJECT_TYPE_DEFAULT || pObjectHeader->Revision < NDIS_SWITCH_NIC_SAVE_STATE_REVISION_1 || pObjectHeader->Size < NDIS_SIZEOF_NDIS_SWITCH_NIC_SAVE_STATE_REVISION_1) { status = NDIS_STATUS_NOT_SUPPORTED; *pComplete = TRUE; goto Cleanup; } Nic_SaveComplete(pForwardInfo, (PNDIS_SWITCH_NIC_SAVE_STATE)pObjectHeader); Cleanup: return status; } NDIS_STATUS _OnOidNicRequest(_Inout_ OVS_SWITCH_INFO* pSwitchInfo, _In_ const NDIS_OBJECT_HEADER* pObjectHeader, _Inout_ BOOLEAN* pComplete, _Inout_ NDIS_OID_REQUEST* pOidRequest) { NDIS_STATUS status = NDIS_STATUS_SUCCESS; NDIS_SWITCH_NIC_OID_REQUEST* pNicOidRequest = NULL; NDIS_SWITCH_PORT_ID destPort = 0, sourcePort = 0; NDIS_SWITCH_NIC_INDEX destNic = 0, sourceNic = 0; NDIS_SWITCH_NIC_OID_REQUEST* pNewNicOidRequest = NULL; if (pObjectHeader->Type != NDIS_OBJECT_TYPE_DEFAULT || pObjectHeader->Revision < NDIS_SWITCH_NIC_OID_REQUEST_REVISION_1 || pObjectHeader->Size < NDIS_SIZEOF_NDIS_SWITCH_NIC_OID_REQUEST_REVISION_1) { status = NDIS_STATUS_NOT_SUPPORTED; *pComplete = TRUE; goto Cleanup; } pNicOidRequest = (PNDIS_SWITCH_NIC_OID_REQUEST)pObjectHeader; sourcePort = pNicOidRequest->SourcePortId; sourceNic = pNicOidRequest->SourceNicIndex; destPort = pNicOidRequest->DestinationPortId; destNic = pNicOidRequest->DestinationNicIndex; status = Nic_ProcessRequest(pNicOidRequest->OidRequest); if (status != NDIS_STATUS_SUCCESS) { *pComplete = TRUE; goto Cleanup; } if (sourcePort != pNicOidRequest->SourcePortId || sourceNic != pNicOidRequest->SourceNicIndex || destPort != pNicOidRequest->DestinationPortId || destNic != pNicOidRequest->DestinationNicIndex) { OVS_CHECK(pSwitchInfo->pOldNicRequest == NULL); pSwitchInfo->pOldNicRequest = pNicOidRequest; pNewNicOidRequest = (PNDIS_SWITCH_NIC_OID_REQUEST) KAlloc(sizeof(NDIS_SWITCH_NIC_OID_REQUEST)); if (pNewNicOidRequest == NULL) { status = NDIS_STATUS_RESOURCES; *pComplete = TRUE; goto Cleanup; } pNewNicOidRequest->Header = pNicOidRequest->Header; pNewNicOidRequest->SourcePortId = sourcePort; pNewNicOidRequest->SourceNicIndex = sourceNic; pNewNicOidRequest->DestinationPortId = destPort; pNewNicOidRequest->DestinationNicIndex = destNic; pNewNicOidRequest->OidRequest = pNicOidRequest->OidRequest; pOidRequest->DATA.METHOD_INFORMATION.InformationBuffer = pNewNicOidRequest; } Cleanup: return status; } NDIS_STATUS _OnOidNicSave(_In_ const OVS_GLOBAL_FORWARD_INFO* pForwardInfo, _In_ const NDIS_OBJECT_HEADER* pObjectHeader, _Inout_ BOOLEAN* pComplete, _Inout_ ULONG* pOutBytesNeeded) { NDIS_STATUS status = NDIS_STATUS_SUCCESS; ULONG bytesWritten = 0; ULONG bytesNeeded = 0; if (pObjectHeader->Type != NDIS_OBJECT_TYPE_DEFAULT || pObjectHeader->Revision < NDIS_SWITCH_NIC_SAVE_STATE_REVISION_1 || pObjectHeader->Size < NDIS_SIZEOF_NDIS_SWITCH_NIC_SAVE_STATE_REVISION_1) { status = NDIS_STATUS_NOT_SUPPORTED; *pComplete = TRUE; goto Cleanup; } status = Nic_Save(pForwardInfo, (PNDIS_SWITCH_NIC_SAVE_STATE)pObjectHeader, &bytesWritten, &bytesNeeded); if (status == NDIS_STATUS_SUCCESS && bytesWritten > 0) { *pComplete = TRUE; } else if (status == NDIS_STATUS_BUFFER_TOO_SHORT) { *pOutBytesNeeded = ((PNDIS_SWITCH_NIC_SAVE_STATE)pObjectHeader)->SaveDataOffset + bytesNeeded; *pComplete = TRUE; } else if (status != NDIS_STATUS_SUCCESS) { *pComplete = TRUE; } Cleanup: return status; } _Use_decl_annotations_ NDIS_STATUS OID_GetNicArrayUnsafe(OVS_SWITCH_INFO* pSwitchInfo, NDIS_SWITCH_NIC_ARRAY** ppNicArray) { NDIS_STATUS status = NDIS_STATUS_SUCCESS; ULONG bytesNeeded = 0; NDIS_SWITCH_NIC_ARRAY* pNicArray = NULL; ULONG arrayLength = 0; do { KFree(pNicArray); if (bytesNeeded != 0) { arrayLength = bytesNeeded; pNicArray = KAlloc(arrayLength); if (pNicArray == NULL) { status = NDIS_STATUS_RESOURCES; goto Cleanup; } pNicArray->Header.Revision = NDIS_SWITCH_PORT_ARRAY_REVISION_1; pNicArray->Header.Type = NDIS_OBJECT_TYPE_DEFAULT; pNicArray->Header.Size = (USHORT)arrayLength; } status = OID_IssueOidRequest(pSwitchInfo, NdisRequestQueryInformation, OID_SWITCH_NIC_ARRAY, pNicArray, arrayLength, 0, 0, 0, &bytesNeeded); } while (status == NDIS_STATUS_INVALID_LENGTH); *ppNicArray = pNicArray; Cleanup: if (status != NDIS_STATUS_SUCCESS) { KFree(pNicArray); } return status; } /************************************ OIDS ************************************/ _Use_decl_annotations_ NDIS_STATUS OID_ProcessSetOid(OVS_GLOBAL_FORWARD_INFO* pForwardInfo, NDIS_OID_REQUEST* pOidRequest, BOOLEAN* pComplete) { NDIS_STATUS status = NDIS_STATUS_SUCCESS; NDIS_OID oid = pOidRequest->DATA.SET_INFORMATION.Oid; NDIS_OBJECT_HEADER* pObjectHeader; *pComplete = FALSE; pObjectHeader = pOidRequest->DATA.SET_INFORMATION.InformationBuffer; if (pOidRequest->DATA.SET_INFORMATION.InformationBufferLength != 0 && pOidRequest->DATA.SET_INFORMATION.InformationBufferLength < sizeof(NDIS_OBJECT_HEADER)) { status = NDIS_STATUS_NOT_SUPPORTED; *pComplete = TRUE; goto Cleanup; } if (pOidRequest->DATA.SET_INFORMATION.InformationBufferLength == 0) { *pComplete = FALSE; goto Cleanup; } switch (oid) { case OID_SWITCH_PORT_PROPERTY_ADD: status = _OnOidPortPropertyAdd(pObjectHeader, pComplete); break; case OID_SWITCH_PORT_PROPERTY_UPDATE: status = _OnOidPortPropertyUpdate(pObjectHeader, pComplete); break; case OID_SWITCH_PORT_PROPERTY_DELETE: status = _OnOidPortPropertyDelete(pObjectHeader, pComplete); break; case OID_SWITCH_PORT_CREATE: status = _OnOidPortCreate(pForwardInfo, pObjectHeader, pComplete); break; case OID_SWITCH_PORT_UPDATED: status = _OnOidPortUpdated(pForwardInfo, pObjectHeader, pComplete); break; case OID_SWITCH_PORT_TEARDOWN: status = _OnOidPortTeardown(pForwardInfo, pObjectHeader, pComplete); break; case OID_SWITCH_PORT_DELETE: status = _OnOidPortDelete(pForwardInfo, pObjectHeader, pComplete); break; case OID_SWITCH_NIC_CREATE: status = _OnOidNicCreate(pForwardInfo, pObjectHeader, pComplete); break; case OID_SWITCH_NIC_CONNECT: status = _OnOidNicConnect(pForwardInfo, pObjectHeader, pComplete); break; case OID_SWITCH_NIC_UPDATED: status = _OnOidNicUpdated(pForwardInfo, pObjectHeader, pComplete); break; case OID_SWITCH_NIC_DISCONNECT: status = _OnOidNicDisconnect(pForwardInfo, pObjectHeader, pComplete); break; case OID_SWITCH_NIC_DELETE: status = _OnOidNicDelete(pForwardInfo, pObjectHeader, pComplete); break; case OID_SWITCH_NIC_RESTORE: _OnOidNicRestore(pForwardInfo, pObjectHeader, pComplete); break; case OID_SWITCH_NIC_SAVE_COMPLETE: _OnOidNicSaveComplete(pForwardInfo, pObjectHeader, pComplete); break; case OID_SWITCH_NIC_RESTORE_COMPLETE: _OnOidNicRestoreComplete(pForwardInfo, pObjectHeader, pComplete); break; default: break; } Cleanup: return status; } _Use_decl_annotations_ NDIS_STATUS OID_ProcessMethodOid(OVS_SWITCH_INFO* pSwitchInfo, NDIS_OID_REQUEST* pOidRequest, BOOLEAN* pComplete, ULONG* pOutBytesNeeded) { NDIS_STATUS status = NDIS_STATUS_SUCCESS; NDIS_OID oid = pOidRequest->DATA.SET_INFORMATION.Oid; NDIS_OBJECT_HEADER* pObjectHeader = NULL; *pComplete = FALSE; *pOutBytesNeeded = 0; pObjectHeader = pOidRequest->DATA.METHOD_INFORMATION.InformationBuffer; switch (oid) { case OID_SWITCH_PORT_FEATURE_STATUS_QUERY: status = _OnOidPortFeatureStatusQuery(pSwitchInfo->pForwardInfo, pObjectHeader, pComplete, pOutBytesNeeded); break; case OID_SWITCH_NIC_REQUEST: status = _OnOidNicRequest(pSwitchInfo, pObjectHeader, pComplete, pOidRequest); break; case OID_SWITCH_NIC_SAVE: status = _OnOidNicSave(pSwitchInfo->pForwardInfo, pObjectHeader, pComplete, pOutBytesNeeded); break; default: break; } return status; } _Use_decl_annotations_ NDIS_STATUS OID_IssueOidRequest(OVS_SWITCH_INFO* pSwitchInfo, NDIS_REQUEST_TYPE requestType, NDIS_OID oid, VOID* pInformationBuffer, ULONG informationBufferLength, ULONG outputBufferLength, ULONG methodId, UINT timeout, ULONG* pOutBytesNeeded) { NDIS_STATUS status = NDIS_STATUS_SUCCESS; OVS_OID_REQUEST* pOidRequest = NULL; NDIS_OID_REQUEST* pNdisOidRequest = NULL; ULONG bytesNeeded = 0; BOOLEAN asyncCompletion = FALSE; NdisInterlockedIncrement(&pSwitchInfo->pendingOidCount); if (pSwitchInfo->controlFlowState != OVS_SWITCH_ATTACHED) { status = NDIS_STATUS_CLOSING; goto Cleanup; } pOidRequest = (POVS_OID_REQUEST)KAlloc(sizeof(OVS_OID_REQUEST)); if (pOidRequest == NULL) { goto Cleanup; } NdisZeroMemory(pOidRequest, sizeof(OVS_OID_REQUEST)); pNdisOidRequest = &pOidRequest->ndisOidRequest; NdisInitializeEvent(&pOidRequest->reqEvent); pNdisOidRequest->Header.Type = NDIS_OBJECT_TYPE_OID_REQUEST; pNdisOidRequest->Header.Revision = NDIS_OID_REQUEST_REVISION_1; pNdisOidRequest->Header.Size = sizeof(NDIS_OID_REQUEST); pNdisOidRequest->RequestType = requestType; pNdisOidRequest->Timeout = timeout; switch (requestType) { case NdisRequestQueryInformation: pNdisOidRequest->DATA.QUERY_INFORMATION.Oid = oid; pNdisOidRequest->DATA.QUERY_INFORMATION.InformationBuffer = pInformationBuffer; pNdisOidRequest->DATA.QUERY_INFORMATION.InformationBufferLength = informationBufferLength; break; case NdisRequestSetInformation: pNdisOidRequest->DATA.SET_INFORMATION.Oid = oid; pNdisOidRequest->DATA.SET_INFORMATION.InformationBuffer = pInformationBuffer; pNdisOidRequest->DATA.SET_INFORMATION.InformationBufferLength = informationBufferLength; break; case NdisRequestMethod: pNdisOidRequest->DATA.METHOD_INFORMATION.Oid = oid; pNdisOidRequest->DATA.METHOD_INFORMATION.MethodId = methodId; pNdisOidRequest->DATA.METHOD_INFORMATION.InformationBuffer = pInformationBuffer; pNdisOidRequest->DATA.METHOD_INFORMATION.InputBufferLength = informationBufferLength; pNdisOidRequest->DATA.METHOD_INFORMATION.OutputBufferLength = outputBufferLength; break; default: NT_ASSERT(FALSE); break; } pNdisOidRequest->RequestId = (PVOID)g_extOidRequestId; status = NdisFOidRequest(pSwitchInfo->filterHandle, pNdisOidRequest); if (status == NDIS_STATUS_PENDING) { asyncCompletion = TRUE; NdisWaitEvent(&pOidRequest->reqEvent, 0); } else { OID_CompleteInternalOidRequest(pNdisOidRequest, status); } bytesNeeded = pOidRequest->bytesNeeded; status = pOidRequest->status; Cleanup: if (pOutBytesNeeded != NULL) { *pOutBytesNeeded = bytesNeeded; } if (!asyncCompletion) { NdisInterlockedDecrement(&pSwitchInfo->pendingOidCount); } KFree(pOidRequest); return status; }
32.822296
162
0.718566
831f056ff523e18b33cd622f4c90823903f3446f
6,069
h
C
gpac-0.7.1/src/compositor/mpeg4_grouping.h
xu5343/ffmpegtoolkit_CentOS7
974496c709a1c8c69034e46ae5ce7101cf03716f
[ "Apache-2.0" ]
null
null
null
gpac-0.7.1/src/compositor/mpeg4_grouping.h
xu5343/ffmpegtoolkit_CentOS7
974496c709a1c8c69034e46ae5ce7101cf03716f
[ "Apache-2.0" ]
null
null
null
gpac-0.7.1/src/compositor/mpeg4_grouping.h
xu5343/ffmpegtoolkit_CentOS7
974496c709a1c8c69034e46ae5ce7101cf03716f
[ "Apache-2.0" ]
1
2021-04-15T18:27:37.000Z
2021-04-15T18:27:37.000Z
/* * GPAC - Multimedia Framework C SDK * * Authors: Jean Le Feuvre * Copyright (c) Telecom ParisTech 2000-2012 * All rights reserved * * This file is part of GPAC / Scene Compositor sub-project * * GPAC is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * GPAC is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; see the file COPYING. If not, write to * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. * */ #ifndef MPEG4_GROUPING_H #define MPEG4_GROUPING_H #include <gpac/internal/compositor_dev.h> enum { GROUP_HAS_SENSORS = 1, GROUP_SKIP_CULLING = 1<<1, GROUP_HAS_LIGHTS = 1<<2, GROUP_IS_ANCHOR = 1<<3, /*set if group has been detected as a good candidate for caching*/ GROUP_IS_CACHABLE = 1<<4, /*set if group is cached*/ GROUP_IS_CACHED = 1<<5, GROUP_PERMANENT_CACHE = 1<<6, }; /*this is only used for type-casting of the common 2D/3D stacks to get the flags*/ typedef struct { u32 flags; } BaseGroupingStack; #ifdef GF_SR_USE_VIDEO_CACHE #define GROUPING_NODE_STACK_2D \ u32 flags; \ GF_Rect bounds; \ struct _group_cache *cache; \ u16 traverse_time; \ u8 changed; \ u8 nb_stats_frame; \ /*cache candidates are sorted by priority*/ \ Fixed priority; \ /*size of offscreen cache in kbytes*/ \ u32 cached_size; \ /*number of objects in cache - for debug purposes only*/ \ u32 nb_objects; \ #else #define GROUPING_NODE_STACK_2D \ u32 flags; \ GF_Rect bounds; \ #endif #define GROUPING_MPEG4_STACK_2D \ GROUPING_NODE_STACK_2D \ GF_List *sensors; \ typedef struct _mpeg4_group2d { GROUPING_MPEG4_STACK_2D } GroupingNode2D; /*traverse all children of the node */ void group_2d_traverse(GF_Node *node, GroupingNode2D *group, GF_TraverseState *tr_state); /*traverse all children of the node with the given traversing order*/ void group_2d_traverse_with_order(GF_Node *node, GroupingNode2D *group, GF_TraverseState *tr_state, u32 *positions); #ifdef GF_SR_USE_VIDEO_CACHE /*traverse the grouping node - returns 1 if the group is cached, in which case children nodes should not need to be traversed in SORT mode - this function takes care of zoom changes & stats resetup if needed*/ Bool group_2d_cache_traverse(GF_Node *node, GroupingNode2D *group, GF_TraverseState *tr_state); /*record the traversal information and turn cache on if possible*/ void group_2d_cache_evaluate(GF_Node *node, GroupingNode2D *group, GF_TraverseState *tr_state, struct _drawable_context *first_child, Bool skip_first_child, u32 last_cache_idx); #endif void group_2d_destroy(GF_Node *node, GroupingNode2D *group); /*for SVG <g> only when using offscreen group caches*/ void group_2d_destroy_svg(GF_Node *node, GroupingNode2D *group); #ifndef GPAC_DISABLE_3D /* @children: pointer to children field @sensors: cached list of sensors at this level, NULL if none @lights: cached list of lights (local and global) at this level, NULL if none @bbox: bounding box of sub-tree @dont_cull: if set, traversing always occur (needed for audio subgraph) */ #define GROUPING_NODE_STACK_3D \ u32 flags; \ GF_BBox bbox; \ typedef struct _parent_node_3d { GROUPING_NODE_STACK_3D } GroupingNode; GroupingNode *group_3d_new(GF_Node *node); void group_3d_delete(GF_Node *node); /*traverse all children of the node */ void group_3d_traverse(GF_Node *n, GroupingNode *group, GF_TraverseState *tr_state); #endif /* * ParentNode (Form, Layout, PathLayout, ...) tools */ typedef struct { /*the associated child (can be a group or a shape)*/ GF_Node *child; /*child bounds before and after placement*/ GF_Rect original, final; /*layout run-time scroll*/ Fixed scroll_x, scroll_y; /*if text node, ascent and descent of the text is stored for baseline alignment*/ Fixed ascent, descent; u32 text_split_idx; /*discard_type 0: not discardable, 1 disardable, 2 line break at the end of the group*/ u8 text_type; } ChildGroup; #define PARENT_MPEG4_STACK_2D \ GROUPING_MPEG4_STACK_2D \ /*list of ChildGroup drawn (can be fully transparents) - used for post placement*/ \ GF_List *groups; typedef struct _parent_node_2d { PARENT_MPEG4_STACK_2D } ParentNode2D; /*performs stack init (allocate all base stuff of stack)*/ void parent_node_setup(ParentNode2D *ptr); /*performs stack init (frees all base stuff of stack, but not the stack)*/ void parent_node_predestroy(ParentNode2D *gr); /*reset children list*/ void parent_node_reset(ParentNode2D *gr); /*creates a new group for the given node. If the node is NULL, the previous group's node is used*/ void parent_node_start_group(ParentNode2D *group, GF_Node *n, Bool discardable); /*sets the current group bounds*/ void parent_node_end_group(ParentNode2D *group, GF_Rect *bounds); /*sets the current group bounds + font properties*/ void parent_node_end_text_group(ParentNode2D *group, GF_Rect *bounds, Fixed ascent, Fixed descent, u32 split_text_idx); /*traverse the parent group's children for bounds compute. Starts a new ChildGroup for each child*/ void parent_node_traverse(GF_Node *node, ParentNode2D *group, GF_TraverseState *tr_state); /*updates the matrix (translations only, computed between final and original bounds) and traverse the given child*/ void parent_node_child_traverse(ChildGroup *cg, GF_TraverseState *tr_state); /*updates the matrix (position assigned by caller) and traverse the given child. Do not traverse if the matrix is NULL*/ void parent_node_child_traverse_matrix(ChildGroup *cg, GF_TraverseState *tr_state, GF_Matrix2D *mat2D); #endif /*MPEG4_GROUPING_H*/
30.807107
177
0.756138
7ed88aca80c5b6ca4a96b9733f26febe57072049
10,087
c
C
Tweaks/sm64ios/sm64ios/Applications/sm64ios.app/textures/grass/wf_textures.09800.rgba16.inc.c
xxthepersonx/repo
c7f535be4a04a7a1c3117566941d7ffc9c0812fe
[ "MIT" ]
null
null
null
Tweaks/sm64ios/sm64ios/Applications/sm64ios.app/textures/grass/wf_textures.09800.rgba16.inc.c
xxthepersonx/repo
c7f535be4a04a7a1c3117566941d7ffc9c0812fe
[ "MIT" ]
null
null
null
Tweaks/sm64ios/sm64ios/Applications/sm64ios.app/textures/grass/wf_textures.09800.rgba16.inc.c
xxthepersonx/repo
c7f535be4a04a7a1c3117566941d7ffc9c0812fe
[ "MIT" ]
null
null
null
0x39,0xCD,0x5A,0x53,0x29,0x9,0x31,0x8B,0x52,0x51,0x21,0x7,0x31,0x49,0x5A,0x93,0x4A,0xF,0x5A,0x93,0x18,0x41,0x7B,0x9D,0x62,0xD5,0x18,0x85,0x31,0x4B,0x6A,0xD5,0x18,0xC7,0x83,0x59,0xAC,0xE7,0x7B,0x5B,0xBD,0xAF,0x39,0x8B,0x21,0x7,0x4A,0xF,0x5A,0x93,0x62,0xD3,0x4A,0xF,0x31,0x8D,0x5A,0x93,0x39,0x49,0x39,0x8D,0x39,0xCF,0x8C,0x1D,0x4A,0xD,0x21,0x7,0x29,0x9,0x52,0x4F,0x29,0x7,0x7B,0x99,0x62,0xD3,0x18,0xC5,0x39,0x8D,0x31,0x49,0xAD,0x29,0xB5,0x6B,0x41,0xCD,0x18,0xC5,0x62,0x93,0x21,0x9,0x39,0x8D,0x83,0x9B,0x8C,0x21,0xB5,0x6D,0x41,0xCB,0x21,0x9,0x39,0xCD,0x31,0x8B,0x49,0xCD,0x5A,0x93,0x62,0x95,0x5A,0x51,0x4A,0xD,0x41,0xCD,0x41,0xCD,0x21,0x7,0x41,0xCD,0x41,0xCD,0x20,0xC7,0x6A,0xD5,0x4A,0xF,0x39,0x8D,0x4A,0xD,0x29,0x49,0x18,0xC5,0x5A,0x93,0xB5,0xAF,0xAC,0xE9,0xBD,0xAD,0x62,0x93,0x31,0x8B,0x29,0x4B,0x21,0x9,0x6A,0xD3,0xA4,0xE9,0xAD,0x2B,0x52,0xD,0x20,0xC5,0x31,0x8B,0x4A,0xF,0x39,0x8B,0x29,0x49,0x62,0x93,0x41,0xCD,0x31,0x8D,0x39,0x8D,0x39,0x8D,0x29,0x9,0x31,0x4B,0x8C,0x1F,0x5A,0x93,0x4A,0xF,0x21,0x7,0x31,0x8B,0x39,0x8B,0x20,0xC7,0x31,0x49,0xA4,0xE3,0xB5,0x29,0xA4,0xE5,0xC5,0xAD,0xAD,0x27,0x21,0x7,0x5A,0x51,0x31,0x49,0x39,0x8B,0xAD,0x2B,0xC6,0x33,0x73,0x17,0x20,0xC5,0x52,0x51,0x52,0xF,0x31,0x4B,0x31,0x8B,0x39,0x8D,0x39,0x8B,0x29,0x4B,0x31,0x8D,0x31,0x8D,0x20,0xC7,0x6A,0xD7,0x52,0x51,0x18,0xC5,0x29,0x9,0x21,0x7,0x62,0x93,0x6B,0x17,0x29,0x7,0x4A,0xF,0x41,0xCD,0x29,0x49,0x39,0x8B,0x41,0xCD,0x41,0xCD,0x6A,0xD5,0x7B,0x17,0x20,0xC5,0x20,0xC7,0x21,0x7,0x9C,0xA3,0xA4,0xA3,0x73,0x17,0x5A,0x93,0x4A,0x11,0x41,0xCF,0x29,0x49,0x4A,0x11,0x94,0x1D,0x73,0x17,0x6B,0x17,0x7B,0x59,0x39,0x8B,0x6B,0x19,0x52,0x51,0x39,0x8B,0x21,0x9,0x20,0xC5,0x94,0x1F,0x6B,0x59,0x5A,0x95,0x62,0xD5,0x18,0xC5,0x31,0x49,0x29,0x9,0x31,0x49,0x29,0x9,0x31,0x4B,0x73,0x19,0x18,0xC5,0x31,0x4B,0x31,0x8B,0x52,0xF,0x29,0x49,0x31,0x49,0x29,0x49,0x39,0x8D,0x73,0x17,0x31,0x4B,0x4A,0xD,0x39,0x8B,0x39,0x8D,0x29,0x4B,0x4A,0xF,0x7B,0x9D,0x18,0x83,0x29,0x9,0x73,0x59,0x5A,0x93,0x29,0x7,0x83,0xDD,0x18,0xC5,0x21,0x7,0x5A,0x95,0x29,0x9,0x41,0xCF,0x39,0xCD,0x41,0xCD,0x39,0x8D,0x31,0x8B,0x9C,0xA3,0x49,0xCD,0x39,0x8D,0x62,0x93,0x29,0x9,0x29,0x4B,0x52,0x51,0x39,0x8B,0x31,0x8B,0x39,0x8D,0x73,0x17,0x7B,0x99,0x39,0x8D,0x31,0x8D,0x21,0x4B,0x62,0x95,0x4A,0x11,0x29,0x9,0x20,0xC7,0x20,0xC7,0x5A,0x93,0x7B,0x59,0x39,0x8B,0x20,0xC7,0x31,0x49,0x62,0x95,0x20,0xC7,0x31,0x49,0x31,0x49,0x29,0x49,0x31,0x49,0x39,0x8D,0x31,0x8B,0x62,0xD5,0x5A,0x93,0x52,0x51,0x4A,0xF,0x21,0x9,0x5A,0x93,0x39,0x8B,0x39,0xCD,0x5A,0x51,0x52,0x51,0x83,0xDD,0x6A,0xD3,0x73,0x59,0x5A,0x95,0x5A,0x93,0x20,0xC7,0x7B,0x5B,0x52,0xF,0x29,0x7,0x18,0x85,0x41,0xCD,0x52,0x51,0x39,0x8B,0x18,0xC5,0x7B,0x9B,0x4A,0xF,0x5A,0x93,0x73,0x17,0x83,0x9D,0x4A,0xF,0x83,0xDD,0x21,0x7,0x39,0x8B,0x52,0x51,0x41,0xCF,0x7B,0x99,0x5A,0x93,0x5A,0x93,0x6B,0x15,0x62,0xD5,0x52,0x51,0x29,0x4B,0x52,0x51,0x29,0x7,0x29,0x4B,0x62,0xD5,0x41,0xCD,0x41,0xCD,0x52,0x51,0x4A,0xF,0x94,0x5F,0x62,0x93,0x18,0x83,0x41,0xCD,0x62,0xD5,0x4A,0xF,0x83,0xDD,0x41,0xCD,0x31,0x8B,0x31,0x4B,0x52,0x51,0x5A,0x93,0x6B,0x17,0x41,0x8B,0x39,0x8B,0x8B,0xDF,0x39,0x8D,0x21,0x7,0x83,0xDF,0x7B,0x57,0x21,0x9,0x39,0xCD,0x41,0xCF,0x39,0xCD,0x52,0x53,0x41,0xCD,0x29,0x8D,0x5A,0x93,0x39,0x8D,0x6B,0x19,0x5A,0x93,0x18,0x43,0x4A,0xF,0x6B,0x15,0x41,0x8B,0x5A,0x93,0x20,0xC7,0x31,0x49,0x5A,0x93,0x39,0xCB,0x31,0x8B,0x31,0x8B,0x29,0x4B,0x83,0xDD,0x29,0x9,0x41,0xCF,0x62,0xD5,0x7B,0x59,0x41,0xCD,0x31,0x4B,0x41,0xCF,0x8B,0xDD,0x21,0x7,0x21,0x9,0x39,0xCF,0x39,0xCF,0x52,0x53,0x52,0xF,0x39,0xCF,0x52,0x4F,0x39,0xCF,0x21,0x7,0x52,0x51,0x31,0x49,0x5A,0x91,0x20,0x83,0x94,0x61,0x5A,0x93,0x21,0x7,0x29,0x4B,0x41,0x8D,0x39,0x8D,0x29,0x4B,0x31,0x8B,0x39,0x8D,0x83,0x99,0x29,0x49,0x31,0x8B,0x31,0x8D,0x4A,0xF,0x52,0x4F,0x39,0xCD,0x29,0x49,0x94,0x63,0xD6,0x75,0x62,0xD3,0x39,0x8B,0x31,0x4B,0x42,0xF,0x52,0x4F,0x4A,0xF,0x39,0x8D,0x39,0xCF,0x18,0x83,0x41,0xCD,0x73,0x17,0x21,0x7,0x31,0x8B,0x62,0xD7,0x39,0x8B,0x21,0x7,0x39,0x8B,0x4A,0xF,0x52,0xF,0x5A,0x51,0x73,0x15,0x5A,0x93,0x52,0x51,0x5A,0x51,0x31,0x8B,0x41,0xCD,0x4A,0xF,0x62,0x93,0x41,0xCF,0x31,0x8B,0x39,0xCD,0xDE,0xF7,0x83,0x9B,0x62,0xD5,0x6B,0x17,0x31,0x8D,0x5A,0x51,0x49,0xCD,0x42,0xF,0x6B,0x17,0x41,0xCD,0x29,0x7,0x39,0xCD,0x18,0xC5,0x62,0x93,0x29,0x7,0x73,0x17,0x39,0x8B,0x20,0xC7,0x4A,0xF,0x62,0xD3,0x5A,0x91,0x41,0xCD,0x39,0x8D,0x29,0x4B,0x6B,0x17,0x49,0xCD,0x31,0x8D,0x41,0xCD,0x5A,0x51,0x39,0x8D,0x39,0x8D,0x21,0x9,0xCE,0x33,0x41,0xCD,0x21,0x9,0x5A,0x93,0x5A,0x95,0x94,0x63,0x6B,0x17,0x41,0xCF,0x4A,0x11,0xAD,0x29,0x8C,0x1F,0x62,0xD5,0x18,0xC5,0x41,0xCD,0x18,0x85,0x52,0x51,0xA4,0xA1,0x41,0xCD,0x62,0x93,0x31,0x4B,0x41,0xCD,0x41,0xCD,0x39,0xCD,0x52,0x51,0x5A,0x51,0x72,0xD5,0x39,0x8D,0x39,0x8D,0x5A,0x51,0x39,0xCD,0x5A,0x93,0x31,0x8D,0xAC,0xE7,0x49,0xCD,0x29,0x4B,0x41,0xCD,0x39,0xCD,0x42,0xF,0x52,0xF,0x31,0x8D,0x41,0xCF,0x94,0x1F,0x9C,0xA5,0xA4,0xE7,0x6B,0x17,0x5A,0x91,0x31,0x8B,0x21,0x7,0x41,0xCF,0x39,0x8D,0x6B,0x17,0x39,0xCD,0x5A,0x93,0x39,0xCD,0x39,0xCD,0x52,0x51,0x29,0x7,0x4A,0xF,0x62,0x93,0x21,0x9,0x62,0xD5,0x8B,0xDB,0x4A,0xF,0x29,0x49,0x52,0x93,0x7B,0x57,0x31,0x8D,0x41,0xCF,0x39,0xCF,0x5A,0xD7,0x5A,0x51,0x39,0xCF,0x4A,0x11,0x8B,0xDF,0x8B,0xDF,0xAC,0xE9,0xBD,0xAF,0x39,0x49,0x4A,0xF,0x52,0xF,0x39,0x8D,0x31,0x4B,0x29,0x7,0x41,0xCF,0x62,0x93,0x31,0x49,0x62,0xD7,0x5A,0x91,0x39,0x8D,0x31,0x8B,0x52,0x11,0x41,0xCD,0x62,0xD5,0x41,0x8B,0x39,0x8D,0x39,0xCF,0x39,0xCF,0x73,0x17,0x73,0x57,0x52,0x51,0x31,0x8F,0x83,0xDD,0x52,0xD,0x41,0xCF,0x4A,0x11,0x94,0x21,0xA4,0xE9,0xAC,0xE7,0x4A,0xD,0x18,0xC7,0x21,0x9,0x62,0x93,0x41,0xCD,0x39,0x8B,0x29,0x49,0x8B,0xDD,0x73,0x57,0x5A,0x93,0x41,0xCD,0x41,0xCD,0x7B,0x59,0x73,0x17,0x62,0xD5,0x83,0xDD,0x42,0xF,0x29,0x4B,0x42,0xF,0x39,0xCF,0x6B,0x15,0x39,0x8B,0x39,0xCF,0x62,0x93,0x5A,0x93,0x62,0xD5,0x41,0xCD,0x31,0x8D,0x39,0xCF,0x39,0x8B,0xC5,0xEF,0x41,0x8D,0x18,0x83,0x41,0xCD,0x39,0x8D,0x5A,0x93,0x39,0x4B,0x31,0x4B,0x29,0x49,0xB5,0x29,0xA4,0xE9,0x94,0x21,0x7B,0x57,0x21,0x7,0x31,0x8B,0x39,0x8D,0x31,0x8B,0x6B,0x17,0x73,0x17,0x62,0x93,0x31,0x8B,0x39,0x8D,0x73,0x15,0x39,0xCD,0x39,0x8D,0x4A,0x53,0x6A,0xD5,0x39,0xCF,0x6A,0xD5,0x41,0xCD,0x31,0x8B,0x18,0x83,0x62,0xD7,0x4A,0xF,0x21,0x9,0x39,0x8D,0x4A,0xF,0x4A,0xF,0x31,0x8D,0x29,0x49,0x41,0xCD,0xBD,0x6D,0x9C,0x65,0xAD,0x29,0xBD,0xAF,0x31,0x49,0x39,0xCD,0x39,0x8D,0x5A,0x93,0x52,0xD,0x29,0x9,0x6B,0x17,0x7B,0x9B,0x62,0xD5,0x49,0xCD,0x39,0xCF,0x39,0x8D,0x73,0x19,0x52,0x51,0x29,0x4B,0xBD,0x6B,0xBD,0xAF,0xB5,0x6B,0x21,0x9,0x39,0x8D,0x83,0xDD,0x41,0xCD,0x29,0x49,0x52,0x51,0x39,0x8B,0x39,0xCD,0x21,0x7,0x5A,0x91,0xB5,0x6D,0x94,0x21,0xAD,0x2B,0xAC,0xE7,0x20,0xC7,0x5A,0x51,0x31,0x4B,0x6B,0x17,0x39,0x8B,0x41,0xCF,0x39,0x8B,0x4A,0xF,0x8C,0x21,0x5A,0x51,0x39,0x8D,0x39,0x8D,0x6A,0xD5,0x31,0x4B,0x19,0xB,0x94,0x61,0xD6,0x75,0x9C,0xA5,0x31,0x4B,0x52,0x51,0x29,0x49,0x52,0x11,0x4A,0xF,0x41,0xCD,0x31,0x49,0x39,0xCD,0x21,0x9,0x94,0x1F,0xC6,0x33,0xB5,0x6B,0xBD,0xAF,0x94,0x61,0x20,0xC7,0x52,0x53,0x5A,0x93,0x52,0xF,0x21,0x9,0x39,0xCD,0x39,0x8D,0x29,0x4B,0x29,0x4B,0x6B,0x17,0x94,0x61,0x73,0x5B,0x83,0xDB,0x6A,0xD5,0x4A,0x51,0x7B,0x99,0x7B,0x9B,0x21,0x9,0x4A,0xF,0x39,0x8D,0x21,0x9,0x42,0x11,0x7B,0xDF,0x52,0x53,0x41,0xCF,0x29,0x49,0x39,0xCD,0x9C,0x61,0x9C,0xA3,0x41,0xCD,0x21,0x7,0x31,0x4B,0x52,0x53,0x83,0xDF,0x94,0x1F,0x62,0x93,0x52,0x51,0x52,0x51,0x6A,0xD5,0x7B,0x57,0x6A,0xD5,0x7B,0x9B,0x4A,0xF,0x31,0x8D,0x41,0xCF,0x52,0x51,0x62,0xD7,0x4A,0xF,0x29,0x8D,0x42,0x11,0x42,0xF,0x29,0x9,0x31,0x4B,0x52,0x53,0x62,0x93,0x52,0x11,0x31,0x4B,0x52,0xF,0x83,0xDD,0x29,0x9,0x5A,0x93,0x4A,0xF,0x20,0xC7,0x39,0xCD,0x52,0x53,0x5A,0x51,0x21,0x9,0x29,0x4B,0x83,0x9D,0x6B,0x15,0x52,0x51,0x41,0xCF,0x31,0x8D,0x62,0xD5,0x39,0x8D,0x41,0xCF,0x42,0xF,0x31,0x8D,0x52,0x95,0x4A,0xF,0x3A,0x11,0x4A,0x11,0x52,0x95,0x42,0xF,0x21,0x7,0x31,0x8B,0x62,0x95,0x83,0xDB,0x29,0x9,0x52,0x53,0x52,0x51,0x29,0x49,0x39,0xCD,0x83,0xDB,0x4A,0xF,0x52,0x51,0x41,0xCF,0x6A,0xD5,0x31,0x8B,0x39,0x8D,0x5A,0x53,0x4A,0xF,0x31,0x8D,0x39,0xCF,0x52,0x53,0x62,0x93,0x39,0xCD,0x4A,0x11,0x4A,0x11,0x39,0xCD,0x62,0xD7,0x5A,0x51,0x4A,0x53,0x52,0x93,0x18,0xC7,0x73,0x59,0x7B,0x5B,0x18,0x83,0x52,0x51,0x39,0x8B,0x52,0x53,0x83,0xDF,0x21,0x7,0x39,0x8D,0x21,0x7,0x7B,0x9D,0x73,0x19,0x31,0x49,0x52,0x51,0x62,0xD5,0x39,0x8D,0x39,0x8D,0x52,0x53,0x6B,0x17,0x39,0x8D,0x39,0xCD,0x6B,0x19,0x52,0x11,0x39,0xCF,0x4A,0x11,0x4A,0x11,0x39,0x8D,0x62,0xD9,0x62,0x93,0x73,0x59,0x5A,0x95,0x20,0x85,0x83,0xDD,0xBD,0xB1,0x83,0x9F,0x42,0xF,0x18,0xC7,0x20,0xC7,0x8B,0xDF,0x52,0x53,0x29,0x7,0x5A,0x93,0x94,0x63,0x52,0x53,0x29,0x9,0x4A,0x11,0x62,0xD5,0x31,0x8B,0x41,0xCD,0x7B,0x5D,0x73,0x59,0x41,0xCD,0x31,0x8D,0x83,0xDF,0x31,0x8B,0x42,0xF,0x4A,0x11,0x4A,0x11,0x39,0x8D,0x62,0xD5,0x29,0x49,0x21,0x7,0x29,0x8D,0x41,0xCF,0x9C,0xA3,0xA4,0xA7,0xBD,0xF1,0x31,0x49,0x4A,0xF,0x73,0x19,0x62,0x93,0x6B,0x19,0x52,0x11,0x4A,0xF,0x29,0x9,0x73,0x17,0x5A,0x95,0x31,0x8D,0x5A,0x93,0x29,0x4B,0x7B,0x9B,0x39,0x8B,0x62,0xD5,0x4A,0xF,0x42,0x11,0x9C,0xA5,0x39,0x8D,0x31,0x8D,0x41,0xCF,0x4A,0x11,0x29,0x4B,0x8C,0x21,0xC5,0xEF,0x83,0x9D,0x4A,0x53,0x6B,0x5D,0xB5,0x2B,0xB5,0x2B,0x6A,0xD7,0x41,0xCD,0x52,0x51,0x52,0xF,0x29,0x49,0x31,0x4B,0x62,0x93,0x31,0x8B,0x31,0x4B,0x83,0xDF,0x83,0xDD,0x41,0xCD,0x39,0x8B,0x62,0xD7,0x5A,0x93,0x29,0x49,0x5A,0x95,0x6B,0x15,0x5A,0x53,0x41,0xCF,0x94,0x21,0x6A,0xD7,0x42,0x11,0x39,0xCF,0x21,0x9,0x8C,0x21,0xB5,0x6F,0xC6,0x33,0x4A,0xF,0x21,0x7,0xA4,0xE9,0x8B,0xDF,0x18,0x41,0x21,0x9,0x29,0x4B,0x52,0xF,0x31,0x8B,0x41,0xCF,0x52,0xF,0x21,0x9,0x39,0x8D,0x73,0x17,0x31,0x4B,0x7B,0x9D,0x94,0x21,0x62,0x93,0x39,0x8D,0x39,0xCF,0x4A,0x11,0xB5,0xAF,0x49,0xCD,0x21,0x4B,0x6A,0xD5,0x52,0x53,0x83,0x9B,0x7B,0x59,0x29,0x4B,0x8C,0x21,0x9C,0xE9,0xB5,0x6D,0x21,0x9,0x73,0x5B,0x31,0x49,0x4A,0x51,0x63,0x19,0x20,0xC7,0x5A,0x93,0x52,0x51,0x21,0x49,0x4A,0xF,0x83,0xDD,0x41,0xCF,0x52,0x51,0x49,0xCD,0x31,0x8B,0x41,0xCF,0x73,0x59,0x29,0x9,0x41,0xCF,0x41,0xCF,0x4A,0xF,0x7B,0x9B,0x29,0x49,0x42,0x11,0x62,0xD3,0x39,0x8D,0x39,0xCF,0x5A,0x95,0x52,0x51,0xAD,0x29,0xBD,0xB1,0xB5,0x6D,0x21,0x7,0x49,0xCF,0x18,0xC5,0x29,0x9,0x7B,0x9B,0x62,0xD5,0x62,0xD7,0x4A,0xF,0x42,0xF,0x52,0x53,0x7B,0x5B,0x73,0x19,0x83,0xDF,0x29,0x49,0x4A,0xF,0x39,0x8D,0x52,0x51,0x62,0x93,0x39,0xCF,0x39,0x8D,0x73,0x19,0x4A,0xF,0x41,0xCF,0x4A,0x11,0x6A,0xD5,0x4A,0xF,0x52,0x53,0x39,0xCF,0x3A,0x11,0x94,0x1F,0x8C,0x21,0x9C,0xA7,0x42,0xF,
5,043.5
10,086
0.796867
7d218dfd7d1f938ed3208fdc46b3d133bb385c47
352
h
C
src/utility/bitmaps.h
influenza/c8
2cc34f384cedce9626e76be8ea22e5967db1b69b
[ "BSD-3-Clause" ]
null
null
null
src/utility/bitmaps.h
influenza/c8
2cc34f384cedce9626e76be8ea22e5967db1b69b
[ "BSD-3-Clause" ]
null
null
null
src/utility/bitmaps.h
influenza/c8
2cc34f384cedce9626e76be8ea22e5967db1b69b
[ "BSD-3-Clause" ]
null
null
null
#ifndef BITMAPS_H_ #define BITMAPS_H_ #include "globals.h" typedef struct { size_t width; size_t height; char depth; char has_alpha; // Caller must free this! GLfloat* bmp_data; } bmp_info; typedef struct { sd_result (* read_bitmap)(const char* resource_path, bmp_info** out); } bitmaps_struct; extern bitmaps_struct bitmaps; #endif
16
71
0.732955
e0f94ddbe87ed42e89ce95683e6a7b162f9b7e8b
14,593
c
C
src/server/security-server-cookie.c
tizenorg/framework.security.security-server
37a81afa64c4c8f022af8d7977cc1cb69a8ca842
[ "Apache-2.0" ]
null
null
null
src/server/security-server-cookie.c
tizenorg/framework.security.security-server
37a81afa64c4c8f022af8d7977cc1cb69a8ca842
[ "Apache-2.0" ]
null
null
null
src/server/security-server-cookie.c
tizenorg/framework.security.security-server
37a81afa64c4c8f022af8d7977cc1cb69a8ca842
[ "Apache-2.0" ]
null
null
null
/* * security-server * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd All Rights Reserved * * Contact: Bumjin Im <bj.im@samsung.com> * * 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 <stdio.h> #include <stdlib.h> #include <sys/stat.h> #include <errno.h> #include <unistd.h> #include <string.h> #include <sys/types.h> #include <fcntl.h> #include <sys/smack.h> #include "security-server-cookie.h" /* Delete useless cookie item * * then connect prev and next */ int free_cookie_item(cookie_list *cookie) { if(cookie->path != NULL) free(cookie->path); if(cookie->permissions != NULL) free(cookie->permissions); if(cookie->smack_label != NULL) free(cookie->smack_label); if(cookie->prev != NULL) cookie->prev->next = cookie->next; if(cookie->next != NULL) cookie->next->prev = cookie->prev; free(cookie); cookie = NULL; return 0; } /* Cut the link of the current cookie item and connect previous link and next line * * That is remove a cookie item * * Returns next cookie item if exist, NULL for no more cookie item */ cookie_list *delete_cookie_item(cookie_list *cookie) { cookie_list *retval = NULL; if(cookie == NULL) { SEC_SVR_DBG("%s", "Cannot delete null cookie"); return retval; } /* Reconnect cookie item */ if(cookie->next != NULL) { cookie->prev->next = cookie->next; cookie->next->prev = cookie->prev; retval = cookie->next; } else { cookie->prev->next = NULL; } free_cookie_item(cookie); return retval; } cookie_list * garbage_collection(cookie_list *cookie) { char path[17]; cookie_list *retval = NULL; struct stat statbuf; int ret; while(cookie != NULL) { /* Skip default cookie */ if(cookie->pid ==0) return cookie; /* Try to find the PID directory from proc fs */ snprintf(path, sizeof(path), "/proc/%d", cookie->pid); path[16] = 0; ret = stat(path, &statbuf); if(ret != 0) { /* If it's not exist, delete the cookie */ if(errno == ENOENT) { SEC_SVR_DBG("Garbage found. PID:%d, deleting...", cookie->pid); cookie = delete_cookie_item(cookie); continue; } else { /* Some error occurred */ SEC_SVR_DBG("Error occurred on stat: errno = %d", errno); return cookie; } } else { /* This is not a garbage. returning */ return cookie; } cookie = cookie->next; } return retval; } /* Search existing cookie from the cookie list for the client process * * At the same time, it collects garbage cookie which PID is no longer exist and delete them */ cookie_list *search_existing_cookie(int pid, const cookie_list *c_list) { cookie_list *current =(cookie_list *)c_list, *cookie = NULL; char *cmdline = NULL, *debug_cmdline = NULL; /* Search from the list */ while(current != NULL) { /* print_cookie(current);*/ current = garbage_collection(current); if(current == NULL) break; /* PID must be same */ if(current->pid == pid) { /* Found cookie for the pid. Check the cookie is reused by dirrent executable */ /* Check the path of the process */ cmdline = (char*)read_cmdline_from_proc(pid); if(cmdline == NULL) { SEC_SVR_DBG("%s", "cannot read cmdline"); return NULL; } /* Check the path is different */ if(strncmp(cmdline, current->path, current->path_len) != 0 || strlen(cmdline) != current->path_len) { SEC_SVR_DBG("pid [%d] has been reused by %s. deleting the old cookie.", pid, cmdline); debug_cmdline = malloc(current->path_len + 1); if(debug_cmdline == NULL) { SEC_SVR_DBG("%s", "out of memory error"); return NULL; } strncpy(debug_cmdline, current->path, current->path_len); debug_cmdline[current->path_len] = 0; SEC_SVR_DBG("[%s] --> [%s]", cmdline, debug_cmdline); if(debug_cmdline != NULL) { free(debug_cmdline); debug_cmdline = NULL; } /* Okay. delete current cookie */ current = delete_cookie_item(current); if(cmdline != NULL) { free(cmdline); cmdline = NULL; } continue; } else { SEC_SVR_DBG("%s", "cookie found"); cookie = current; } if(cmdline != NULL) { free(cmdline); cmdline = NULL; } } current = current->next; } return cookie; } /* Search existing cookie from the cookie list for matching pid * * Default cookie (meaning PID 0) is not allowed in here */ cookie_list *search_cookie_from_pid(cookie_list *c_list, int pid) { cookie_list *current = (cookie_list *)c_list, *retval = NULL; /* Search from the list */ while(current != NULL) { /* print_cookie(current);*/ /* PID must be same */ current = garbage_collection(current); if(current == NULL) break; if(current->pid == pid) { SEC_SVR_DBG("%s", "cookie has been found"); retval = current; goto finish; } current = current->next; } finish: return retval; } /* Search existing cookie from the cookie list for matching cookie and privilege */ /* If privilege is 0, just search cookie exists or not */ cookie_list *search_cookie(const cookie_list *c_list, const unsigned char *cookie, int privilege) { cookie_list *current = (cookie_list *)c_list, *retval = NULL; int i; /* Search from the list */ while(current != NULL) { /* print_cookie(current);*/ /* PID must be same */ current = garbage_collection(current); if(current == NULL) break; if(memcmp(current->cookie, cookie, SECURITY_SERVER_COOKIE_LEN) == 0) { SEC_SVR_DBG("%s", "cookie has been found"); /* default cookie is for root process which is pid is set to 0 */ if(current->pid == 0 || privilege == 0) { retval = current; goto finish; } else { for(i=0 ; i < current->permission_len ; i++) { if(privilege == current->permissions[i]) { SEC_SVR_DBG("Found privilege %d", privilege); retval = current; goto finish; } } } } current = current->next; } finish: return retval; } cookie_list *search_cookie_new(const cookie_list *c_list, const unsigned char *cookie, const char *object, const char *access_rights) { cookie_list *current = (cookie_list *)c_list, *retval = NULL; int ret; int i; /* Search from the list */ while(current != NULL) { /* print_cookie(current);*/ /* PID must be same */ current = garbage_collection(current); if(current == NULL) break; if(memcmp(current->cookie, cookie, SECURITY_SERVER_COOKIE_LEN) == 0) { SEC_SVR_DBG("%s", "cookie has been found"); ret = smack_have_access(current->smack_label, object, access_rights); SEC_SVR_DBG("smack_have_access, subject >%s< object >%s< access >%s< ===> %d", current->smack_label, object, access_rights, ret); if (ret == 1) { retval = current; goto finish; } } current = current->next; } finish: return retval; } /* Generage a random stream value of size to cookie * * by reading /dev/uranddom file */ int generate_random_cookie(unsigned char *cookie, int size) { int fd, ret; fd = open("/dev/urandom", O_RDONLY); if(fd < 0) { SEC_SVR_DBG("%s", "Cannot open /dev/urandom"); return SECURITY_SERVER_ERROR_FILE_OPERATION; } ret = read(fd, cookie, size); if(ret < size) { SEC_SVR_DBG("Cannot read /dev/urandom: %d", ret); ret = SECURITY_SERVER_ERROR_FILE_OPERATION; goto error; } close(fd); ret = SECURITY_SERVER_SUCCESS; error: if(fd > 0) close(fd); return ret; } /* Create a cookie item from PID */ cookie_list *create_cookie_item(int pid, int sockfd, cookie_list *c_list) { int ret, tempint; cookie_list *added = NULL, *current = NULL; char path[24], *cmdline = NULL; char *buf = NULL, inputed, *tempptr = NULL; char delim[] = ": ", *token = NULL; int *permissions = NULL, perm_num = 1, cnt, i, *tempperm = NULL; char *smack_label = NULL; FILE *fp = NULL; current = search_existing_cookie(pid, c_list); if(current != NULL) { /* There is a cookie for this process already */ added = current; SEC_SVR_DBG("%s", "Existing cookie found"); goto error; } /* Read command line of the PID from proc fs */ cmdline = (char *)read_cmdline_from_proc(pid); if(cmdline == NULL) { SEC_SVR_DBG("Error on reading /proc/%d/cmdline", pid); goto error; } /* * modified by security part * - get gid from /etc/group */ /* Read group info of the PID from proc fs - /proc/[PID]/status */ snprintf(path, sizeof(path), "/proc/%d/status", pid); fp = fopen(path, "r"); /* Find the line which starts with 'Groups:' */ i = 0; while(1) { buf = (char*)malloc(sizeof(char) * 128); if(buf == NULL) { SEC_SVR_DBG("%s", "Error on malloc()"); goto error; } memset(buf, 0x00, 128); cnt = 128; /* get one line from /proc/[PID]/status */ while(1) { tempint = fgetc(fp); inputed = (char)tempint; if(tempint == EOF) goto out_of_while; else if(inputed == '\n') { buf[i] = '\0'; break; } else if((i == cnt) && (inputed != '\n')) { tempptr = (char*)realloc(buf, sizeof(char) * (i + 128)); if(tempptr == NULL) { SEC_SVR_DBG("%s", "Error on realloc()"); goto error; } buf = tempptr; buf[i++] = inputed; cnt = i + 128; } else buf[i++] = inputed; } i = 0; /* find 'Groups:' */ if(strncmp(buf, "Groups:", 7) == 0) { /* get gid from the line and insert to 'permissions' array */ token = strtok(buf, delim); // first string is "Groups" while((token = strtok(NULL, delim))) { tempperm = realloc(permissions, sizeof(int) * perm_num); if(tempperm == NULL) { SEC_SVR_DBG("%s", "Error on realloc()"); goto error; } permissions = tempperm; errno = 0; permissions[perm_num - 1] = strtoul(token, 0, 10); if (errno != 0) { SEC_SVR_DBG("cannot change string to integer [%s]", token); ret = SECURITY_SERVER_ERROR_SERVER_ERROR; goto error; } perm_num++; } perm_num--; /* goto out of while loop */ break; } if(buf != NULL) { free(buf); buf = NULL; } } out_of_while: /* Each group ID is stored in each line of the file */ // while(fgets(permline, sizeof(permline), fp) != NULL) // { // permissions = realloc(permissions, sizeof(int) * perm_num); // if(permissions == NULL) // { // SEC_SVR_DBG("%s", "Error on realloc()"); // goto error; // } // permissions[perm_num -1] = strtoul(permline, 0, 10); // perm_num++; // } // perm_num--; /* * modifying end */ /* Go to last cookie from the list */ current = c_list; while(current->next != NULL) { current = current->next; } /* Create a new one and assign values */ added = malloc(sizeof(cookie_list)); if(added == NULL) goto error; ret = generate_random_cookie(added->cookie, SECURITY_SERVER_COOKIE_LEN); if(ret != SECURITY_SERVER_SUCCESS) { SEC_SVR_DBG("Error on making random cookie: %d", ret); free(added); added = NULL; goto error; } /* Check SMACK label */ ret = smack_new_label_from_socket(sockfd, &smack_label); if (ret != 0) { SEC_SVR_DBG("Error checking peer label: %d", ret); free(added); added = NULL; goto error; } added->path_len = strlen(cmdline); added->path = calloc(1, strlen(cmdline)); memcpy(added->path, cmdline, strlen(cmdline)); added->permission_len = perm_num; added->pid = pid; added->permissions = permissions; added->smack_label = smack_label; added->prev = current; current->next = added; added->next = NULL; error: if(cmdline != NULL) free(cmdline); if(fp != NULL) fclose(fp); if(buf != NULL) free(buf); if(added == NULL && permissions != NULL) free(permissions); return added; } /* Check stored default cookie, if it's not exist make a new one and store it */ int check_stored_cookie(unsigned char *cookie, int size) { int fd, ret; /* First, check the default cookie is stored */ fd = open(SECURITY_SERVER_DEFAULT_COOKIE_PATH, O_RDONLY); if(fd < 0) { if(errno != ENOENT) { SEC_SVR_DBG("Cannot open default cookie. errno=%d", errno); ret = SECURITY_SERVER_ERROR_FILE_OPERATION; unlink(SECURITY_SERVER_DEFAULT_COOKIE_PATH); } ret = generate_random_cookie(cookie, size); /* Save cookie to disk */ fd = open(SECURITY_SERVER_DEFAULT_COOKIE_PATH, O_WRONLY | O_CREAT, 0600); if (fd < 0) { SEC_SVR_DBG("Cannot open default cookie errno=%d", errno); ret = SECURITY_SERVER_ERROR_FILE_OPERATION; goto error; } ret = write(fd, cookie, size); if(ret < size) { SEC_SVR_DBG("%s", "Cannot save default cookie"); ret = SECURITY_SERVER_ERROR_FILE_OPERATION; goto error; } /* Change mod only allow root process to read */ ret = fchmod(fd, 0600); if (ret < 0) { SEC_SVR_DBG("%s", "Cannot chmod default cookie"); ret = SECURITY_SERVER_ERROR_FILE_OPERATION; goto error; } close(fd); return SECURITY_SERVER_SUCCESS; } ret = read (fd, cookie, size); if(ret < size) { SEC_SVR_DBG("Cannot read default cookie errno=%d", errno); ret = SECURITY_SERVER_ERROR_FILE_OPERATION; goto error; } ret = SECURITY_SERVER_SUCCESS; error: if(fd > 0) close(fd); return ret; } /* Create a cookie item from PID */ /* Create a default cookie when security server is executed * * Default cookie is for root processes that needs cookie */ cookie_list *create_default_cookie(void) { cookie_list *first = NULL; int ret; first = malloc(sizeof(cookie_list)); ret = check_stored_cookie(first->cookie, SECURITY_SERVER_COOKIE_LEN); if(ret != SECURITY_SERVER_SUCCESS) { SEC_SVR_DBG("Error on making random cookie: %d", ret); free(first); return NULL; } first->path_len = 0; first->permission_len = 0; first->pid = 0; first->path = NULL; first->permissions = NULL; first->smack_label = NULL; first->prev = NULL; first->next = NULL; return first; }
23.844771
102
0.631399
cc17dcf78986f55a22ec293b39c97c16774421f3
5,762
c
C
usart/usart.c
obeny/ehal
846f9f68e1503d423ad22194364482de3b3eb04b
[ "MIT" ]
null
null
null
usart/usart.c
obeny/ehal
846f9f68e1503d423ad22194364482de3b3eb04b
[ "MIT" ]
null
null
null
usart/usart.c
obeny/ehal
846f9f68e1503d423ad22194364482de3b3eb04b
[ "MIT" ]
null
null
null
/*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ /*! * \file usart.c * * \author Marcin O'BenY Benka <obeny@obeny.net> * \date 02.01.2014 * \version 23 * * \brief buffered transmission support for usart - implementation. * \note * For detailed description see header file. */ /*************************************************************************** * INCLUDES ***************************************************************************/ #include "ehal/usart/usart.h" #include "ehal/util/util.h" #include "lib/usart/usart_march.h" /*************************************************************************** * DEFINITIONS ***************************************************************************/ // compiletime checks #ifndef USART_SEND_MAX_LENGTH #error "USART: USART_SEND_MAX_LENGTH not set" #endif #ifndef USART_BIG_BUFFERS #if (USART_RBUF_SIZE >= 0xFF | USART_TBUF_SIZE >= 0xFF) #error "USART: buffers too big (max = 256 bytes)" #endif #endif /*************************************************************************** * FUNCTIONS ***************************************************************************/ // -------------------------------------------------------------------------- VOID usartFlush(usart_cfg_st *usart) { usart->usart_rx_tail = 0; usart->usart_rx_head = 0; usart->usart_tx_tail = 0; usart->usart_tx_head = 0; usart->b_usart_rx_overflow = false; usart->b_usart_tx_full = false; } // -------------------------------------------------------------------------- USART_USARTREAD_ATTR BOOL usartRead(usart_cfg_st *usart, BYTE *pc_str, const UINT16 ui16_count, UINT16 ui16_val) { for (UINT16 i = 0; i < ui16_count; ++i) { // wait for incomming byte no more than ui16_val miliseconds while (!usartUnreadBytes(usart)) { if (ui16_val == 0) return (false); --ui16_val; delayMs(1); } *pc_str = usartReadByte(usart); ++pc_str; } return (true); } // -------------------------------------------------------------------------- USART_USARTREADBYTE_ATTR BYTE usartReadByte(usart_cfg_st *usart) { BYTE b; // wait for byte WAIT_FOR(!usartUnreadBytes(usart)); // get byte from buffer and update pointers b = usart->ac_usart_rx_buff[usart->usart_rx_tail]; usart->usart_rx_tail++; if (usart->usart_rx_tail > (USART_RBUF_SIZE - 1)) usart->usart_rx_tail = 0; usart->b_usart_rx_overflow = false; return (b); } // -------------------------------------------------------------------------- BOOL usartReceiveBufferOverflow(const usart_cfg_st *usart) { return (usart->b_usart_rx_overflow); } // -------------------------------------------------------------------------- VOID usartSend(usart_cfg_st *usart, const BYTE *pc_str, const UINT16 ui16_length) { UINT16 ui16_computed_length; // compute max length of data to send if (!ui16_length) ui16_computed_length = USART_SEND_MAX_LENGTH; else ui16_computed_length = (ui16_length > USART_SEND_MAX_LENGTH)?(USART_SEND_MAX_LENGTH):(ui16_length); // start sending data for (UINT16 i = 0; i < ui16_computed_length; ++i) usartSendByte(usart, *(pc_str + i)); } // -------------------------------------------------------------------------- USART_USARTSENDBYTE_ATTR VOID usartSendByte(usart_cfg_st *usart, const BYTE c_byte) { // wait for free space in send buffer WAIT_FOR(usart->b_usart_tx_full); // insert byte to transmit buffer usart->ac_usart_tx_buff[usart->usart_tx_head] = c_byte; usart->usart_tx_head++; if (usart->usart_tx_head > (USART_TBUF_SIZE - 1)) usart->usart_tx_head = 0; if (usart->usart_tx_head == usart->usart_tx_tail) usart->b_usart_tx_full = true; march_usartEnableTXEInterrupt(usart); } // -------------------------------------------------------------------------- USART_USARTSENDSTRING_ATTR VOID usartSendString(usart_cfg_st *usart, const BYTE *pc_str, const UINT16 ui16_length) { UINT16 ui16_computed_length; // compute max length of data to send if (!ui16_length) ui16_computed_length = USART_SEND_MAX_LENGTH; else ui16_computed_length = (ui16_length > USART_SEND_MAX_LENGTH)?(USART_SEND_MAX_LENGTH):(ui16_length); // start sending data for (UINT16 i = 0; (i < ui16_computed_length) && *(pc_str + i); ++i) usartSendByte(usart, *(pc_str + i)); } // -------------------------------------------------------------------------- USART_USARTUNREADBYTES_ATTR usart_bufsize_t usartUnreadBytes(const usart_cfg_st *usart) { if (usart->usart_rx_head > usart->usart_rx_tail) return (usart->usart_rx_head - usart->usart_rx_tail); else if (usart->usart_rx_head < usart->usart_rx_tail) return (USART_RBUF_SIZE - (usart->usart_rx_tail - usart->usart_rx_head)); else if (usart->b_usart_rx_overflow) return (USART_RBUF_SIZE); return (0); } // -------------------------------------------------------------------------- usart_bufsize_t usartUnsentBytes(const usart_cfg_st *usart) { if (usart->usart_tx_head > usart->usart_tx_tail) return (usart->usart_tx_head - usart->usart_tx_tail); else if (usart->usart_tx_head < usart->usart_tx_tail) return (USART_TBUF_SIZE - (usart->usart_tx_tail - usart->usart_tx_head)); else if (usart->b_usart_tx_full) return (USART_TBUF_SIZE); return (0); } // END
31.145946
114
0.543041
cc2a5d8c515c533a23d4b7e808a6b750190e1c6d
2,452
c
C
examples/ini_example.c
dbj-data/inih
0337e41dc2fe314bc7370a5812ea3b7b6f6c47b8
[ "BSD-3-Clause-Clear" ]
null
null
null
examples/ini_example.c
dbj-data/inih
0337e41dc2fe314bc7370a5812ea3b7b6f6c47b8
[ "BSD-3-Clause-Clear" ]
null
null
null
examples/ini_example.c
dbj-data/inih
0337e41dc2fe314bc7370a5812ea3b7b6f6c47b8
[ "BSD-3-Clause-Clear" ]
null
null
null
/* Example: parse a simple configuration file */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "../ini.h" #include "../value_parsers.h" typedef struct { int version; bool active; const char* name; const char* email; float pi; } configuration; /* DBJ: there is no ini file in memory it is simply read line by line, each line given to a callback half processed if ini file is empty the handler callback is not called if there are just sections but no value name pairs this handler is not called if there are no sections only one or more name = value pairs the thing will work, but you have to code the callback accordingly; section arg will exist as a empty string */ static int handler( /* this can be NULL, but it is usefull to collect all the data required into a struct */ void* user, const char* section, const char* name, const char* value) { configuration* pconfig = (configuration*)user; #define MATCH(s, n) strcmp(section, s) == 0 && strcmp(name, n) == 0 /* unlike some other ini readers there is no inbuilt value parsing */ if (MATCH("protocol", "version")) { pconfig->version = atoi(value); } else if (MATCH("user", "name")) { pconfig->name = SUPR4996 strdup(value); } else if (MATCH("user", "email")) { pconfig->email = SUPR4996 strdup(value); } else if (MATCH("user", "pi")) { #ifdef _MSC_VER _CRT_FLOAT cf_ = { pconfig->pi }; int rez_ = _atoflt(&cf_, value); if (0 == rez_) pconfig->pi = cf_.f; else pconfig->pi = 0; #else pconfig->pi = (float)atof(value); #endif } else if (MATCH("user", "active")) { // parsing the boolean value is a bit more involved dbj_getboolean(&pconfig->active, value); } else { return 0; /* signal the unknown section/name, error */ } return 1; /* signal OK */ } /* ---------------------------------------------------------------------------- */ int main(int argc, char* argv[]) { /* set defaults */ configuration config = { 0,0,0,0 }; if (ini_parse("test.ini", handler, &config) < 0) { printf("Can't load 'test.ini'\n"); return 1; } printf( "\nConfig loaded from 'test.ini'\n" "\n%24s : %d" "\n%24s : %s" "\n%24s : %s" "\n%24s : %s" "\n%24s : %f\n", "version", config.version, "active", config.active ? "true" : "false", "name", config.name, "email", config.email, "pi", config.pi); if (config.name) free((void*)config.name); if (config.email) free((void*)config.email); return 0; }
23.576923
90
0.630914