blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
264
content_id
stringlengths
40
40
detected_licenses
listlengths
0
85
license_type
stringclasses
2 values
repo_name
stringlengths
5
140
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
986 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
3.89k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
145 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
3
10.4M
extension
stringclasses
122 values
content
stringlengths
3
10.4M
authors
listlengths
1
1
author_id
stringlengths
0
158
de831f1434ed79f6988720e30bf472f43cf4a8b5
e18f125f6281c24ad302ef522f4092ca846d75e3
/fallingcoconuts-c++/FallingCoconuts.h
f370c8e1c95e02dd822dc37448759d5a70dc977e
[]
no_license
syed/tc
0ac16cf95ee77bf2cfd873abe88cbe230ce5633c
6bf1ef0ec865e3eb5fcd33c9fef12ade2fc00bf4
refs/heads/master
2020-04-08T06:19:39.349515
2013-12-29T07:17:52
2013-12-29T07:17:52
3,890,080
2
1
null
null
null
null
UTF-8
C++
false
false
459
h
#include <algorithm> #include <iostream> #include <map> #include <numeric> #include <set> #include <sstream> #include <string> #include <vector> using namespace std; #define FOR(i,s,e) for (int i = int(s); i != int(e); i++) #define FORIT(i,c) for (typeof((c).begin()) i = (c).begin(); i != (c).end(); i++) #define ISEQ(c) (c).begin(), (c).end() class FallingCoconuts { public: vector<string> harvest(vector<int> drops) { return vector<string>(); } };
[ "syed1.mushtaq@gmail.com" ]
syed1.mushtaq@gmail.com
7947e57f7706442152e84c55e340936736a384d3
abb5997a04888e15215391e55ceba81d3f3f5fc0
/HomeDoOld/WingyUI/UI/UIDefine.h
729fc0f8241760ff92b2557e8ba339e91f4f98e1
[]
no_license
winwingy/Study
c8f298792f94e230fed894521c611b15a9c524d0
5c368ad1b58d4567897a331cef247328c110fa5a
refs/heads/master
2020-05-21T04:48:50.965832
2017-01-19T09:25:53
2017-01-19T09:25:53
55,683,173
1
1
null
null
null
null
UTF-8
C++
false
false
616
h
#pragma once #include <string> #include <assert.h> #include "exportUI.h" #include <sstream> #ifdef _UNICODE #define tstring std::wstring #define tstringstream std::wstringstream #define __FUNCTIONT__ __FUNCTIONW__ #else #define tstring std::string #define tstringstream std::stringstream #define __FUNCTIONT__ __FUNCTION__ #endif #define TRACE_UI(x) do\ {\ tstringstream ss;\ ss << __FUNCTIONT__ << _T(" ") << __LINE__ << _T(" ") << x <<std::endl;\ OutputDebugString(ss.str().c_str());\ }while(0); namespace wingy_ui { class UI_API UIDefine { public: UIDefine(void); ~UIDefine(void); }; }
[ "winwingy@163.com" ]
winwingy@163.com
776c966265b38598d389e7e0399e7e9c964a79c3
e64be2479c3e002d245877c0c72fd775b97dd2e0
/CustomWin/LoginWin/Panda.h
ac68ad771c04b6dc9642849c23a0d429a1888acd
[]
no_license
Diandian-2250/Qt-CustomControls
0a1bc63bd7ecc130187b3e93bca8cadba57b865f
b01871cb7192630159e6d163f047b83e55cc688a
refs/heads/master
2022-12-12T09:11:18.257296
2020-08-31T05:19:56
2020-08-31T05:19:56
null
0
0
null
null
null
null
GB18030
C++
false
false
269
h
#pragma once namespace Panda { enum USER_STATE //用户状态 { State_Online, //在线 State_Leave, //离开 State_Busy, //忙碌 State_NotDisturb, //请勿打扰 State_InVisable //隐身 }; }
[ "405126907@qq.com" ]
405126907@qq.com
8b79528e77d80bce7aaf6bd698e54a0e78092971
d100cee23e8d0b5d06c748b03d3b84927af15acd
/Scheduler/JobScheduler.cpp
c81ff53a8765d7f321b5f5ef84d451de0276307f
[]
no_license
sb2te3/Scheduler
846e3bc792a25f5bf54ea4b3b5a9a45bc9d27069
d6ea0e938e65795aabc76b4f8ecefecda983455e
refs/heads/master
2022-05-28T08:34:20.196379
2018-07-30T00:17:27
2018-07-30T00:17:27
null
0
0
null
null
null
null
UTF-8
C++
false
false
844
cpp
#include "stdafx.h" #include "JobScheduler.h" #include <sstream> bool JobScheduler::addJob(const std::shared_ptr<Job>& jobPtr) { if (d_jobs.find(jobPtr->uniqueId) == d_jobs.cend()) { // d_jobs already has this unique id std::stringstream ss; ss << "There is already a job with uniqueId = " << jobPtr->uniqueId << ", cannot add this job!"; d_lastErrorMessage = ss.str(); d_lastRcode = -1; return false; } // insert job into d_jobs d_jobs[jobPtr->uniqueId] = jobPtr; // calculate time to sleep } bool JobScheduler:: calculateTimeToSleep(const std::chrono::high_resolution_clock::time_point& targetTime, std::chrono::duration<double, std::milli>& durationToSleep) { std::chrono::high_resolution_clock::time_point now = std::chrono::high_resolution_clock::now(); if (targetTime < now) { } }
[ "lukaszhao@gmail.com" ]
lukaszhao@gmail.com
1d5fcb15b28476f2e4b5e6f32ab3d02eee43825a
f339d69fc063a9cc877ef14181e0d745c8b99b84
/MFCApplication5/CEnemy_1.h
bab1e4f5a00c74df96919b8bf99a551057041c77
[]
no_license
diego-x/Aircraft_war
dff50a146cd1729e59ab51ad33e8471b7578e1b5
2bc2e0563cbc8f63d3b823d7f7ac34378ea6caaf
refs/heads/main
2023-06-05T05:02:14.938344
2021-06-29T14:08:33
2021-06-29T14:08:33
323,642,679
0
0
null
null
null
null
GB18030
C++
false
false
1,104
h
#pragma once #include "GameObject.h" #include "resource.h" class CEnemy_1 : public CGameObject { public: CEnemy_1(); ~CEnemy_1(); CEnemy_1(int x, int y, int m_nMotion); BOOL Draw(CDC* pDC, BOOL bPause) { if (m_V == 0) m_V = 1; m_ptPos.y += 5 * m_V; /*if (rand() % 17 == 0) m_ptPos.x += 10; if (rand() % 27 == 0) m_ptPos.x -= 10;*/ return m_Images.Draw(pDC, 0, m_ptPos, ILD_TRANSPARENT); } static BOOL LoadImage(); CRect GetRect() { return CRect(m_ptPos, CPoint(m_ptPos.x + 98, m_ptPos.y + 144)); } int GetMontion() const { return m_nMotion; } void set0(CRect &rect) { m_ptPos.y = 0; m_ptPos.x = rand() % rect.right; } void setxr(CRect &rect) { m_ptPos.x = rect.left; } void setxl(CRect &rect) { m_ptPos.x = rect.right; } //是否可以开火发射子弹 //BOOL Fired(); void shan() { m_ptPos.x -= 100; } private: static const int ENEMY_HEIGHT = 35; static CImageList m_Images; int m_nMotion;//方向 1->向下 0->停止 -1->向上 //图像索引 int m_nImgIndex; //速度 int m_V; int m_nWait;//发射延时 };
[ "907597924@qq.com" ]
907597924@qq.com
246b44d6b1386fda9d6944239ab7eab3263c898c
728e57a80995d7be98d46295b780d0b433c9e62a
/src/rewriter/gen_collocation_data_main.cc
9369817b877edd7f8ee608e6fa888c790a98640f
[ "Apache-2.0", "MIT", "BSD-3-Clause", "GPL-1.0-or-later" ]
permissive
SNQ-2001/Mozc-for-iOS
7936bfd9ff024faacfd2d96af3ec15a2000378a1
45b0856ed8a22d5fa6b4471548389cbde4abcf10
refs/heads/master
2023-03-17T22:19:15.843107
2014-10-04T05:48:29
2014-10-04T05:48:42
574,371,060
0
0
Apache-2.0
2022-12-05T06:48:07
2022-12-05T06:48:06
null
UTF-8
C++
false
false
3,262
cc
// Copyright 2010-2014, Google Inc. // 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 Google Inc. nor the names of its // contributors may be used to endorse or promote products derived from // this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // OWNER 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. // Converts collocation text file into existence filter header file. // input format: // <collocation1> // <collocation2> // ... // // example: // ./gen_collocation_data_main.cc --collocation_data=collocation.txt // > embedded_collocation_data.h #include <iostream> #include <vector> #include "base/file_stream.h" #include "base/flags.h" #include "base/logging.h" #include "rewriter/gen_existence_data.h" DEFINE_string(collocation_data, "", "collocation data text"); DEFINE_string(output, "", "output file name (default: stdout)"); DEFINE_double(error_rate, 0.00001, "error rate"); DEFINE_bool(binary_mode, false, "outputs binary file"); namespace mozc { namespace { void Convert() { InputFileStream ifs(FLAGS_collocation_data.c_str()); string line; vector<string> entries; while (!getline(ifs, line).fail()) { if (line.empty()) { continue; } entries.push_back(line); } ostream *ofs = &cout; if (!FLAGS_output.empty()) { if (FLAGS_binary_mode) { ofs = new OutputFileStream(FLAGS_output.c_str(), ios::out | ios::binary); } else { ofs = new OutputFileStream(FLAGS_output.c_str()); } } if (FLAGS_binary_mode) { OutputExistenceBinary(entries, ofs, FLAGS_error_rate); } else { const string kNameSpace = "CollocationData"; OutputExistenceHeader(entries, kNameSpace, ofs, FLAGS_error_rate); } if (ofs != &cout) { delete ofs; } } } // namespace } // namespace mozc int main(int argc, char *argv[]) { InitGoogle(argv[0], &argc, &argv, true); if (FLAGS_collocation_data.empty() && argc > 1) { FLAGS_collocation_data = argv[1]; } LOG(INFO) << FLAGS_collocation_data; mozc::Convert(); return 0; }
[ "kishikawakatsumi@mac.com" ]
kishikawakatsumi@mac.com
fd2cf073568b2ab80ba2aae632e306f42da22ed6
e6c021389bfc50a057399227ab15d2266669cc39
/src/pmem.cxx
a60e01990452ed29c29681ba2d5f67c9f1a45902
[ "Zlib" ]
permissive
jpoirier/ptypes
d3ca83cfd682519cd3b6e3ffbc83a33657efcc1c
31a665f75392c8f2cd513b783001fa80760d14a2
refs/heads/master
2021-01-24T06:26:35.445579
2011-12-19T04:39:24
2011-12-19T04:39:24
2,939,724
1
0
null
null
null
null
UTF-8
C++
false
false
1,060
cxx
#include <stdlib.h> #include "pport.h" PTYPES_BEGIN const int quant = 64; const int qmask = ~63; const int quant2 = 4096; const int qmask2 = ~4095; // dynamic reallocation policy for strings and lists int ptdecl memquantize(int a) { if (a <= 16) return 16; if (a <= 32) return 32; else if (a <= 2048) return (a + quant - 1) & qmask; else return (a + quant2 - 1) & qmask2; } void ptdecl memerror() { fatal(CRIT_FIRST + 5, "Not enough memory"); } void* ptdecl memalloc(uint a) { if (a == 0) return nil; else { void* p = malloc(a); if (p == nil) memerror(); return p; } } void* ptdecl memrealloc(void* p, uint a) { if (a == 0) { memfree(p); return nil; } else if (p == nil) return memalloc(a); else { p = realloc(p, a); if (p == nil) memerror(); return p; } } void ptdecl memfree(void* p) { if (p != nil) free(p); } PTYPES_END
[ "jdpoirier@gmail.com" ]
jdpoirier@gmail.com
5521dadc3d6efabc4909380887570d8875ee873f
a815edcd3c7dcbb79d7fc20801c0170f3408b1d6
/content/browser/background_fetch/storage/get_initialization_data_task.cc
5a2e88c445bfc1e6e0164956333241f17f38e3e5
[ "BSD-3-Clause" ]
permissive
oguzzkilic/chromium
06be90df9f2e7f218bff6eee94235b6e684e2b40
1de71b638f99c15a3f97ec7b25b0c6dc920fbee0
refs/heads/master
2023-03-04T00:01:27.864257
2018-07-17T10:33:19
2018-07-17T10:33:19
141,275,697
1
0
null
2018-07-17T10:48:53
2018-07-17T10:48:52
null
UTF-8
C++
false
false
17,184
cc
// Copyright 2018 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. #include "content/browser/background_fetch/storage/get_initialization_data_task.h" #include "base/barrier_closure.h" #include "base/strings/utf_string_conversions.h" #include "base/task_scheduler/post_task.h" #include "base/task_scheduler/task_traits.h" #include "content/browser/background_fetch/background_fetch.pb.h" #include "content/browser/background_fetch/storage/database_helpers.h" #include "content/browser/service_worker/service_worker_context_wrapper.h" #include "third_party/blink/public/common/manifest/manifest.h" #include "ui/gfx/image/image.h" #include "url/origin.h" namespace content { namespace background_fetch { namespace { // Base class with all the common implementation for the SubTasks // needed in this file. class InitializationSubTask : public DatabaseTask { public: // Holds data used by all SubTasks. struct SubTaskInit { SubTaskInit() = delete; ~SubTaskInit() = default; // Service Worker Database metadata. int64_t service_worker_registration_id; std::string unique_id; // The results to report. BackgroundFetchInitializationData* initialization_data; blink::mojom::BackgroundFetchError* error; }; InitializationSubTask(DatabaseTaskHost* host, const SubTaskInit& sub_task_init, base::OnceClosure done_closure) : DatabaseTask(host), sub_task_init_(sub_task_init), done_closure_(std::move(done_closure)) { DCHECK(sub_task_init_.initialization_data); DCHECK(sub_task_init_.error); } ~InitializationSubTask() override = default; protected: void FinishTask() { std::move(done_closure_).Run(); Finished(); // Destroys |this|. } SubTaskInit& sub_task_init() { return sub_task_init_; } private: SubTaskInit sub_task_init_; base::OnceClosure done_closure_; DISALLOW_COPY_AND_ASSIGN(InitializationSubTask); }; // Fills the BackgroundFetchInitializationData with the most recent UI title. class GetTitleTask : public InitializationSubTask { public: GetTitleTask(DatabaseTaskHost* host, const SubTaskInit& sub_task_init, base::OnceClosure done_closure) : InitializationSubTask(host, sub_task_init, std::move(done_closure)), weak_factory_(this) {} ~GetTitleTask() override = default; void Start() override { service_worker_context()->GetRegistrationUserData( sub_task_init().service_worker_registration_id, {TitleKey(sub_task_init().unique_id)}, base::BindOnce(&GetTitleTask::DidGetTitle, weak_factory_.GetWeakPtr())); } private: void DidGetTitle(const std::vector<std::string>& data, blink::ServiceWorkerStatusCode status) { switch (ToDatabaseStatus(status)) { case DatabaseStatus::kFailed: *sub_task_init().error = blink::mojom::BackgroundFetchError::STORAGE_ERROR; FinishTask(); return; case DatabaseStatus::kNotFound: case DatabaseStatus::kOk: break; } if (!data.empty()) sub_task_init().initialization_data->ui_title = data.front(); FinishTask(); } base::WeakPtrFactory<GetTitleTask> weak_factory_; // Keep as last. }; // Fills the BackgroundFetchInitializationData with the number of completed // requests. class GetCompletedRequestsTask : public InitializationSubTask { public: GetCompletedRequestsTask(DatabaseTaskHost* host, const SubTaskInit& sub_task_init, base::OnceClosure done_closure) : InitializationSubTask(host, sub_task_init, std::move(done_closure)), weak_factory_(this) {} ~GetCompletedRequestsTask() override = default; void Start() override { service_worker_context()->GetRegistrationUserDataByKeyPrefix( sub_task_init().service_worker_registration_id, CompletedRequestKeyPrefix(sub_task_init().unique_id), base::BindOnce(&GetCompletedRequestsTask::DidGetCompletedRequests, weak_factory_.GetWeakPtr())); } private: void DidGetCompletedRequests(const std::vector<std::string>& data, blink::ServiceWorkerStatusCode status) { switch (ToDatabaseStatus(status)) { case DatabaseStatus::kFailed: *sub_task_init().error = blink::mojom::BackgroundFetchError::STORAGE_ERROR; FinishTask(); return; case DatabaseStatus::kNotFound: case DatabaseStatus::kOk: break; } sub_task_init().initialization_data->num_completed_requests = data.size(); FinishTask(); } base::WeakPtrFactory<GetCompletedRequestsTask> weak_factory_; // Keep as last. }; // Fills the BackgroundFetchInitializationData with the guids of active // (previously started) requests. class GetActiveRequestsTask : public InitializationSubTask { public: GetActiveRequestsTask(DatabaseTaskHost* host, const SubTaskInit& sub_task_init, base::OnceClosure done_closure) : InitializationSubTask(host, sub_task_init, std::move(done_closure)), weak_factory_(this) {} ~GetActiveRequestsTask() override = default; void Start() override { service_worker_context()->GetRegistrationUserDataByKeyPrefix( sub_task_init().service_worker_registration_id, ActiveRequestKeyPrefix(sub_task_init().unique_id), base::BindOnce(&GetActiveRequestsTask::DidGetActiveRequests, weak_factory_.GetWeakPtr())); } private: void DidGetActiveRequests(const std::vector<std::string>& data, blink::ServiceWorkerStatusCode status) { switch (ToDatabaseStatus(status)) { case DatabaseStatus::kFailed: *sub_task_init().error = blink::mojom::BackgroundFetchError::STORAGE_ERROR; FinishTask(); return; case DatabaseStatus::kNotFound: case DatabaseStatus::kOk: break; } for (const std::string& serialized_active_request : data) { proto::BackgroundFetchActiveRequest active_request; if (!active_request.ParseFromString(serialized_active_request)) { *sub_task_init().error = blink::mojom::BackgroundFetchError::STORAGE_ERROR; continue; } DCHECK_EQ(sub_task_init().unique_id, active_request.unique_id()); sub_task_init().initialization_data->active_fetch_guids.push_back( active_request.download_guid()); } FinishTask(); } base::WeakPtrFactory<GetActiveRequestsTask> weak_factory_; // Keep as last. DISALLOW_COPY_AND_ASSIGN(GetActiveRequestsTask); }; // Deserializes the icon and creates an SkBitmap from it. class DeserializeIconTask : public InitializationSubTask { public: DeserializeIconTask(DatabaseTaskHost* host, const SubTaskInit& sub_task_init, base::OnceClosure done_closure, std::string* serialized_icon) : InitializationSubTask(host, sub_task_init, std::move(done_closure)), serialized_icon_(serialized_icon), weak_factory_(this) {} ~DeserializeIconTask() override = default; void Start() override { base::PostTaskWithTraitsAndReplyWithResult( FROM_HERE, {base::MayBlock(), base::TaskShutdownBehavior::SKIP_ON_SHUTDOWN, base::TaskPriority::BACKGROUND}, base::BindOnce(&DeserializeIcon, std::move(serialized_icon_)), base::BindOnce(&DeserializeIconTask::StoreIcon, weak_factory_.GetWeakPtr())); } private: static SkBitmap DeserializeIcon( std::unique_ptr<std::string> serialized_icon) { return gfx::Image::CreateFrom1xPNGBytes( reinterpret_cast<const unsigned char*>(serialized_icon->c_str()), serialized_icon->size()) .AsBitmap(); } void StoreIcon(SkBitmap icon) { sub_task_init().initialization_data->icon = std::move(icon); FinishTask(); } std::unique_ptr<std::string> serialized_icon_; base::WeakPtrFactory<DeserializeIconTask> weak_factory_; // Keep as last. }; // Fills the BackgroundFetchInitializationData with all the relevant information // stored in the BackgroundFetchMetadata proto. class FillFromMetadataTask : public InitializationSubTask { public: FillFromMetadataTask(DatabaseTaskHost* host, const SubTaskInit& sub_task_init, base::OnceClosure done_closure) : InitializationSubTask(host, sub_task_init, std::move(done_closure)), weak_factory_(this) {} ~FillFromMetadataTask() override = default; void Start() override { service_worker_context()->GetRegistrationUserDataByKeyPrefix( sub_task_init().service_worker_registration_id, {RegistrationKey(sub_task_init().unique_id)}, base::BindOnce(&FillFromMetadataTask::DidGetMetadata, weak_factory_.GetWeakPtr())); } private: void DidGetMetadata(const std::vector<std::string>& data, blink::ServiceWorkerStatusCode status) { switch (ToDatabaseStatus(status)) { case DatabaseStatus::kFailed: case DatabaseStatus::kNotFound: *sub_task_init().error = blink::mojom::BackgroundFetchError::STORAGE_ERROR; FinishTask(); return; case DatabaseStatus::kOk: break; } if (data.size() != 1u) { *sub_task_init().error = blink::mojom::BackgroundFetchError::STORAGE_ERROR; FinishTask(); return; } proto::BackgroundFetchMetadata metadata; if (!metadata.ParseFromString(data[0])) { *sub_task_init().error = blink::mojom::BackgroundFetchError::STORAGE_ERROR; FinishTask(); return; } if (sub_task_init().unique_id != metadata.registration().unique_id()) { *sub_task_init().error = blink::mojom::BackgroundFetchError::STORAGE_ERROR; FinishTask(); return; } // Fill BackgroundFetchRegistrationId. sub_task_init().initialization_data->registration_id = BackgroundFetchRegistrationId( sub_task_init().service_worker_registration_id, url::Origin::Create(GURL(metadata.origin())), metadata.registration().developer_id(), metadata.registration().unique_id()); // Fill BackgroundFetchRegistration. auto& registration = sub_task_init().initialization_data->registration; // TODO(crbug.com/853874): Unify conversion logic. registration.developer_id = metadata.registration().developer_id(); registration.unique_id = metadata.registration().unique_id(); registration.upload_total = metadata.registration().upload_total(); registration.uploaded = metadata.registration().uploaded(); registration.download_total = metadata.registration().download_total(); registration.downloaded = metadata.registration().downloaded(); // Total number of requests. sub_task_init().initialization_data->num_requests = metadata.num_fetches(); // Fill BackgroundFetchOptions. auto& options = sub_task_init().initialization_data->options; options.title = metadata.options().title(); options.download_total = metadata.options().download_total(); options.icons.reserve(metadata.options().icons_size()); for (const auto& icon : metadata.options().icons()) { blink::Manifest::ImageResource ir; ir.src = GURL(icon.src()); ir.type = base::ASCIIToUTF16(icon.type()); ir.sizes.reserve(icon.sizes_size()); for (const auto& size : icon.sizes()) ir.sizes.emplace_back(size.width(), size.height()); ir.purpose.reserve(icon.purpose_size()); for (auto purpose : icon.purpose()) { switch (purpose) { case proto::BackgroundFetchOptions_ImageResource_Purpose_ANY: ir.purpose.push_back(blink::Manifest::ImageResource::Purpose::ANY); break; case proto::BackgroundFetchOptions_ImageResource_Purpose_BADGE: ir.purpose.push_back( blink::Manifest::ImageResource::Purpose::BADGE); break; } } } if (!metadata.icon().empty()) { // Start an icon deserialization SubTask on another thread, then finish. AddSubTask(std::make_unique<DeserializeIconTask>( this, sub_task_init(), base::BindOnce(&FillFromMetadataTask::FinishTask, weak_factory_.GetWeakPtr()), metadata.release_icon())); } else { // Immediately finish. FinishTask(); } } base::WeakPtrFactory<FillFromMetadataTask> weak_factory_; // Keep as last. DISALLOW_COPY_AND_ASSIGN(FillFromMetadataTask); }; // Asynchronously calls the SubTasks required to collect all the information for // the BackgroundFetchInitializationData. class FillBackgroundFetchInitializationDataTask : public InitializationSubTask { public: FillBackgroundFetchInitializationDataTask(DatabaseTaskHost* host, const SubTaskInit& sub_task_init, base::OnceClosure done_closure) : InitializationSubTask(host, sub_task_init, std::move(done_closure)), weak_factory_(this) {} ~FillBackgroundFetchInitializationDataTask() override = default; void Start() override { // We need 3 queries to get the initialization data. These are wrapped // in a BarrierClosure to avoid querying them serially. // 1. Metadata // 2. Active Requests // 3. Completed Requests // 4. UI Title base::RepeatingClosure barrier_closure = base::BarrierClosure( 4u, base::BindOnce(&FillBackgroundFetchInitializationDataTask::FinishTask, weak_factory_.GetWeakPtr())); AddSubTask(std::make_unique<FillFromMetadataTask>(this, sub_task_init(), barrier_closure)); AddSubTask(std::make_unique<GetCompletedRequestsTask>(this, sub_task_init(), barrier_closure)); AddSubTask(std::make_unique<GetActiveRequestsTask>(this, sub_task_init(), barrier_closure)); AddSubTask( std::make_unique<GetTitleTask>(this, sub_task_init(), barrier_closure)); } private: base::WeakPtrFactory<FillBackgroundFetchInitializationDataTask> weak_factory_; // Keep as last. DISALLOW_COPY_AND_ASSIGN(FillBackgroundFetchInitializationDataTask); }; } // namespace BackgroundFetchInitializationData::BackgroundFetchInitializationData() = default; BackgroundFetchInitializationData::BackgroundFetchInitializationData( BackgroundFetchInitializationData&&) = default; BackgroundFetchInitializationData::~BackgroundFetchInitializationData() = default; GetInitializationDataTask::GetInitializationDataTask( DatabaseTaskHost* host, GetInitializationDataCallback callback) : DatabaseTask(host), callback_(std::move(callback)), weak_factory_(this) {} GetInitializationDataTask::~GetInitializationDataTask() = default; void GetInitializationDataTask::Start() { service_worker_context()->GetUserDataForAllRegistrationsByKeyPrefix( kActiveRegistrationUniqueIdKeyPrefix, base::BindOnce(&GetInitializationDataTask::DidGetRegistrations, weak_factory_.GetWeakPtr())); } void GetInitializationDataTask::DidGetRegistrations( const std::vector<std::pair<int64_t, std::string>>& user_data, blink::ServiceWorkerStatusCode status) { switch (ToDatabaseStatus(status)) { case DatabaseStatus::kFailed: error_ = blink::mojom::BackgroundFetchError::STORAGE_ERROR; FinishTask(); return; case DatabaseStatus::kNotFound: case DatabaseStatus::kOk: break; } if (user_data.empty()) { FinishTask(); return; } base::RepeatingClosure barrier_closure = base::BarrierClosure( user_data.size(), base::BindOnce(&GetInitializationDataTask::FinishTask, weak_factory_.GetWeakPtr())); for (const auto& ud : user_data) { auto insertion_result = initialization_data_map_.emplace( ud.second, BackgroundFetchInitializationData()); DCHECK(insertion_result.second); // Check unique_id is in fact unique. AddSubTask(std::make_unique<FillBackgroundFetchInitializationDataTask>( this, InitializationSubTask::SubTaskInit{ ud.first, ud.second, &insertion_result.first->second /* initialization_data */, &error_}, barrier_closure)); } } void GetInitializationDataTask::FinishTask() { std::vector<BackgroundFetchInitializationData> results; results.reserve(initialization_data_map_.size()); for (auto& id : initialization_data_map_) results.emplace_back(std::move(id.second)); std::move(callback_).Run(error_, std::move(results)); Finished(); // Destroys |this|. } } // namespace background_fetch } // namespace content
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
6c66d885d6eb483e567145778d40249e300db422
6d7e17a38f63fb7dbe39f530c3601ae3c4d011f0
/exam1/decerementingpointer.cpp
f2fd782c79903126950989880781ba705966a463
[]
no_license
Abraham-Moraes-Arroyo/cpp
09d6bfcbe60f1d485b196c90220d591ab3507be9
54dc0b3ebbe2abd16e3fbd036ff20751710375f7
refs/heads/main
2023-08-29T11:41:41.349348
2021-10-26T15:18:40
2021-10-26T15:18:40
411,108,815
1
0
null
null
null
null
UTF-8
C++
false
false
893
cpp
// Decrementing a pointer Variable #include <iostream> using namespace std; int main(){ const int N=6; int A[N]= {2,4,8,16,32,64}; int *ptr; /* here we want to make the ptr point to the last element in the array (i.e. address location of last element) and then move the poitner to the first locaiton in the array, printing the address and stored values */ ptr= &A[N-1];// if we wanted the poitner to point //to the first element in the array we would // siply ptr=A // but we want to et ptr poitn to the address of the // last element for (int i= N-1; i>=0; i--){ cout <<"Address of A[ "<< i << "] is "; cout << ptr<< endl; cout << "Value of A[" << i << "] is "; cout << *ptr<< endl; --ptr;// decrement the poitner to point to // the next location in memory } }
[ "noreply@github.com" ]
Abraham-Moraes-Arroyo.noreply@github.com
4efeadd63723034879ea79c2f73b75c398268dad
dd9576fac4013ec8a8cefb2f9c51d49b3879d154
/input_map_editor.h
ed4df0d7aea99f93b810eb9320fa9f8e9ef9b432
[ "MIT" ]
permissive
Relintai/ui_extensions
59fc87d7b064fa38436a9dc707324d3ae3ec988a
6b55d982066927a47ac3377f47fa1d32a67d22bc
refs/heads/master
2023-01-22T15:44:26.031067
2023-01-09T20:17:03
2023-01-09T20:17:03
182,405,882
2
3
null
null
null
null
UTF-8
C++
false
false
5,216
h
/*************************************************************************/ /* originally project_settings_editor.h */ /*************************************************************************/ /* This file is (originally) the part of: */ /* GODOT ENGINE */ /* https://godotengine.org */ /*************************************************************************/ /* Copyright (c) 2007-2020 Juan Linietsky, Ariel Manzur. */ /* Copyright (c) 2014-2020 Godot Engine contributors (cf. AUTHORS.md). */ /* */ /* Permission is hereby granted, free of charge, to any person obtaining */ /* a copy of this software and associated documentation files (the */ /* "Software"), to deal in the Software without restriction, including */ /* without limitation the rights to use, copy, modify, merge, publish, */ /* distribute, sublicense, and/or sell copies of the Software, and to */ /* permit persons to whom the Software is furnished to do so, subject to */ /* the following conditions: */ /* */ /* The above copyright notice and this permission notice shall be */ /* included in all copies or substantial portions of the Software. */ /* */ /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ /* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/ /* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ /* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /*************************************************************************/ #ifndef INPUT_MAP_EDITOR_H #define INPUT_MAP_EDITOR_H #include "bs_input_event_key.h" #include "scene/gui/dialogs.h" #include "scene/gui/margin_container.h" #include "scene/gui/menu_button.h" #include "scene/gui/option_button.h" #include "scene/gui/panel_container.h" #include "scene/gui/popup_menu.h" #include "scene/gui/tree.h" class InputMapEditor : public MarginContainer { GDCLASS(InputMapEditor, MarginContainer); enum InputType { INPUT_KEY, INPUT_JOY_BUTTON, INPUT_JOY_MOTION, INPUT_MOUSE_BUTTON }; enum LocaleFilter { SHOW_ALL_LOCALES, SHOW_ONLY_SELECTED_LOCALES, }; Timer *timer; InputType add_type; String add_at; int edit_idx; AcceptDialog *message; LineEdit *category; LineEdit *property; OptionButton *type; PopupMenu *popup_add; ConfirmationDialog *press_a_key; Label *press_a_key_label; ConfirmationDialog *device_input; OptionButton *device_id; OptionButton *device_index; Label *device_index_label; Tree *input_editor; bool setting; Ref<InputEventKey> last_wait_for_key; Ref<Texture> _add_texture; Ref<Texture> _remove_texture; Ref<Texture> _edit_texture; Ref<Texture> _keyboard_texture; Ref<Texture> _joybutton_texture; Ref<Texture> _joyaxis_texture; Ref<Texture> _mouse_texture; void _update_actions(); void _save(); void _add_item(int p_item, Ref<InputEvent> p_exiting_event = NULL); void _edit_item(Ref<InputEvent> p_exiting_event); void _device_input_add(); void _item_checked(const String &p_item, bool p_check); void _action_selected(); void _action_edited(); void _action_activated(); void _action_button_pressed(Object *p_obj, int p_column, int p_id); void _wait_for_key(const Ref<InputEvent> &p_event); void _press_a_key_confirm(); void _show_last_added(const Ref<InputEvent> &p_event, const String &p_name); void _settings_prop_edited(const String &p_name); void _settings_changed(); Variant get_drag_data_fw(const Point2 &p_point, Control *p_from); bool can_drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from) const; void drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from); protected: void _notification(int p_what); static void _bind_methods(); int _get_current_device(); void _set_current_device(int i_device); String _get_device_string(int i_device); public: Ref<Texture> get_add_texture(); void set_add_texture(const Ref<Texture> &tex); Ref<Texture> get_remove_texture(); void set_remove_texture(const Ref<Texture> &tex); Ref<Texture> get_edit_texture(); void set_edit_texture(const Ref<Texture> &tex); Ref<Texture> get_keyboard_texture(); void set_keyboard_texture(const Ref<Texture> &tex); Ref<Texture> get_joybutton_texture(); void set_joybutton_texture(const Ref<Texture> &tex); Ref<Texture> get_joyaxis_texture(); void set_joyaxis_texture(const Ref<Texture> &tex); Ref<Texture> get_mouse_texture(); void set_mouse_texture(const Ref<Texture> &tex); void queue_save(); InputMapEditor(); }; #endif // PROJECT_SETTINGS_H
[ "relintai@gmail.com" ]
relintai@gmail.com
11f70b0ac9f53effc0dade7567be78dd64b042df
f5fc320bd96fb8a4474502a2845af6798245d3dd
/Scanner.h
92840dbbf6534022d9dad9f611181026cdf95ce0
[]
no_license
Taylorbrad/CS236-Project1-Redo
302aa1aea88abf98aaaf768f91ae950127ff3d92
9ceaf381cd5bc5e5794e6823b964cfce5fb8fb2a
refs/heads/master
2020-07-31T04:31:21.909871
2019-09-24T22:37:00
2019-09-24T22:37:00
210,485,775
0
0
null
null
null
null
UTF-8
C++
false
false
330
h
#pragma once //only compile this file once #include <stack> #include <iostream> #include <fstream> #include <cctype> using namespace std; class Scanner { public: Scanner(string inFile); void tokenize(); private: stack <char> tokenTemp; ifstream inFile; string fileName; };
[ "noreply@github.com" ]
Taylorbrad.noreply@github.com
c431a244618808ebcdebb9f435f9a14f06dd1e8e
d6613574df6a0a3b3d760d59e41932bdb57e3206
/cpp-opencv-app/opencv-app/opencv-app/main.cpp
5addacfe21d17c9e4c09df7da1febb67538acce6
[]
no_license
vehicularkech/Selfie-autonomous-car
93c3f97283c8c28b452d90f5e1987ebec01f6aa4
13076eba48322e69df3e07b659a02e2c7a6fee4b
refs/heads/master
2020-03-16T21:45:04.573484
2018-04-10T19:46:16
2018-04-10T19:46:16
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,130
cpp
#include <iostream> #include <thread> #include <chrono> #include <mutex> #include <include/usb.hpp> #include <include/sharedmemory.hpp> #include <include/lanedetector.hpp> // Race mode ---> fps boost // Debug mode --> display data //#define RACE_MODE #define DEBUG_MODE #define CAMERA_INDEX 0 #define CAM_RES_X 640 #define CAM_RES_Y 360 #define FRAME_TIME 30 // Handlers for custom classes USB Usb_STM; USB Usb_LIDAR; LaneDetector laneDetector; // Variables for communication between threads bool close_app = false; std::mutex mu; // Function declarations void read_from_STM_thread(USB &STM); int main() { #ifdef DEBUG_MODE //FPS struct timespec start, end; unsigned short licznik_czas = 0; float seconds = 0; float fps = 0; #endif // Declaration of cv::MAT variables cv::Mat frame(CAM_RES_Y, CAM_RES_X, CV_8UC4); /* // STM communication init if(Usb_STM.init(B1152000) < 0) { std::cout << "Closing app!" << std::endl; return -1; } // Lidar communication init if(Usb_LIDAR.init(B115200) < 0) { std::cout << "Closing app!" << std::endl; return -1; } */ // Camera init cv::VideoCapture camera; camera.open(CAMERA_INDEX, cv::CAP_V4L2); // Check if camera is opened propely if (!camera.isOpened()) { std::cout << "Error could not open camera on port: " << CAMERA_INDEX << std::endl << "Closing app!" << std::endl; camera.release(); return 0; } else { // Set resolution camera.set(cv::CAP_PROP_FRAME_WIDTH, CAM_RES_X); camera.set(cv::CAP_PROP_FRAME_HEIGHT, CAM_RES_Y); //Set and check decoding of frames camera.set(cv::CAP_PROP_CONVERT_RGB, true); std::cout << "RGB: " << camera.get(cv::CAP_PROP_CONVERT_RGB) << std::endl; } /* //Read from file cv::Mat frame_gray(CAM_RES_Y, CAM_RES_X, CV_8UC1); frame_gray = cv::imread("../../data/SELFIE-example-img-prosto.png", CV_LOAD_IMAGE_GRAYSCALE); if(!frame_gray.data) { std::cout << "No data!" << std::endl << "Closing app!" << std::endl; return 0; } */ // Start threads std::thread USB_STM_in_thread(read_from_STM_thread, std::ref(Usb_STM)); while(true) { #ifdef DEBUG_MODE //FPS if(licznik_czas == 0) { clock_gettime(CLOCK_MONOTONIC, &start); } //FPS #endif // Get new frame from camera camera >> frame; /* // Process frame laneDetector.applyBlur(); laneDetector.colorTransform(); laneDetector.edgeDetect(); laneDetector.detectLine(); laneDetector.detectLine(); laneDetector.drawData(); laneDetector.drawData(); */ #ifdef DEBUG_MODE // Display info on screen cv::imshow("Camera", frame); // Get input from user char keypressed = (char)cv::waitKey(FRAME_TIME); // Process given input if( keypressed == 27 ) break; switch(keypressed) { case '1': break; case '2': break; default: break; } if(licznik_czas > 100) { licznik_czas = 0; clock_gettime(CLOCK_MONOTONIC, &end); seconds = (end.tv_sec - start.tv_sec); fps = 1 / (seconds / 100); std::cout << "FPS: " << fps << std::endl; } else { licznik_czas++; } #endif } close_app = true; USB_STM_in_thread.join(); std::cout << "KK skończyłęm!" << std::endl; return 0; } void read_from_STM_thread(USB &STM) { while(!close_app) { // Read new data if available if(STM.read_one_chunk()) { // Process data //Save new data std::unique_lock<std::mutex> locker(mu); locker.unlock(); } else { // Wait 5ms std::this_thread::sleep_for(std::chrono::milliseconds(5)); } } }
[ "mgmateusz.grudzien@gmail.com" ]
mgmateusz.grudzien@gmail.com
50b6e6697bef0f85d9d3547466c757526cb7fa3a
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5658571765186560_1/C++/dtalamas24/main.cpp
7e0d3c636ab0824ce71832568ca70af2f13d0709
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
C++
false
false
1,560
cpp
#include <cstdio> #include <iostream> using namespace std; int casos, x, cto1, cto2; int main() { freopen("input.in","r",stdin); freopen("output.txt","w",stdout); scanf("%d",&casos); for(int v=1; v<=casos; v++){ scanf("%d%d%d",&x,&cto1,&cto2); printf("Case #%d: ",v); if(cto1*cto2%x != 0){ printf("RICHARD\n"); continue; } if(x>max(cto1,cto2)){ printf("RICHARD\n"); continue; } if(x>6){ printf("RICHARD\n"); continue; } if(x > min(cto1, cto2) * 2){ printf("RICHARD\n"); continue; } if(x==1){ printf("GABRIEL\n"); continue; } if(x==2){ if(cto1==cto2 and cto1==1){ printf("RICHARD\n"); } else { printf("GABRIEL\n"); } continue; } if(x==3){ printf("GABRIEL\n"); continue; } if(x==4){ if(min(cto1, cto2)<=2){ printf("RICHARD\n"); } else { printf("GABRIEL\n"); } continue; } if(x==5 or x==6){ if(min(cto1, cto2)<4){ printf("RICHARD\n"); continue; } printf("GABRIEL\n"); continue; } } return 0; }
[ "eewestman@gmail.com" ]
eewestman@gmail.com
b0aab7f2aea96374af60a5d3be81ed758677cc92
4835f48071c4f507cfe228fe299826ae21af00ab
/src/threshold_tozero/threshold_tozero_generator.cc
04bc10c689ce6b107d271d01b26f3bbe009e159c
[ "MIT" ]
permissive
kennychou0529/Halide-elements
90755eabd0b956b58759955b2628b17661dd540c
2a06efc97ee17c7d4137105b27989f61c718c36f
refs/heads/master
2020-03-12T14:16:32.877635
2018-04-18T18:11:17
2018-04-18T18:11:20
null
0
0
null
null
null
null
UTF-8
C++
false
false
800
cc
#include <cstdint> #include "Halide.h" #include "Element.h" using namespace Halide; using Halide::Element::schedule; template<typename T> class ThresholdTozero : public Halide::Generator<ThresholdTozero<T>> { ImageParam src{type_of<T>(), 2, "src"}; Param<T> threshold{"threshold", 1}; GeneratorParam<int32_t> width{"width", 1024}; GeneratorParam<int32_t> height{"height", 768}; public: Func build() { Func dst{"dst"}; dst = Element::threshold_tozero<T>(src, threshold); schedule(src, {width, height}); schedule(dst, {width, height}); return dst; } }; RegisterGenerator<ThresholdTozero<uint8_t>> threshold_tozero_u8{"threshold_tozero_u8"}; RegisterGenerator<ThresholdTozero<uint16_t>> threshold_tozero_u16{"threshold_tozero_u16"};
[ "momoko.kono@fixstars.com" ]
momoko.kono@fixstars.com
3ab287d1a6dd1e286a7f5c76230315f8008cc688
722f50138b74e5e1262e3913d6eea58d824a0cac
/vr-task/Cubemap.cpp
e3684bfc1e0b1980796e4ccc4f2c55bb93d24071
[ "Apache-2.0" ]
permissive
Rexagon/vr-task
fde833d95dbe7942b17a2427f308ad2f5b239811
dc178514c89dd014bf33d2b680350244b87cf340
refs/heads/master
2021-07-11T15:44:32.638254
2017-10-11T14:25:07
2017-10-11T14:25:07
105,547,599
0
0
null
null
null
null
UTF-8
C++
false
false
1,315
cpp
#include "Cubemap.h" #include <SFML/Graphics/Image.hpp> #include "FileManager.h" Cubemap::Cubemap() { glGenTextures(1, &m_id); } Cubemap::~Cubemap() { glDeleteTextures(1, &m_id); } void Cubemap::init(const std::vector<std::string>& textures) { bind(); for (size_t i = 0; i < textures.size() && i < 6; ++i) { std::vector<char> imageSource = FileManager::open(textures[i]); sf::Image image; if (!image.loadFromMemory(imageSource.data(), imageSource.size())) { throw std::runtime_error("Unable to load texture: \"" + textures[i] + "\""); } glTexImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_X + i, 0, GL_RGBA, image.getSize().x, image.getSize().y, 0, GL_RGBA, GL_UNSIGNED_BYTE, image.getPixelsPtr()); } glTexParameteri(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_MAG_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); glTexParameteri(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); glTexParameteri(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_WRAP_R, GL_CLAMP_TO_EDGE); unbind(); } void Cubemap::bind(int unit) { if (unit > -1) { glActiveTexture(GL_TEXTURE0 + unit); } glBindTexture(GL_TEXTURE_CUBE_MAP, m_id); } void Cubemap::unbind() { glBindTexture(GL_TEXTURE_CUBE_MAP, 0); }
[ "reide740@gmail.com" ]
reide740@gmail.com
6f6314955f8533aa315c9d230393a6a0c9674aba
1ff0d46c60c60430467d61fe1a7ccd32719673d1
/RTIMULib2-Teensy/libraries/RTIMULib/utility/RTIMUMPU9250.cpp
4705398571b438bc68bf0a743cd5474b5201a7a6
[ "MIT" ]
permissive
ccccjason/IMU
f0b071f4a7299b0ec3c64f44dbf6a4ce3ba29ec9
81d3ad6cb2f5efb27ab94a3bba7fe8539f1348a0
refs/heads/master
2021-01-10T13:33:38.049492
2016-04-14T13:36:10
2016-04-14T13:36:10
53,907,671
2
1
null
null
null
null
UTF-8
C++
false
false
22,164
cpp
//////////////////////////////////////////////////////////////////////////// // // This file is part of RTIMULib // // Copyright (c) 2014-2015, richards-tech // // 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. // The MPU-9250 and SPI driver code is based on code generously supplied by // staslock@gmail.com (www.clickdrive.io) #include "RTIMUMPU9250.h" #include "RTIMUSettings.h" RTIMUMPU9250::RTIMUMPU9250(RTIMUSettings* settings) : RTIMU(settings) { } RTIMUMPU9250::~RTIMUMPU9250() { } bool RTIMUMPU9250::setSampleRate(int rate) { if ((rate < MPU9250_SAMPLERATE_MIN) || (rate > MPU9250_SAMPLERATE_MAX)) { HAL_ERROR1("Illegal sample rate %d\n", rate); return false; } // Note: rates interact with the lpf settings if ((rate < MPU9250_SAMPLERATE_MAX) && (rate >= 8000)) { rate = 8000; } if ((rate < 8000) && (rate >= 1000)) { rate = 1000; } if (rate < 1000) { int sampleDiv = (1000 / rate) - 1; m_sampleRate = 1000 / (1 + sampleDiv); } else { m_sampleRate = rate; } m_sampleInterval = (uint64_t)1000000 / m_sampleRate; return true; } bool RTIMUMPU9250::setGyroLpf(unsigned char lpf) { switch (lpf) { case MPU9250_GYRO_LPF_8800: case MPU9250_GYRO_LPF_3600: case MPU9250_GYRO_LPF_250: case MPU9250_GYRO_LPF_184: case MPU9250_GYRO_LPF_92: case MPU9250_GYRO_LPF_41: case MPU9250_GYRO_LPF_20: case MPU9250_GYRO_LPF_10: case MPU9250_GYRO_LPF_5: m_gyroLpf = lpf; return true; default: HAL_ERROR1("Illegal MPU9250 gyro lpf %d\n", lpf); return false; } } bool RTIMUMPU9250::setAccelLpf(unsigned char lpf) { switch (lpf) { case MPU9250_ACCEL_LPF_1130: case MPU9250_ACCEL_LPF_460: case MPU9250_ACCEL_LPF_184: case MPU9250_ACCEL_LPF_92: case MPU9250_ACCEL_LPF_41: case MPU9250_ACCEL_LPF_20: case MPU9250_ACCEL_LPF_10: case MPU9250_ACCEL_LPF_5: m_accelLpf = lpf; return true; default: HAL_ERROR1("Illegal MPU9250 accel lpf %d\n", lpf); return false; } } bool RTIMUMPU9250::setCompassRate(int rate) { if ((rate < MPU9250_COMPASSRATE_MIN) || (rate > MPU9250_COMPASSRATE_MAX)) { HAL_ERROR1("Illegal compass rate %d\n", rate); return false; } m_compassRate = rate; return true; } bool RTIMUMPU9250::setGyroFsr(unsigned char fsr) { switch (fsr) { case MPU9250_GYROFSR_250: m_gyroFsr = fsr; m_gyroScale = RTMATH_PI / (131.0 * 180.0); return true; case MPU9250_GYROFSR_500: m_gyroFsr = fsr; m_gyroScale = RTMATH_PI / (62.5 * 180.0); return true; case MPU9250_GYROFSR_1000: m_gyroFsr = fsr; m_gyroScale = RTMATH_PI / (32.8 * 180.0); return true; case MPU9250_GYROFSR_2000: m_gyroFsr = fsr; m_gyroScale = RTMATH_PI / (16.4 * 180.0); return true; default: HAL_ERROR1("Illegal MPU9250 gyro fsr %d\n", fsr); return false; } } bool RTIMUMPU9250::setAccelFsr(unsigned char fsr) { switch (fsr) { case MPU9250_ACCELFSR_2: m_accelFsr = fsr; m_accelScale = 1.0 / 16384.0; return true; case MPU9250_ACCELFSR_4: m_accelFsr = fsr; m_accelScale = 1.0 / 8192.0; return true; case MPU9250_ACCELFSR_8: m_accelFsr = fsr; m_accelScale = 1.0 / 4096.0; return true; case MPU9250_ACCELFSR_16: m_accelFsr = fsr; m_accelScale = 1.0 / 2048.0; return true; default: HAL_ERROR1("Illegal MPU9250 accel fsr %d\n", fsr); return false; } } bool RTIMUMPU9250::IMUInit() { unsigned char result; m_firstTime = true; #ifdef MPU9250_CACHE_MODE m_cacheIn = m_cacheOut = m_cacheCount = 0; #endif // set validity flags m_imuData.fusionPoseValid = false; m_imuData.fusionQPoseValid = false; m_imuData.gyroValid = true; m_imuData.accelValid = true; m_imuData.compassValid = true; m_imuData.pressureValid = false; m_imuData.temperatureValid = false; m_imuData.humidityValid = false; // configure IMU m_slaveAddr = m_settings->m_I2CSlaveAddress; setSampleRate(m_settings->m_MPU9250GyroAccelSampleRate); setCompassRate(m_settings->m_MPU9250CompassSampleRate); setGyroLpf(m_settings->m_MPU9250GyroLpf); setAccelLpf(m_settings->m_MPU9250AccelLpf); setGyroFsr(m_settings->m_MPU9250GyroFsr); setAccelFsr(m_settings->m_MPU9250AccelFsr); setCalibrationData(); // enable the bus if (!m_settings->HALOpen()) { return false; } // reset the MPU9250 if (!m_settings->HALWrite(m_slaveAddr, MPU9250_PWR_MGMT_1, 0x80, "Failed to initiate MPU9250 reset")) { return false; } m_settings->delayMs(100); if (!m_settings->HALWrite(m_slaveAddr, MPU9250_PWR_MGMT_1, 0x00, "Failed to stop MPU9250 reset")) { return false; } if (!m_settings->HALRead(m_slaveAddr, MPU9250_WHO_AM_I, 1, &result, "Failed to read MPU9250 id")) { return false; } if (result != MPU9250_ID) { HAL_ERROR2("Incorrect %s id %d\n", IMUName(), result); return false; } // now configure the various components if (!setGyroConfig()) { return false; } if (!setAccelConfig()) { return false; } if (!setSampleRate()) { return false; } if (!compassSetup()) { return false; } if (!setCompassRate()) { return false; } // enable the sensors if (!m_settings->HALWrite(m_slaveAddr, MPU9250_PWR_MGMT_1, 1, "Failed to set pwr_mgmt_1")) { return false; } if (!m_settings->HALWrite(m_slaveAddr, MPU9250_PWR_MGMT_2, 0, "Failed to set pwr_mgmt_2")) { return false; } // select the data to go into the FIFO and enable if (!resetFifo()) { return false; } gyroBiasInit(); HAL_INFO1("%s init complete\n", IMUName()); return true; } bool RTIMUMPU9250::resetFifo() { if (!m_settings->HALWrite(m_slaveAddr, MPU9250_INT_ENABLE, 0, "Writing int enable")) { return false; } if (!m_settings->HALWrite(m_slaveAddr, MPU9250_FIFO_EN, 0, "Writing fifo enable")) { return false; } if (!m_settings->HALWrite(m_slaveAddr, MPU9250_USER_CTRL, 0, "Writing user control")) { return false; } if (!m_settings->HALWrite(m_slaveAddr, MPU9250_USER_CTRL, 0x04, "Resetting fifo")) { return false; } if (!m_settings->HALWrite(m_slaveAddr, MPU9250_USER_CTRL, 0x60, "Enabling the fifo")) { return false; } m_settings->delayMs(50); if (!m_settings->HALWrite(m_slaveAddr, MPU9250_INT_ENABLE, 1, "Writing int enable")) { return false; } if (!m_settings->HALWrite(m_slaveAddr, MPU9250_FIFO_EN, 0x78, "Failed to set FIFO enables")) { return false; } return true; } bool RTIMUMPU9250::setGyroConfig() { unsigned char gyroConfig = m_gyroFsr + ((m_gyroLpf >> 3) & 3); unsigned char gyroLpf = m_gyroLpf & 7; if (!m_settings->HALWrite(m_slaveAddr, MPU9250_GYRO_CONFIG, gyroConfig, "Failed to write gyro config")) { return false; } if (!m_settings->HALWrite(m_slaveAddr, MPU9250_GYRO_LPF, gyroLpf, "Failed to write gyro lpf")) { return false; } return true; } bool RTIMUMPU9250::setAccelConfig() { if (!m_settings->HALWrite(m_slaveAddr, MPU9250_ACCEL_CONFIG, m_accelFsr, "Failed to write accel config")) { return false; } if (!m_settings->HALWrite(m_slaveAddr, MPU9250_ACCEL_LPF, m_accelLpf, "Failed to write accel lpf")) { return false; } return true; } bool RTIMUMPU9250::setSampleRate() { if (m_sampleRate > 1000) { return true; // SMPRT not used above 1000Hz } if (!m_settings->HALWrite(m_slaveAddr, MPU9250_SMPRT_DIV, (unsigned char)(1000 / m_sampleRate - 1), "Failed to set sample rate")) { return false; } return true; } bool RTIMUMPU9250::compassSetup() { unsigned char asa[3]; if (m_settings->m_busIsI2C) { // I2C mode bypassOn(); // get fuse ROM data if (!m_settings->HALWrite(AK8963_ADDRESS, AK8963_CNTL, 0, "Failed to set compass in power down mode 1")) { bypassOff(); return false; } if (!m_settings->HALWrite(AK8963_ADDRESS, AK8963_CNTL, 0x0f, "Failed to set compass in fuse ROM mode")) { bypassOff(); return false; } if (!m_settings->HALRead(AK8963_ADDRESS, AK8963_ASAX, 3, asa, "Failed to read compass fuse ROM")) { bypassOff(); return false; } if (!m_settings->HALWrite(AK8963_ADDRESS, AK8963_CNTL, 0, "Failed to set compass in power down mode 2")) { bypassOff(); return false; } bypassOff(); } else { // SPI mode bypassOff(); if (!m_settings->HALWrite(m_slaveAddr, MPU9250_I2C_MST_CTRL, 0x40, "Failed to set I2C master mode")) { return false; } if (!m_settings->HALWrite(m_slaveAddr, MPU9250_I2C_SLV0_ADDR, 0x80 | AK8963_ADDRESS, "Failed to set slave 0 address")) { return false; } if (!m_settings->HALWrite(m_slaveAddr, MPU9250_I2C_SLV0_REG, AK8963_ASAX, "Failed to set slave 0 reg")) { return false; } if (!m_settings->HALWrite(m_slaveAddr, MPU9250_I2C_SLV0_CTRL, 0x83, "Failed to set slave 0 ctrl")) { return false; } if (!m_settings->HALWrite(m_slaveAddr, MPU9250_I2C_SLV1_ADDR, AK8963_ADDRESS, "Failed to set slave 1 address")) { return false; } if (!m_settings->HALWrite(m_slaveAddr, MPU9250_I2C_SLV1_REG, AK8963_CNTL, "Failed to set slave 1 reg")) { return false; } if (!m_settings->HALWrite(m_slaveAddr, MPU9250_I2C_SLV1_CTRL, 0x81, "Failed to set slave 1 ctrl")) { return false; } if (!m_settings->HALWrite(m_slaveAddr, MPU9250_I2C_SLV1_DO, 0x00, "Failed to set compass in power down mode 2")) { return false; } m_settings->delayMs(10); if (!m_settings->HALWrite(m_slaveAddr, MPU9250_I2C_SLV1_DO, 0x0f, "Failed to set compass in fuse mode")) { return false; } if (!m_settings->HALRead(m_slaveAddr, MPU9250_EXT_SENS_DATA_00, 3, asa, "Failed to read compass rom")) { return false; } if (!m_settings->HALWrite(m_slaveAddr, MPU9250_I2C_SLV1_DO, 0x0, "Failed to set compass in power down mode 2")) { return false; } } // both interfaces // convert asa to usable scale factor m_compassAdjust[0] = ((float)asa[0] - 128.0) / 256.0 + 1.0f; m_compassAdjust[1] = ((float)asa[1] - 128.0) / 256.0 + 1.0f; m_compassAdjust[2] = ((float)asa[2] - 128.0) / 256.0 + 1.0f; if (!m_settings->HALWrite(m_slaveAddr, MPU9250_I2C_MST_CTRL, 0x40, "Failed to set I2C master mode")) { return false; } if (!m_settings->HALWrite(m_slaveAddr, MPU9250_I2C_SLV0_ADDR, 0x80 | AK8963_ADDRESS, "Failed to set slave 0 address")) { return false; } if (!m_settings->HALWrite(m_slaveAddr, MPU9250_I2C_SLV0_REG, AK8963_ST1, "Failed to set slave 0 reg")) { return false; } if (!m_settings->HALWrite(m_slaveAddr, MPU9250_I2C_SLV0_CTRL, 0x88, "Failed to set slave 0 ctrl")) { return false; } if (!m_settings->HALWrite(m_slaveAddr, MPU9250_I2C_SLV1_ADDR, AK8963_ADDRESS, "Failed to set slave 1 address")) { return false; } if (!m_settings->HALWrite(m_slaveAddr, MPU9250_I2C_SLV1_REG, AK8963_CNTL, "Failed to set slave 1 reg")) { return false; } if (!m_settings->HALWrite(m_slaveAddr, MPU9250_I2C_SLV1_CTRL, 0x81, "Failed to set slave 1 ctrl")) { return false; } if (!m_settings->HALWrite(m_slaveAddr, MPU9250_I2C_SLV1_DO, 0x1, "Failed to set slave 1 DO")) { return false; } if (!m_settings->HALWrite(m_slaveAddr, MPU9250_I2C_MST_DELAY_CTRL, 0x3, "Failed to set mst delay")) { return false; } return true; } bool RTIMUMPU9250::setCompassRate() { int rate; rate = m_sampleRate / m_compassRate - 1; if (rate > 31) { rate = 31; } if (!m_settings->HALWrite(m_slaveAddr, MPU9250_I2C_SLV4_CTRL, rate, "Failed to set slave ctrl 4")) { return false; } return true; } bool RTIMUMPU9250::bypassOn() { unsigned char userControl; if (!m_settings->HALRead(m_slaveAddr, MPU9250_USER_CTRL, 1, &userControl, "Failed to read user_ctrl reg")) { return false; } userControl &= ~0x20; if (!m_settings->HALWrite(m_slaveAddr, MPU9250_USER_CTRL, 1, &userControl, "Failed to write user_ctrl reg")) { return false; } m_settings->delayMs(50); if (!m_settings->HALWrite(m_slaveAddr, MPU9250_INT_PIN_CFG, 0x82, "Failed to write int_pin_cfg reg")) { return false; } m_settings->delayMs(50); return true; } bool RTIMUMPU9250::bypassOff() { unsigned char userControl; if (!m_settings->HALRead(m_slaveAddr, MPU9250_USER_CTRL, 1, &userControl, "Failed to read user_ctrl reg")) { return false; } userControl |= 0x20; if (!m_settings->HALWrite(m_slaveAddr, MPU9250_USER_CTRL, 1, &userControl, "Failed to write user_ctrl reg")) { return false; } m_settings->delayMs(50); if (!m_settings->HALWrite(m_slaveAddr, MPU9250_INT_PIN_CFG, 0x80, "Failed to write int_pin_cfg reg")) { return false; } m_settings->delayMs(50); return true; } int RTIMUMPU9250::IMUGetPollInterval() { if (m_sampleRate > 400) { return 1; } else { return (400 / m_sampleRate); } } bool RTIMUMPU9250::IMURead() { unsigned char fifoCount[2]; unsigned int count; unsigned char fifoData[12]; unsigned char compassData[8]; if (!m_settings->HALRead(m_slaveAddr, MPU9250_FIFO_COUNT_H, 2, fifoCount, "Failed to read fifo count")) { return false; } count = ((unsigned int)fifoCount[0] << 8) + fifoCount[1]; if (count == 512) { HAL_INFO("MPU-9250 fifo has overflowed"); resetFifo(); m_imuData.timestamp += m_sampleInterval * (512 / MPU9250_FIFO_CHUNK_SIZE + 1); // try to fix timestamp return false; } #ifdef MPU9250_CACHE_MODE if ((m_cacheCount == 0) && (count >= MPU9250_FIFO_CHUNK_SIZE) && (count < (MPU9250_CACHE_SIZE * MPU9250_FIFO_CHUNK_SIZE))) { // special case of a small fifo and nothing cached - just handle as simple read if (!m_settings->HALRead(m_slaveAddr, MPU9250_FIFO_R_W, MPU9250_FIFO_CHUNK_SIZE, fifoData, "Failed to read fifo data")) { return false; } if (!m_settings->HALRead(m_slaveAddr, MPU9250_EXT_SENS_DATA_00, 8, compassData, "Failed to read compass data")) { return false; } } else { if (count >= (MPU9250_CACHE_SIZE * MPU9250_FIFO_CHUNK_SIZE)) { if (m_cacheCount == MPU9250_CACHE_BLOCK_COUNT) { // all cache blocks are full - discard oldest and update timestamp to account for lost samples m_imuData.timestamp += m_sampleInterval * m_cache[m_cacheOut].count; if (++m_cacheOut == MPU9250_CACHE_BLOCK_COUNT) { m_cacheOut = 0; } m_cacheCount--; } int blockCount = count / MPU9250_FIFO_CHUNK_SIZE; // number of chunks in fifo if (blockCount > MPU9250_CACHE_SIZE) { blockCount = MPU9250_CACHE_SIZE; } if (!m_settings->HALRead(m_slaveAddr, MPU9250_FIFO_R_W, MPU9250_FIFO_CHUNK_SIZE * blockCount, m_cache[m_cacheIn].data, "Failed to read fifo data")) { return false; } if (!m_settings->HALRead(m_slaveAddr, MPU9250_EXT_SENS_DATA_00, 8, m_cache[m_cacheIn].compass, "Failed to read compass data")) { return false; } m_cache[m_cacheIn].count = blockCount; m_cache[m_cacheIn].index = 0; m_cacheCount++; if (++m_cacheIn == MPU9250_CACHE_BLOCK_COUNT) { m_cacheIn = 0; } } // now fifo has been read if necessary, get something to process if (m_cacheCount == 0) { return false; } memcpy(fifoData, m_cache[m_cacheOut].data + m_cache[m_cacheOut].index, MPU9250_FIFO_CHUNK_SIZE); memcpy(compassData, m_cache[m_cacheOut].compass, 8); m_cache[m_cacheOut].index += MPU9250_FIFO_CHUNK_SIZE; if (--m_cache[m_cacheOut].count == 0) { // this cache block is now empty if (++m_cacheOut == MPU9250_CACHE_BLOCK_COUNT) { m_cacheOut = 0; } m_cacheCount--; } } #else if (count > MPU9250_FIFO_CHUNK_SIZE * 40) { // more than 40 samples behind - going too slowly so discard some samples but maintain timestamp correctly while (count >= MPU9250_FIFO_CHUNK_SIZE * 10) { if (!m_settings->HALRead(m_slaveAddr, MPU9250_FIFO_R_W, MPU9250_FIFO_CHUNK_SIZE, fifoData, "Failed to read fifo data")) { return false; } count -= MPU9250_FIFO_CHUNK_SIZE; m_imuData.timestamp += m_sampleInterval; } } if (count < MPU9250_FIFO_CHUNK_SIZE) { return false; } if (!m_settings->HALRead(m_slaveAddr, MPU9250_FIFO_R_W, MPU9250_FIFO_CHUNK_SIZE, fifoData, "Failed to read fifo data")) { return false; } if (!m_settings->HALRead(m_slaveAddr, MPU9250_EXT_SENS_DATA_00, 8, compassData, "Failed to read compass data")) { return false; } #endif RTMath::convertToVector(fifoData, m_imuData.accel, m_accelScale, true); RTMath::convertToVector(fifoData + 6, m_imuData.gyro, m_gyroScale, true); RTMath::convertToVector(compassData + 1, m_imuData.compass, 0.6f, false); // sort out gyro axes m_imuData.gyro.setX(m_imuData.gyro.x()); m_imuData.gyro.setY(-m_imuData.gyro.y()); m_imuData.gyro.setZ(-m_imuData.gyro.z()); // sort out accel data; m_imuData.accel.setX(-m_imuData.accel.x()); // use the compass fuse data adjustments m_imuData.compass.setX(m_imuData.compass.x() * m_compassAdjust[0]); m_imuData.compass.setY(m_imuData.compass.y() * m_compassAdjust[1]); m_imuData.compass.setZ(m_imuData.compass.z() * m_compassAdjust[2]); // sort out compass axes float temp; temp = m_imuData.compass.x(); m_imuData.compass.setX(m_imuData.compass.y()); m_imuData.compass.setY(-temp); // now do standard processing handleGyroBias(); calibrateAverageCompass(); calibrateAccel(); if (m_firstTime) { m_imuData.timestamp = RTMath::currentUSecsSinceEpoch(); } else { m_imuData.timestamp += m_sampleInterval; } m_firstTime = false; // now update the filter updateFusion(); return true; }
[ "jason@" ]
jason@
2d3e2111596b4aec473322b7e8c5b9078677bbdc
d0307c08e07370ef5a78a479a78f51491333528b
/src/tcp-session.cxx
e140f890d57543812b0d072547126c32f49ab5a5
[]
no_license
hipro-builder1/node-beacon-poc
e9451ccdbcea76309f541d4f2d100040d7737bbd
bc5fee26e489226c6dcd5791e4dedbf90ddd6d6e
refs/heads/develop
2023-03-25T18:17:26.816116
2021-03-19T09:44:12
2021-03-19T09:44:12
348,696,369
0
0
null
2021-03-24T10:19:24
2021-03-17T12:11:44
C++
UTF-8
C++
false
false
1,386
cxx
/* Copyright (C) 2008-2021 HiPro IT Solutions Private Limited, * Chennai. All rights reserved. * * This program and the accompanying materials are made available * under the terms described in the LICENSE file which accompanies * this distribution. If the LICENSE file was not attached to this * distribution or for further clarifications, please contact * legal@hipro.co.in. */ #include "tcp-session.h" void TcpSession::start() { m_socket.async_read_some( boost::asio::buffer(m_data, MAX_LENGTH), boost::bind( &TcpSession::handle_read, this, boost::asio::placeholders::error, boost::asio::placeholders::bytes_transferred)); } void TcpSession::handle_read( const boost::system::error_code& error, size_t bytes_transferred) { if (!error) { boost::asio::async_write( m_socket, boost::asio::buffer(m_data, bytes_transferred), boost::bind( &TcpSession::handle_write, this, boost::asio::placeholders::error)); std::cout << "Pong Send" << std::endl; } } void TcpSession::handle_write(const boost::system::error_code& error) { if (!error) { m_socket.async_read_some( boost::asio::buffer(m_data, MAX_LENGTH), std::bind( &TcpSession::handle_read, this, std::placeholders::_1, std::placeholders::_2)); std::cout << "Got Ping" << std::endl; } } /* Local Variables: mode: c++ End: */
[ "kashyap.ekbote@gmail.com" ]
kashyap.ekbote@gmail.com
b339186add5f91e9b609a7092a6ff8d0f711c413
b97f0caba9ed2457359bb26717b7f28f8e0861a2
/A2/A2TASK3/A2Task3/A2Task3/Task3a.cpp
5858fef4a7805e6811077217c775d4f97e62f840
[ "MIT" ]
permissive
zxiy951001/Multicore-GPU-Programming
b815eb13cd32f1bc80e4d143f3754b4722af13b0
c28fc1e55dd7e2bda8d158e7aee0381fa1619d17
refs/heads/master
2022-11-12T21:01:47.803019
2020-06-28T11:25:17
2020-06-28T11:25:17
274,145,155
0
0
MIT
2020-06-28T11:25:19
2020-06-22T13:30:25
C++
UTF-8
C++
false
false
2,692
cpp
//Using OpenCL 1.2 #define CL_USE_DEPRECATED_OPENCL_2_0_APIS //enable exceptions #define __CL_ENABLE_EXCEPTIONS //C++ library and STL headers #include <iostream> #include <vector> #include <fstream> #include <cmath> //OpenCL header dependant on OS #ifdef __APPLE__ #include <OpenCL/cl.hpp> #else #include <CL/cl.hpp> #endif #define NUM_ITERATIONS 1000 #include "common.h" #include "bmpfuncs.h" using namespace std; using namespace cl; int main() { //get selected platform Device devices; Context details; Program programming; Kernel kernel; CommandQueue queue; cl::Platform platform; std::size_t workGroupSize; std::size_t kWorkGroupSize; cl_ulong localMemSize; //declare data and memory object int width, height, size = 0; Buffer bufferA, bufferB; LocalSpaceArg localSpace; bool deviceSelected = true; try { if (!select_one_device(&platform, &devices)) { // if no device selected quit_program("Device not selected."); } else { //create details details = Context(devices); cout << endl; cout << "Checking if programming is built successfully..." << endl; bool programBuilt = build_program(&programming, &details, "/Users/isaacyeo/Desktop/A2Task3/A2Task3/Task3a.cl"); if (programBuilt == false) { // if OpenCL program build error quit_program("OpenCL program build error."); } else { // string fileName = "/Users/isaacyeo/Desktop/A2Task3/A2Task3/peppers.bmp"; // vector <float> luminanceVector; //convert the RGB values in an image to luminance values //set each RGB to luminance values and save image BMP_RGB_to_Luminous(fileName, &width, &height, luminanceVector); //find total number of pixels int numOfElements = width * height; //store all information to vector of cl_float vector <cl_float>imageData(numOfElements); //transfer all information from luminaceVector to imageData for (unsigned int i = 0; i < luminanceVector.size(); i++) { imageData[i] = luminanceVector[i]; } //create kernel kernel = Kernel(programming, "reduction"); //create command queue queue = CommandQueue(details, devices); //get information workGroupSize = devices.getInfo<CL_DEVICE_MAX_WORK_GROUP_SIZE>(); localMemSize = devices.getInfo<CL_DEVICE_LOCAL_MEM_SIZE>(); kWorkGroupSize = kernel.getWorkGroupInfo<CL_KERNEL_WORK_GROUP_SIZE>(devices); } } } catch (Error e) { handle_error(e); cout << e.err() << " (" << lookup_error_code(e.err()) << ")" << endl; } system("Pause"); return 0; }
[ "noreply@github.com" ]
zxiy951001.noreply@github.com
ef8ed0b921e6a4fc6b16b95da5c4704f2edb48b9
fe1a44ebcb523485295b7e8be7c26c5456d66e60
/BTTask_ClearBlackboardValue.cpp
3b3b9f010d43ad969613d3d6b3de6b527608baf0
[]
no_license
Delta0077/SimpleShooter
5e3f860ed6cbf90d81ae6e8d620e16c48e7d430e
8f0ed67261f2c32cd6357ffd77b3c5db0e5e1705
refs/heads/main
2023-03-30T16:43:59.312447
2021-04-04T21:28:25
2021-04-04T21:28:25
347,193,049
0
0
null
null
null
null
UTF-8
C++
false
false
575
cpp
// Fill out your copyright notice in the Description page of Project Settings. #include "BTTask_ClearBlackboardValue.h" #include "BehaviorTree/BlackboardComponent.h" UBTTask_ClearBlackboardValue::UBTTask_ClearBlackboardValue() { NodeName = TEXT("Clear Blackboard Value"); } EBTNodeResult::Type UBTTask_ClearBlackboardValue::ExecuteTask(UBehaviorTreeComponent& OwnerComp, uint8* NodeMemory) { Super::ExecuteTask(OwnerComp, NodeMemory); OwnerComp.GetBlackboardComponent()->ClearValue(GetSelectedBlackboardKey()); return EBTNodeResult::Succeeded; }
[ "adas0262@gmail.com" ]
adas0262@gmail.com
454c7ede9e6715d94aae855eb099622f53f23cf9
07fe910f4a2c7d14e67db40ab88a8c91d9406857
/game/mga/interpreters/ExtensionClasses/Model_Class_Definition.inl
2d966400c1a91ed6d8e5340a45ead7266f7b4248
[]
no_license
SEDS/GAME
e6d7f7a8bb034e421842007614d306b3a6321fde
3e4621298624b9189b5b6b43ff002306fde23f08
refs/heads/master
2021-03-12T23:27:39.115003
2015-09-22T15:05:33
2015-09-22T15:05:33
20,278,561
1
0
null
null
null
null
UTF-8
C++
false
false
956
inl
// -*- C++ -*- // $Id$ // // Model_Class_Definition // GAME_INLINE Model_Class_Definition::Model_Class_Definition (void) { } // // ~Model_Class_Definition // GAME_INLINE Model_Class_Definition::~Model_Class_Definition (void) { } // // insert_single_definition // GAME_INLINE void Model_Class_Definition:: insert_single_definition (Object_Class_Definition * def) { this->single_.insert (def); this->source_includes_.insert (def); def->insert_parent (this); } // // insert_multiple_definition // GAME_INLINE void Model_Class_Definition:: insert_multiple_definition (Object_Class_Definition * def) { this->multiple_.insert (def); this->source_includes_.insert (def); def->insert_parent (this); } // // insert_optional_definition // GAME_INLINE void Model_Class_Definition:: insert_optional_definition (Object_Class_Definition * def) { this->optional_.insert (def); this->source_includes_.insert (def); def->insert_parent (this); }
[ "hillj@cs.iupui.edu" ]
hillj@cs.iupui.edu
19dccfac4b07a03a85711755bd275252a831c182
fd7584101ba89cb62fbcef5ae3bf7086511db7aa
/cpp/Repair Yard/main.cpp
294bd4e8cfa39493b89ef01eac0d5250fc908c46
[]
no_license
dustinmthompson/codeSamples
7d89db510793f1f3a20ccabde6cfe45ab3990f10
c0cfb03ee9f3e1cfabf509609c6dc1cba7adb1f9
refs/heads/master
2023-01-31T13:10:16.956491
2020-12-02T16:38:41
2020-12-02T16:38:41
317,910,723
0
0
null
null
null
null
UTF-8
C++
false
false
14,532
cpp
#include <iostream> #include <fstream> #include <cstdlib> #include <random> #include <ctime> #include <list> #include <queue> #include "vehicles.h" using namespace std; void menu(vehicle*, vehicle*, ofstream&); int main(){ ofstream myFile; myFile.open("SimulationLog.txt"); vehicle* vehicleList = NULL; vehicle* curr; cout << "AFV Repair Yard" << endl; cout << "------------------\n" << endl; menu(vehicleList, curr, myFile); } void menu(vehicle* vehicleList, vehicle* curr, ofstream& myFile){ int selection = 0; default_random_engine* rand; rand = new default_random_engine(time(NULL)); priority_queue<vehicle*> repairQueue; // Repair Queue list<int> junkYard; // Junk Yard vector<int> supplyVector; // Supply Vector vector<vehicle*> repairBay(3); // 3 Repair Bays int possibleParts[45] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45}; // Array of possible parts uniform_int_distribution<int> percent(1,100); // 1-100 for random percent chance uniform_int_distribution<int> numberParts(2,4); // 2-4 for possible generated parts for supply vector normal_distribution<double> randTank(3.0,1.0); // Number of tank parts normal_distribution<double> randOther(5.0,2.0); // Number of wheeled vehicle and half-track parts uniform_int_distribution<int> tankParts(1,11); // Random gen 1-11 (tankOneParts) int tankTwoParts[11] = {2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22}; // tankTwo parts int tankThreeParts[11] = {3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33}; // tankThree parts uniform_int_distribution<int> wheelParts(1,10); // Random gen 1-10 (wheeled vehicle parts) int wheelOneParts[10] = {31, 32, 33, 34, 35, 36, 37, 38, 39, 40}; // Wheeled Vehicle One Parts int wheelTwoParts[10] = {36, 37, 38, 39, 40, 41, 42, 43, 44, 45}; // Wheeled Vehicle Two Parts uniform_int_distribution<int> halfTrackGen(1,15); // Random gen 1-15 (half-track parts) int halfTrackParts[15] = {1, 2, 3, 4, 5, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40}; cout << "Select an option: " << endl; cout << "1. Generate and add a damaged Tank type 1" << endl; cout << "2. Generate and add a damaged Tank type 2" << endl; cout << "3. Generate and add a damaged Tank type 3" << endl; cout << "4. Generate and add a damaged wheeled vehicle type 1" << endl; cout << "5. Generate and add a damaged wheeled vehicle type 2" << endl; cout << "6. Generate and add a half-track" << endl; cout << "7. Display all vehicles" << endl; cout << "8. Repair Vehicles" << endl; cout << "9. Exit\n" << endl; cin >> selection; //--------------------------------------------------------- if (selection == 1) // Add damaged tank 1 { if (vehicleList == NULL) { vehicleList = new tankOne(); curr = vehicleList; myFile << "Generated Damaged Tank One with broken parts "; for (int i = 0; i < static_cast<int>(randTank(*rand)); ++i) // Loop for number of parts from generated part distribution { int part = tankParts(*rand); curr -> addPart(part); // Add allowed parts for vehicle based on above loops myFile << part << " "; } myFile << endl; cout << "Added Damaged Tank One.\n\n"; menu(vehicleList, curr, myFile); } else { curr = new tankOne(); myFile << "Generated Damaged Tank One with broken parts "; for (int i = 0; i < static_cast<int>(randTank(*rand)); ++i) { int part = tankParts(*rand); curr -> addPart(part); // Add allowed parts for vehicle based on above loops myFile << part << " "; } curr -> setNext(vehicleList); vehicleList = curr; myFile << endl; cout << "Added Damaged Tank One.\n\n"; menu(vehicleList, curr, myFile); } } //--------------------------------------------------------- else if (selection == 2) // Add damaged tank 2 { if (vehicleList == NULL) { vehicleList = new tankTwo(); curr = vehicleList; myFile << "Generated Damaged Tank Two with broken parts "; for (int i = 0; i < static_cast<int>(randTank(*rand)); ++i) { int part = tankTwoParts[tankParts(*rand)]; curr -> addPart(part); myFile << part << " "; } myFile << endl; cout << "Added Damaged Tank Two.\n\n"; menu(vehicleList, curr, myFile); } else { curr = new tankTwo(); myFile << "Generated Damaged Tank Two with broken parts "; for (int i = 0; i < static_cast<int>(randTank(*rand)); ++i) { int part = tankTwoParts[tankParts(*rand)]; curr -> addPart(part); myFile << part << " "; } curr -> setNext(vehicleList); vehicleList = curr; myFile << endl; cout << "Added Damaged Tank Two.\n\n"; menu(vehicleList, curr, myFile); } } //--------------------------------------------------------- else if (selection == 3) // Add damaged tank 3 { if (vehicleList == NULL) { vehicleList = new tankThree(); curr = vehicleList; myFile << "Generated Damaged Tank Three with broken parts "; for (int i = 0; i < static_cast<int>(randTank(*rand)); ++i) { int part = tankThreeParts[tankParts(*rand)]; curr -> addPart(part); myFile << part << " "; } myFile << endl; cout << "Added Damaged Tank Three.\n\n"; menu(vehicleList, curr, myFile); } else { curr = new tankThree(); myFile << "Generated Damaged Tank Three with broken parts "; for (int i = 0; i < static_cast<int>(randTank(*rand)); ++i) { int part = tankThreeParts[tankParts(*rand)]; curr -> addPart(part); myFile << part << " "; } curr -> setNext(vehicleList); vehicleList = curr; myFile << endl; cout << "Added Damaged Tank Three.\n\n"; menu(vehicleList, curr, myFile); } } //--------------------------------------------------------- else if (selection == 4) // Add wheeled vehicle 1 { if (vehicleList == NULL) { vehicleList = new wheelOne(); curr = vehicleList; myFile << "Generated Wheeled Vehicle One with broken parts "; for (int i = 0; i < static_cast<int>(randOther(*rand)); ++i) { int part = wheelOneParts[wheelParts(*rand)]; curr -> addPart(part); myFile << part << " "; } myFile << endl; cout << "Added Wheeled Vehicle One.\n\n"; menu(vehicleList, curr, myFile); } else { curr = new wheelOne(); myFile << "Generated Wheeled Vehicle One with broken parts "; for (int i = 0; i < static_cast<int>(randOther(*rand)); ++i) { int part = wheelOneParts[wheelParts(*rand)]; curr -> addPart(part); myFile << part << " "; } curr -> setNext(vehicleList); vehicleList = curr; myFile << endl; cout << "Added Wheeled Vehicle One.\n\n"; menu(vehicleList, curr, myFile); } } //--------------------------------------------------------- else if (selection == 5) // Add wheeled vehicle 2 { if (vehicleList == NULL) { vehicleList = new wheelTwo(); curr = vehicleList; myFile << "Generated Wheeled Vehicle Two with broken parts "; for (int i = 0; i < static_cast<int>(randOther(*rand)); ++i) { int part = wheelTwoParts[wheelParts(*rand)]; curr -> addPart(part); myFile << part << " "; } myFile << endl; cout << "Added Wheeled Vehicle Two.\n\n"; menu(vehicleList, curr, myFile); } else { curr = new wheelTwo(); myFile << "Generated Wheeled Vehicle Two with broken parts "; for (int i = 0; i < static_cast<int>(randOther(*rand)); ++i) { int part = wheelTwoParts[wheelParts(*rand)]; curr -> addPart(part); myFile << part << " "; } curr -> setNext(vehicleList); vehicleList = curr; myFile << endl; cout << "Added Wheeled Vehicle Two.\n\n"; menu(vehicleList, curr, myFile); } } //--------------------------------------------------------- else if (selection == 6) // Add half-track { if (vehicleList == NULL) { vehicleList = new halfTrack(); curr = vehicleList; myFile << "Generated Half-Track with broken parts "; for (int i = 0; i < static_cast<int>(randOther(*rand)); ++i) { int part = halfTrackParts[halfTrackGen(*rand)]; curr -> addPart(part); myFile << part << " "; } myFile << endl; cout << "Added Half-Track.\n\n"; menu(vehicleList, curr, myFile); } else { curr = new halfTrack(); myFile << "Generated Half-Track with broken parts "; for (int i = 0; i < static_cast<int>(randOther(*rand)); ++i) { int part = halfTrackParts[halfTrackGen(*rand)]; curr -> addPart(part); myFile << part << " "; } curr -> setNext(vehicleList); vehicleList = curr; myFile << endl; cout << "Added Half-Track.\n\n"; menu(vehicleList, curr, myFile); } } //--------------------------------------------------------- else if (selection == 7) // Display vehicles { cout << "\n"; curr = vehicleList; while (curr != NULL){ curr -> display(); curr = curr -> getNext(); } cout << "\n"; system("pause"); menu(vehicleList, curr, myFile); } //--------------------------------------------------------- else if (selection == 8) // Repair Vehicles { myFile << "\n" << "Generated Supply Vector with parts "; for (int i = 0; i < 45; ++i) // Generate Supply Vector with 90% of 2-4 parts for each part { if (percent(*rand) <= 90) { int parts = numberParts(*rand); supplyVector.push_back(parts); myFile << possibleParts[i] << "(" << parts <<") "; } else{ supplyVector.push_back(0); myFile << possibleParts[i] << "(0) "; } } myFile << endl << endl; curr = vehicleList; while(curr != NULL){ // If vehicle has 5 or more broken parts, send to scrap yard. Otherwise, priority queue int numberOfParts = curr -> numberOfParts(); if (numberOfParts >= 5) { myFile << "Junk Yard filled with removed parts "; for (int i = 0; i < numberOfParts; ++i) { int part = curr -> getPart(i); junkYard.push_back(part); myFile << part << " "; } myFile << endl; } else{ repairQueue.push(curr); switch (curr->getType()){ case 1: myFile << "Added Damaged Tank One to Repair Queue"<<endl; break; case 2: myFile << "Added Damaged Tank Two to Repair Queue"<<endl; break; case 3: myFile << "Added Damaged Tank Three to Repair Queue"<<endl; break; case 4: myFile << "Added Damaged Wheeled Vehicle One to Repair Queue"<<endl; break; case 5: myFile << "Added Damaged Wheeled Vehicle Two to Repair Queue"<<endl; break; case 6: myFile << "Added Damaged Half-Track to Repair Queue"<<endl; break; } } curr = curr -> getNext(); } myFile << endl; while(!repairQueue.empty()){ // While vehicles are in the repair queue, move them to an available repair bay and attempt to repair them //for (int i = 0; i < 3; ++i) //{ //cout<<"repairbay loop"<<endl; if (repairBay.back()==NULL) { repairBay.push_back(repairQueue.top()); repairQueue.pop(); switch (repairBay.back()->getType()){ case 1: myFile << "Added Damaged Tank One to Repair Bay 1" <<endl; break; case 2: myFile << "Added Damaged Tank Two to Repair Bay 1" <<endl; break; case 3: myFile << "Added Damaged Tank Three to Repair Bay 1" <<endl; break; case 4: myFile << "Added Damaged Wheeled Vehicle One to Repair Bay 1" <<endl; break; case 5: myFile << "Added Damaged Wheeled Vehicle Two to Repair Bay 1" <<endl; break; case 6: myFile << "Added Damaged Half-Track to Repair Bay 1" <<endl; break; } int numberOfParts = repairBay.back()->numberOfParts(); // Number of vehicle parts for (int x = 0; x < numberOfParts; ++x) // For loop for each part { if (!junkYard.empty()) { bool removed = false; for (list<int>::iterator it = junkYard.begin(); it != junkYard.end(); it++) // If junk yard is not empty, search for part in junk yard { if (*it == repairBay.back()->getPart(0)) { myFile << "Part " << *it << " fixed from junk yard."<<endl; junkYard.erase(it); myFile<<"erased"<<endl; repairBay.back()->removePart(0); removed = true; myFile<<"true"<<endl; break; } } cout<<endl; if ((removed == false) && (supplyVector.at((repairBay.back()->getPart(0))-1) >= 1)) // If not in junk yard, search supply vector { myFile << "Part " << repairBay.back()->getPart(0) << " fixed from supply vector."<<endl; supplyVector.at(repairBay.back()->getPart(0)) = supplyVector.at(repairBay.back()->getPart(0)) - 1; repairBay.back()->removePart(0); } } else if(supplyVector.at((repairBay.back()->getPart(0))-1) >= 1) // If junk yard is empty, search supply vector { myFile << "Part " << repairBay.back()->getPart(0) << " fixed from supply vector."<<endl; supplyVector.at(repairBay.back()->getPart(0)) = supplyVector.at(repairBay.back()->getPart(0)) - 1; repairBay.back()->removePart(0); } } if (repairBay.back()->numberOfParts() == 0) { if (percent(*rand) <= 97) { myFile << "Vehicle was successfully fixed."<<endl; repairBay.back()=NULL; } else{ myFile << "Vehicle parts were fixed but vehicle failed test. Moved back into repair queue."<<endl; repairQueue.push(repairBay.back()); repairBay.back()=NULL; } } else{ myFile << "Vehicle could not be fixed due to lack of parts."<<endl; repairBay.back()=NULL; } } //} myFile<<endl; } cout<<endl<<endl<<"Simulation complete! Please check the output file \"SimulationLog.txt\" for a full breakdown of the simulation."<<endl<<endl; } //--------------------------------------------------------- //--------------------------------------------------------- else if (selection == 9) // { exit(0); } //--------------------------------------------------------- else // Not 1-8 selection { cout << "\n\nPlease select a valid option (1-8)\n"; menu(vehicleList, curr, myFile); } }
[ "dustinmichaelthompson@gmail.com" ]
dustinmichaelthompson@gmail.com
bbf8059535979a9ab6ed42f585bcf893397e97a7
e7c0866de57e6f9956bf3333bfee3c11af7255d0
/cpp/src/rudra/util/Logger.h
37e439b90e87946594165e008ba3b79840552afc
[ "BSD-3-Clause" ]
permissive
Rudra-org/rudra
51625369e44fedfa1b828e68f7cf8df159ffd704
3ef072aac0064ed4776e981d93a90db9c0240623
refs/heads/master
2021-01-12T13:59:08.105151
2016-04-25T13:20:17
2016-04-25T13:20:17
54,786,411
7
0
null
null
null
null
UTF-8
C++
false
false
2,313
h
/* * Logger.h * * Rudra Distributed Learning Platform * * Copyright (c) IBM Corporation 2016 * 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. Neither the name of Rudra nor the names of its contributors may be used * to endorse or promote products derived from this software without specific * prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY,OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifndef RUDRA_UTIL_LOGGER_H_ #define RUDRA_UTIL_LOGGER_H_ #include <fstream> enum LogLevel { INFO, WARNING, ERROR, FATAL }; namespace rudra { class Logger { public: static void setLogFile(std::string fname); static void setLoggingLevel(int i); /** log message at chosen level of severity */ static void log(std::string msg, LogLevel level); static void logInfo(std::string msg); static void logWarning(std::string msg); static void logError(std::string msg); /** log error and terminate the program */ static void logFatal(std::string msg); static void dumpTable(std::string fileName, float **table, int m, int n); }; } /* namespace rudra */ #endif /* RUDRA_UTIL_LOGGER_H_ */
[ "jjmiltho@us.ibm.com" ]
jjmiltho@us.ibm.com
068259782c95a20c297a2ce9aee2bd59ae16ab64
98ea884dfa0ccdef32c6a361b848e20f6ea6cbed
/Luni/src-drivers/DDMCP9808/DDMCP9808.h
e8768812bfa704f89c4aa847cd6be8b1dd5a72df
[]
no_license
dhahaj/Arduino-libraries
c95a4818326c6c59537d9e935f0854b98f13a0d4
9a67d0cd1ce80c60b668f6743c3d4ca66c3937b0
refs/heads/master
2021-01-01T18:46:32.105068
2018-02-16T18:55:13
2018-02-16T18:55:13
98,433,137
1
0
null
null
null
null
UTF-8
C++
false
false
833
h
#ifndef DDMCP9808_h #define DDMCP9808_h #include <Silicon/I2CPort.h> #include <Device/DeviceDriver.h> #include <Device/DeviceTable.h> #include "LUMCP9808.h" class DDMCP9808: public DeviceDriver { public: DDMCP9808(const char *unitName = "TC", int count = 8, int base = 0x18); int open(int opts, int flags, const char *name); int read(int handle, int flags, int reg, int count, byte *buf); int write(int handle, int flags, int reg, int count, byte *buf); int close(int handle, int flags); int processTimerEvent(int lun, int timerSelector, ClientReporter *r); enum class REG : int { RESERVED = 0, CONFIG = 1, UPPER_TEMP = 2, LOWER_TEMP = 3, CRIT_TEMP = 4, AMBIENT_TEMP = 5, MANUF_ID = 6, DEVICE_ID = 7, RESOLUTION = 8 }; private: int baseAddress; I2CPort i2c; }; #endif
[ "dhahaj@gmail.com" ]
dhahaj@gmail.com
9bd4b4ac4e5481dbf24a3e0f1fd636d504f740b1
44727c8b922424024d41b38b1b53943a9fd7d8b9
/dev/AppLifecycle/ValueMarshaling.h
ea10651531a491f1971ca98ac2a177dc9c32cefd
[ "CC-BY-4.0", "MIT" ]
permissive
hassoon1986/WindowsAppSDK
ec539e921b70744275180327a6ef8a70ba7e5466
f5dad55e5ef4cea325050ec63e16306db6f43ede
refs/heads/main
2023-08-17T09:18:49.449578
2021-09-23T01:58:38
2021-09-23T01:58:38
409,702,843
1
0
NOASSERTION
2021-09-23T18:28:59
2021-09-23T18:28:58
null
UTF-8
C++
false
false
1,477
h
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. #pragma once namespace winrt::Microsoft::Windows::AppLifecycle::implementation { static PCWSTR c_launchSchemeName{ L"ms-launch" }; static PCWSTR c_encodedLaunchSchemeName{ L"ms-encodedlaunch" }; static PCWSTR c_contractIdKeyName{ L"ContractId" }; // This interface used for the internal value marshaling mechanism. Implementing this interface means // that both Serialize and Deserialize be implemented. Deserialize is a static and can't be expressed // here. Deserialize is required also by the encoded launch mechanism, and is how ActivatedEventArgs // are created regardless of marshaling. The below method is only used for marshaling. MIDL_INTERFACE("1E875DD8-3E09-465D-8684-E76EF58145C5") IInternalValueMarshalable : IInspectable { virtual winrt::Windows::Foundation::Uri Serialize() PURE; }; inline std::wstring GenerateEncodedLaunchUri(std::wstring const& appUserModelId, std::wstring const& contractId) { // Example: ms-encodedlaunch://App/?ContractId=Windows.File&Verb=open&File=%1 winrt::Windows::Foundation::Uri uri{ wil::str_printf<std::wstring>(L"%s://%s?%s=%s", c_encodedLaunchSchemeName, appUserModelId.c_str(), c_contractIdKeyName, contractId.c_str()).c_str() }; return uri.AbsoluteUri().c_str(); } }
[ "noreply@github.com" ]
hassoon1986.noreply@github.com
7d2059d4e09a2e0df81c53406c24a0e05dcb219c
8860168786d04a3043ea3e06d06a27630b38f2b6
/active-ist/libraries/jaus++/branches/3.11/include/jaus/mobility/drivers/setwrencheffort.h
337255bf3d95f529a8fe7b9447df39fa96f7cff3
[]
no_license
ShowLove/Robotics_Club
6785d8f5717f9f29ef7cb702f47f481767c8875b
9c6b4b723a2732c1565913795c2a43b90902f011
refs/heads/master
2020-05-15T03:08:44.178211
2014-08-08T04:05:42
2014-08-08T04:05:42
14,319,218
4
1
null
null
null
null
UTF-8
C++
false
false
9,092
h
//////////////////////////////////////////////////////////////////////////////////// /// /// \file setwrencheffort.h /// \brief This file contains the implementation of a JAUS message. /// /// <br>Author(s): Daniel Barber /// <br>Created: 22 November 2009 /// <br>Copyright (c) 2009 /// <br>Applied Cognition and Training in Immersive Virtual Environments /// <br>(ACTIVE) Laboratory /// <br>Institute for Simulation and Training (IST) /// <br>University of Central Florida (UCF) /// <br>All rights reserved. /// <br>Email: dbarber@ist.ucf.edu /// <br>Web: http://active.ist.ucf.edu /// /// 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 the ACTIVE LAB, IST, UCF, nor the /// names of its contributors may be used to endorse or promote products /// derived from this software without specific prior written permission. /// /// THIS SOFTWARE IS PROVIDED BY THE ACTIVE LAB''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 UCF BE LIABLE FOR ANY /// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES /// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; /// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND /// ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT /// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS /// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. /// //////////////////////////////////////////////////////////////////////////////////// #ifndef __JAUS_MOBILITY_SET_WRENCH_EFFORT__H #define __JAUS_MOBILITY_SET_WRENCH_EFFORT__H #include "jaus/core/message.h" #include "jaus/mobility/mobilitycodes.h" namespace JAUS { //////////////////////////////////////////////////////////////////////////////////// /// /// \class SetWrenchEffort /// \brief This message is used to provide open-loop control in the /// coordinate frame defined by the JAUS Standard. The command consists of a /// six element propulsive wrench and a six element resistive wrench. The /// six elements of each wrench break down into three linear elements and three /// rotational elements, which are mapped to the three axis orthogonal coordinate /// frame of the vehicle. Al elements of the Wrench mesage are not necessarily /// applicable to a particular platform. /// //////////////////////////////////////////////////////////////////////////////////// class JAUS_MOBILITY_DLL SetWrenchEffort : public Message { public: //////////////////////////////////////////////////////////////////////////////////// /// /// \class PresenceVector /// \brief This class contains bit masks for bitwise operations on the /// presence vector for this message. /// //////////////////////////////////////////////////////////////////////////////////// class JAUS_MOBILITY_DLL PresenceVector : public JAUS::PresenceVector { public: const static UShort PropulsiveLinearEffortX = 0x0001; const static UShort PropulsiveLinearEffortY = 0x0002; const static UShort PropulsiveLinearEffortZ = 0x0004; const static UShort PropulsiveRotationalEffortX = 0x0008; const static UShort PropulsiveRotationalEffortY = 0x0010; const static UShort PropulsiveRotationalEffortZ = 0x0020; const static UShort ResistiveLinearEffortX = 0x0040; const static UShort ResistiveLinearEffortY = 0x0080; const static UShort ResistiveLinearEffortZ = 0x0100; const static UShort ResistiveRotationalEffortX = 0x0200; const static UShort ResistiveRotationalEffortY = 0x0400; const static UShort ResistiveRotationalEffortZ = 0x0800; }; SetWrenchEffort(const Address& dest = Address(), const Address& src = Address()); SetWrenchEffort(const SetWrenchEffort& message); ~SetWrenchEffort(); bool SetPropulsiveLinearEffortX(const double percent); bool SetPropulsiveLinearEffortY(const double percent); bool SetPropulsiveLinearEffortZ(const double percent); bool SetPropulsiveRotationalEffortX(const double percent); bool SetPropulsiveRotationalEffortY(const double percent); bool SetPropulsiveRotationalEffortZ(const double percent); bool SetResistiveLinearEffortX(const double percent); bool SetResistiveLinearEffortY(const double percent); bool SetResistiveLinearEffortZ(const double percent); bool SetResistiveRotationalEffortX(const double percent); bool SetResistiveRotationalEffortY(const double percent); bool SetResistiveRotationalEffortZ(const double percent); inline double GetPropulsiveLinearEffortX() const { return mPropulsiveLinearEffortX; } inline double GetPropulsiveLinearEffortY() const { return mPropulsiveLinearEffortY; } inline double GetPropulsiveLinearEffortZ() const { return mPropulsiveLinearEffortZ; } inline double GetPropulsiveRotationalEffortX() const { return mPropulsiveRotationalEffortX; } inline double GetPropulsiveRotationalEffortY() const { return mPropulsiveRotationalEffortY; } inline double GetPropulsiveRotationalEffortZ() const { return mPropulsiveRotationalEffortZ; } inline double GetResistiveLinearEffortX() const { return mResistiveLinearEffortX; } inline double GetResistiveLinearEffortY() const { return mResistiveLinearEffortY; } inline double GetResistiveLinearEffortZ() const { return mResistiveLinearEffortZ; } inline double GetResistiveRotationalEffortX() const { return mResistiveRotationalEffortX; } inline double GetResistiveRotationalEffortY() const { return mResistiveRotationalEffortY; } inline double GetResistiveRotationalEffortZ() const { return mResistiveRotationalEffortZ; } virtual bool IsCommand() const { return true; } virtual int WriteMessageBody(Packet& packet) const; virtual int ReadMessageBody(const Packet& packet); virtual Message* Clone() const { return new SetWrenchEffort(*this); } virtual UInt GetPresenceVector() const { return mPresenceVector; } virtual UInt GetPresenceVectorSize() const { return USHORT_SIZE; } virtual UInt GetPresenceVectorMask() const { return 0x0FFF; } virtual UShort GetMessageCodeOfResponse() const { return 0; } virtual std::string GetMessageName() const { return "Set Wrench Effort"; } virtual void ClearMessageBody(); virtual bool IsLargeDataSet(const unsigned int maxPayloadSize = 1437) const { return false; } virtual int RunTestCase() const; virtual void PrintMessageBody() const; SetWrenchEffort& operator=(const SetWrenchEffort& message); protected: UShort mPresenceVector; ///< Bit vector for fields present. double mPropulsiveLinearEffortX; ///< Propulsiveulsive Linearear Effort X [-100, 100]. double mPropulsiveLinearEffortY; ///< Propulsiveulsive Linearear Effort Y [-100, 100]. double mPropulsiveLinearEffortZ; ///< Propulsiveulsive Linearear Effort Z [-100, 100]. double mPropulsiveRotationalEffortX; ///< Propulsiveulsive Rotationalational Effort X [-100, 100]. double mPropulsiveRotationalEffortY; ///< Propulsiveulsive Rotationalational Effort Y [-100, 100]. double mPropulsiveRotationalEffortZ; ///< Propulsiveulsive Rotationalational Effort Z [-100, 100]. double mResistiveLinearEffortX; ///< Resistive Linearear Effort X [0, 100]. double mResistiveLinearEffortY; ///< Resistive Linearear Effort Y [0, 100]. double mResistiveLinearEffortZ; ///< Resistive Linearear Effort Z [0, 100]. double mResistiveRotationalEffortX; ///< Resistive Rotationalational Effort X [0, 100]. double mResistiveRotationalEffortY; ///< Resistive Rotationalational Effort Y [0, 100]. double mResistiveRotationalEffortZ; ///< Resistive Rotationalational Effort Z [0, 100]. }; } #endif /* End of File */
[ "showlove@knights.ucf.edu" ]
showlove@knights.ucf.edu
b8e6664c12a35931a70ea8f8fd5b54840a9008c4
e95adb59feacfe95904c3a8e90a4159860b6c26a
/build/Android/Preview/outsideTheBox/app/src/main/include/Uno.Bool.h
e75bcb96fd2a954bf7c185928f0334a973f40850
[]
no_license
deliloka/bethebox
837dff20c1ff55db631db1e0f6cb51d935497e91
f9bc71b8593dd54b8aaf86bc0a654d233432c362
refs/heads/master
2021-01-21T08:20:42.970891
2016-02-19T10:00:37
2016-02-19T10:00:37
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,086
h
// This file was generated based on '/usr/local/share/uno/Packages/UnoCore/0.23.4/Source/Uno/$.uno'. // WARNING: Changes might be lost if you edit this file directly. #pragma once #include <Uno.Object.h> namespace g{ namespace Uno{ // public intrinsic struct Bool :259 // { uStructType* Bool_typeof(); void Bool__Equals_fn(bool* __this, uType* __type, uObject* o, bool* __retval); void Bool__GetHashCode_fn(bool* __this, uType* __type, int* __retval); void Bool__Parse_fn(uString* str, bool* __retval); void Bool__ToString_fn(bool* __this, uType* __type, uString** __retval); struct Bool { static bool Equals(bool __this, uType* __type, uObject* o) { bool __retval; return Bool__Equals_fn(&__this, __type, o, &__retval), __retval; } static int GetHashCode(bool __this, uType* __type) { int __retval; return Bool__GetHashCode_fn(&__this, __type, &__retval), __retval; } static uString* ToString(bool __this, uType* __type) { uString* __retval; return Bool__ToString_fn(&__this, __type, &__retval), __retval; } static bool Parse(uString* str); }; // } }} // ::g::Uno
[ "Havard.Halse@nrk.no" ]
Havard.Halse@nrk.no
7f289151c6d5e418c773915b8e86c4e53bd92367
7940872a8a37016b1213d6dd66e4df4c0a5ab4f4
/ShInstUtil/ShInstUtil.cpp
0b7d2a1ef8c0992ed80532927d86fcdb9d9789d9
[]
no_license
msc-antiplag/keepass-modified-sources
4a301b616cdb638320335fbe179d4e6727c3fbe3
874f3a7f846ed11df23e7a49d09b6598244a8cd1
refs/heads/master
2023-08-22T06:08:19.609044
2021-09-13T11:43:06
2021-09-13T11:43:06
null
0
0
null
null
null
null
UTF-8
C++
false
false
9,006
cpp
/* KeePass Password Safe - The Open-Source Password Manager Copyright (C) 2003-2021 Dominik Reichl <dominik.reichl@t-online.de> 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #include "ShInstUtil.h" #pragma warning(push) #pragma warning(disable: 4996) // SCL warning #include <boost/smart_ptr.hpp> #include <boost/algorithm/string/trim.hpp> #pragma warning(pop) static const std_string g_strNGenInstall = _T("ngen_install"); static const std_string g_strNGenUninstall = _T("ngen_uninstall"); static const std_string g_strNetCheck = _T("net_check"); static const std_string g_strPreLoadRegister = _T("preload_register"); static const std_string g_strPreLoadUnregister = _T("preload_unregister"); static LPCTSTR g_lpPathTrimChars = _T("\"' \t\r\n"); int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) { UNREFERENCED_PARAMETER(hInstance); UNREFERENCED_PARAMETER(hPrevInstance); UNREFERENCED_PARAMETER(lpCmdLine); UNREFERENCED_PARAMETER(nCmdShow); INITCOMMONCONTROLSEX icc; ZeroMemory(&icc, sizeof(INITCOMMONCONTROLSEX)); icc.dwSize = sizeof(INITCOMMONCONTROLSEX); icc.dwICC = ICC_STANDARD_CLASSES; InitCommonControlsEx(&icc); std_string strCmdLine = GetCommandLine(); boost::trim_if(strCmdLine, boost::is_any_of(g_lpPathTrimChars)); std::transform(strCmdLine.begin(), strCmdLine.end(), strCmdLine.begin(), _totlower); if(StrEndsWith(strCmdLine, g_strNGenInstall)) { UpdateNativeImage(false); Sleep(200); UpdateNativeImage(true); } if(StrEndsWith(strCmdLine, g_strNGenUninstall)) UpdateNativeImage(false); if(StrEndsWith(strCmdLine, g_strPreLoadRegister)) { RegisterPreLoad(false); // Remove old value in 32-bit reg. view on 64-bit systems RegisterPreLoad(true); } if(StrEndsWith(strCmdLine, g_strPreLoadUnregister)) RegisterPreLoad(false); if(StrEndsWith(strCmdLine, g_strNetCheck)) CheckDotNetInstalled(); return 0; } bool StrEndsWith(const std_string& strText, const std_string& strEnd) { if(strEnd.size() == 0) return true; if(strEnd.size() > strText.size()) return false; return (strText.substr(strText.size() - strEnd.size()) == strEnd); } void EnsureTerminatingSeparator(std_string& strPath) { if(strPath.size() == 0) return; if(strPath[strPath.size() - 1] == _T('\\')) return; strPath += _T("\\"); } void UpdateNativeImage(bool bInstall) { const std_string strNGen = FindNGen(); if(strNGen.size() == 0) return; const std_string strKeePassExe = GetKeePassExePath(); if(strKeePassExe.size() == 0) return; std_string strParam = (bInstall ? _T("") : _T("un")); strParam += (_T("install \"") + strKeePassExe) + _T("\""); SHELLEXECUTEINFO sei; ZeroMemory(&sei, sizeof(SHELLEXECUTEINFO)); sei.cbSize = sizeof(SHELLEXECUTEINFO); sei.fMask = SEE_MASK_NOCLOSEPROCESS; sei.lpVerb = _T("open"); sei.lpFile = strNGen.c_str(); sei.lpParameters = strParam.c_str(); sei.nShow = SW_HIDE; ShellExecuteEx(&sei); if(sei.hProcess != NULL) { WaitForSingleObject(sei.hProcess, 16000); CloseHandle(sei.hProcess); } } void RegisterPreLoad(bool bRegister) { LPCTSTR lpKey = _T("Software\\Microsoft\\Windows\\CurrentVersion\\Run"); LPCTSTR lpName = _T("KeePass 2 PreLoad"); const std_string strExe = GetKeePassExePath(); if(strExe.size() == 0) return; const std_string strValue = (_T("\"") + strExe) + _T("\" --preload"); HKEY hRoot = HKEY_LOCAL_MACHINE; HKEY h = NULL; LSTATUS l; if(bRegister) { l = RegOpenKeyEx(hRoot, lpKey, 0, KEY_WRITE | KEY_WOW64_64KEY, &h); if((l != ERROR_SUCCESS) || (h == NULL)) l = RegCreateKeyEx(hRoot, lpKey, 0, NULL, 0, KEY_WRITE | KEY_WOW64_64KEY, NULL, &h, NULL); if((l == ERROR_SUCCESS) && (h != NULL)) { RegSetValueEx(h, lpName, 0, REG_SZ, (const BYTE*)strValue.c_str(), static_cast<DWORD>((strValue.size() + 1) * sizeof(TCHAR))); RegCloseKey(h); } } else // Unregister { for(size_t i = 0; i < 2; ++i) { l = RegOpenKeyEx(hRoot, lpKey, 0, KEY_WRITE | ((i == 0) ? KEY_WOW64_64KEY : KEY_WOW64_32KEY), &h); if((l == ERROR_SUCCESS) && (h != NULL)) { RegDeleteValue(h, lpName); RegCloseKey(h); h = NULL; } } } } std_string GetNetInstallRoot() { std_string str; HKEY hNet = NULL; LONG lRes = RegOpenKeyEx(HKEY_LOCAL_MACHINE, _T("SOFTWARE\\Microsoft\\.NETFramework"), 0, KEY_READ | KEY_WOW64_64KEY, &hNet); if((lRes != ERROR_SUCCESS) || (hNet == NULL)) return str; const DWORD cbData = 2050; BYTE pbData[cbData]; ZeroMemory(pbData, cbData * sizeof(BYTE)); DWORD dwData = cbData - 2; lRes = RegQueryValueEx(hNet, _T("InstallRoot"), NULL, NULL, pbData, &dwData); if(lRes == ERROR_SUCCESS) str = (LPCTSTR)(LPTSTR)pbData; RegCloseKey(hNet); return str; } std_string GetKeePassExePath() { const DWORD cbData = 2050; TCHAR tszName[cbData]; ZeroMemory(tszName, cbData * sizeof(TCHAR)); GetModuleFileName(NULL, tszName, cbData - 2); for(int i = static_cast<int>(_tcslen(tszName)) - 1; i >= 0; --i) { if(tszName[i] == _T('\\')) break; else tszName[i] = 0; } std_string strPath = tszName; boost::trim_if(strPath, boost::is_any_of(g_lpPathTrimChars)); if(strPath.size() == 0) return strPath; return (strPath + _T("KeePass.exe")); } std_string FindNGen() { std_string strNGen; std_string strRoot = GetNetInstallRoot(); if(strRoot.size() == 0) return strNGen; EnsureTerminatingSeparator(strRoot); ULONGLONG ullVersion = 0; FindNGenRec(strRoot, strNGen, ullVersion); return strNGen; } void FindNGenRec(const std_string& strPath, std_string& strNGenPath, ULONGLONG& ullVersion) { const std_string strSearch = strPath + _T("*.*"); const std_string strNGen = _T("ngen.exe"); WIN32_FIND_DATA wfd; ZeroMemory(&wfd, sizeof(WIN32_FIND_DATA)); HANDLE hFind = FindFirstFile(strSearch.c_str(), &wfd); if(hFind == INVALID_HANDLE_VALUE) return; do { if((wfd.cFileName[0] == _T('\0')) || (_tcsicmp(wfd.cFileName, _T(".")) == 0) || (_tcsicmp(wfd.cFileName, _T("..")) == 0)) { } else if((wfd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) != 0) FindNGenRec((strPath + wfd.cFileName) + _T("\\"), strNGenPath, ullVersion); else if(_tcsicmp(wfd.cFileName, strNGen.c_str()) == 0) { const std_string strFullPath = strPath + strNGen; const ULONGLONG ullThisVer = SiuGetFileVersion(strFullPath); if(ullThisVer >= ullVersion) { strNGenPath = strFullPath; ullVersion = ullThisVer; } } } while(FindNextFile(hFind, &wfd) != FALSE); FindClose(hFind); } ULONGLONG SiuGetFileVersion(const std_string& strFilePath) { DWORD dwDummy = 0; const DWORD dwVerSize = GetFileVersionInfoSize( strFilePath.c_str(), &dwDummy); if(dwVerSize == 0) return 0; boost::scoped_array<BYTE> vVerInfo(new BYTE[dwVerSize]); if(vVerInfo.get() == NULL) return 0; // Out of memory if(GetFileVersionInfo(strFilePath.c_str(), 0, dwVerSize, vVerInfo.get()) == FALSE) return 0; VS_FIXEDFILEINFO* pFileInfo = NULL; UINT uFixedInfoLen = 0; if(VerQueryValue(vVerInfo.get(), _T("\\"), (LPVOID*)&pFileInfo, &uFixedInfoLen) == FALSE) return 0; if(pFileInfo == NULL) return 0; return ((static_cast<ULONGLONG>(pFileInfo->dwFileVersionMS) << 32) | static_cast<ULONGLONG>(pFileInfo->dwFileVersionLS)); } void CheckDotNetInstalled() { OSVERSIONINFO osv; ZeroMemory(&osv, sizeof(OSVERSIONINFO)); osv.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); GetVersionEx(&osv); if(osv.dwMajorVersion >= 6) return; // .NET ships with Vista and higher const std_string strNGen = FindNGen(); if(strNGen.size() == 0) { std_string strMsg = _T("KeePass 2.x requires the Microsoft .NET Framework 2.0 or higher. "); strMsg += _T("This framework currently does not seem to be installed "); strMsg += _T("on your computer. Without this framework, KeePass will not run.\r\n\r\n"); strMsg += _T("The Microsoft .NET Framework is available as free download from the "); strMsg += _T("Microsoft website.\r\n\r\n"); strMsg += _T("Do you want to visit the Microsoft website now?"); const int nRes = MessageBox(NULL, strMsg.c_str(), _T("KeePass Setup"), MB_ICONQUESTION | MB_YESNO); if(nRes == IDYES) { SHELLEXECUTEINFO sei; ZeroMemory(&sei, sizeof(SHELLEXECUTEINFO)); sei.cbSize = sizeof(SHELLEXECUTEINFO); sei.lpVerb = _T("open"); sei.lpFile = _T("https://msdn.microsoft.com/en-us/netframework/aa569263.aspx"); sei.nShow = SW_SHOW; ShellExecuteEx(&sei); } } }
[ "lorenzozarfati@gmail.com" ]
lorenzozarfati@gmail.com
1360dbf77aeed6e401340d55868f7aa6c7cc6f22
c43ba8743ebb48bb6240eafd0bd309d3a1384b02
/filewriter.hpp
47bca7357752d205cadb21f6fd8bbad22b83b6fa
[]
no_license
UNSW-Redback-Racing/NMP_Vehicle_Team_Protobuf
da0bb767936358e709c66f360a80de27f575c637
8914f48344248686238a3669075a5b6e0b1a91cd
refs/heads/main
2023-08-25T18:08:50.329301
2021-09-06T03:00:35
2021-09-06T03:00:35
403,293,279
0
1
null
null
null
null
UTF-8
C++
false
false
518
hpp
#include <sample.hpp> class FileWriter { public: /** * @param sample, the sample data that needs to be serialized * @return dont need to worry about free memory as it is wrapped within a smart pointer * */ void process(const SamplePtr sample); /** * @param filename, the name of the binary file that you will need to desearlise * @return void, just print out the contents of the file in a human readable JSON format * */ void deserialize(const std::string &fileName); };
[ "rahultripathi0401@gmail.com" ]
rahultripathi0401@gmail.com
a0fc9ea4c3b2952b042ab943e41f60787ed39ba3
17c3b8bee0e99c5cc8ea463debae28c51114b17c
/JavaScriptCore/jit/ExecutableAllocator.h
3623d084136df8b023d6bb1c85e2bd34802c563f
[ "MIT" ]
permissive
explorer-ading/cricket-jscore
233340f2951534331262fc02f3bb4b6e2cff7c02
b10eabc016cec3db87f9976684839ddaf4cca0b1
refs/heads/master
2020-05-09T10:19:40.474126
2019-08-08T00:08:28
2019-08-08T00:08:28
181,037,114
1
0
null
null
null
null
UTF-8
C++
false
false
9,290
h
/* * Copyright (C) 2008 Apple Inc. 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 APPLE INC. ``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 APPLE INC. OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef ExecutableAllocator_h #define ExecutableAllocator_h #include <stddef.h> // for ptrdiff_t #include <limits> #include <wtf/Assertions.h> #include <wtf/PassRefPtr.h> #include <wtf/RefCounted.h> #include <wtf/UnusedParam.h> #include <wtf/Vector.h> #if OS(IPHONE_OS) #include <libkern/OSCacheControl.h> #include <sys/mman.h> #endif #if CPU(MIPS) && OS(LINUX) #include <sys/cachectl.h> #endif #define JIT_ALLOCATOR_PAGE_SIZE (ExecutableAllocator::pageSize) #define JIT_ALLOCATOR_LARGE_ALLOC_SIZE (ExecutableAllocator::pageSize * 4) #if ENABLE(ASSEMBLER_WX_EXCLUSIVE) #define PROTECTION_FLAGS_RW (PROT_READ | PROT_WRITE) #define PROTECTION_FLAGS_RX (PROT_READ | PROT_EXEC) #define INITIAL_PROTECTION_FLAGS PROTECTION_FLAGS_RX #else #define INITIAL_PROTECTION_FLAGS (PROT_READ | PROT_WRITE | PROT_EXEC) #endif namespace JSC { inline size_t roundUpAllocationSize(size_t request, size_t granularity) { if ((std::numeric_limits<size_t>::max() - granularity) <= request) CRASH(); // Allocation is too large // Round up to next page boundary size_t size = request + (granularity - 1); size = size & ~(granularity - 1); ASSERT(size >= request); return size; } } #if ENABLE(ASSEMBLER) namespace JSC { class ExecutablePool : public RefCounted<ExecutablePool> { private: struct Allocation { char* pages; size_t size; }; typedef Vector<Allocation, 2> AllocationList; public: static PassRefPtr<ExecutablePool> create(size_t n) { return adoptRef(new ExecutablePool(n)); } void* alloc(size_t n) { ASSERT(m_freePtr <= m_end); // Round 'n' up to a multiple of word size; if all allocations are of // word sized quantities, then all subsequent allocations will be aligned. n = roundUpAllocationSize(n, sizeof(void*)); if (static_cast<ptrdiff_t>(n) < (m_end - m_freePtr)) { void* result = m_freePtr; m_freePtr += n; return result; } // Insufficient space to allocate in the existing pool // so we need allocate into a new pool return poolAllocate(n); } ~ExecutablePool() { AllocationList::const_iterator end = m_pools.end(); for (AllocationList::const_iterator ptr = m_pools.begin(); ptr != end; ++ptr) ExecutablePool::systemRelease(*ptr); } size_t available() const { return (m_pools.size() > 1) ? 0 : m_end - m_freePtr; } private: static Allocation systemAlloc(size_t n); static void systemRelease(const Allocation& alloc); ExecutablePool(size_t n); void* poolAllocate(size_t n); char* m_freePtr; char* m_end; AllocationList m_pools; }; class ExecutableAllocator { enum ProtectionSeting { Writable, Executable }; public: static size_t pageSize; ExecutableAllocator() { if (!pageSize) intializePageSize(); m_smallAllocationPool = ExecutablePool::create(JIT_ALLOCATOR_LARGE_ALLOC_SIZE); } PassRefPtr<ExecutablePool> poolForSize(size_t n) { // Try to fit in the existing small allocator if (n < m_smallAllocationPool->available()) return m_smallAllocationPool; // If the request is large, we just provide a unshared allocator if (n > JIT_ALLOCATOR_LARGE_ALLOC_SIZE) return ExecutablePool::create(n); // Create a new allocator RefPtr<ExecutablePool> pool = ExecutablePool::create(JIT_ALLOCATOR_LARGE_ALLOC_SIZE); // If the new allocator will result in more free space than in // the current small allocator, then we will use it instead if ((pool->available() - n) > m_smallAllocationPool->available()) m_smallAllocationPool = pool; return pool.release(); } #if ENABLE(ASSEMBLER_WX_EXCLUSIVE) static void makeWritable(void* start, size_t size) { reprotectRegion(start, size, Writable); } static void makeExecutable(void* start, size_t size) { reprotectRegion(start, size, Executable); } #else static void makeWritable(void*, size_t) {} static void makeExecutable(void*, size_t) {} #endif #if CPU(X86) || CPU(X86_64) static void cacheFlush(void*, size_t) { } #elif CPU(MIPS) static void cacheFlush(void* code, size_t size) { #if COMPILER(GCC) && (GCC_VERSION >= 40300) #if WTF_MIPS_ISA_REV(2) && (GCC_VERSION < 40403) int lineSize; asm("rdhwr %0, $1" : "=r" (lineSize)); // // Modify "start" and "end" to avoid GCC 4.3.0-4.4.2 bug in // mips_expand_synci_loop that may execute synci one more time. // "start" points to the fisrt byte of the cache line. // "end" points to the last byte of the line before the last cache line. // Because size is always a multiple of 4, this is safe to set // "end" to the last byte. // intptr_t start = reinterpret_cast<intptr_t>(code) & (-lineSize); intptr_t end = ((reinterpret_cast<intptr_t>(code) + size - 1) & (-lineSize)) - 1; __builtin___clear_cache(reinterpret_cast<char*>(start), reinterpret_cast<char*>(end)); #else intptr_t end = reinterpret_cast<intptr_t>(code) + size; __builtin___clear_cache(reinterpret_cast<char*>(code), reinterpret_cast<char*>(end)); #endif #else _flush_cache(reinterpret_cast<char*>(code), size, BCACHE); #endif } #elif CPU(ARM_THUMB2) && OS(IPHONE_OS) static void cacheFlush(void* code, size_t size) { sys_dcache_flush(code, size); sys_icache_invalidate(code, size); } #elif CPU(ARM_THUMB2) && OS(LINUX) static void cacheFlush(void* code, size_t size) { asm volatile ( "push {r7}\n" "mov r0, %0\n" "mov r1, %1\n" "movw r7, #0x2\n" "movt r7, #0xf\n" "movs r2, #0x0\n" "svc 0x0\n" "pop {r7}\n" : : "r" (code), "r" (reinterpret_cast<char*>(code) + size) : "r0", "r1", "r2"); } #elif CPU(ARM_TRADITIONAL) && OS(LINUX) && COMPILER(RVCT) static __asm void cacheFlush(void* code, size_t size); #elif CPU(ARM_TRADITIONAL) && OS(LINUX) && COMPILER(GCC) static void cacheFlush(void* code, size_t size) { asm volatile ( "push {r7}\n" "mov r0, %0\n" "mov r1, %1\n" "mov r7, #0xf0000\n" "add r7, r7, #0x2\n" "mov r2, #0x0\n" "svc 0x0\n" "pop {r7}\n" : : "r" (code), "r" (reinterpret_cast<char*>(code) + size) : "r0", "r1", "r2"); } #else #error "The cacheFlush support is missing on this platform." #endif private: #if ENABLE(ASSEMBLER_WX_EXCLUSIVE) static void reprotectRegion(void*, size_t, ProtectionSeting); #endif RefPtr<ExecutablePool> m_smallAllocationPool; static void intializePageSize(); }; inline ExecutablePool::ExecutablePool(size_t n) { size_t allocSize = roundUpAllocationSize(n, JIT_ALLOCATOR_PAGE_SIZE); Allocation mem = systemAlloc(allocSize); m_pools.append(mem); m_freePtr = mem.pages; if (!m_freePtr) CRASH(); // Failed to allocate m_end = m_freePtr + allocSize; } inline void* ExecutablePool::poolAllocate(size_t n) { size_t allocSize = roundUpAllocationSize(n, JIT_ALLOCATOR_PAGE_SIZE); Allocation result = systemAlloc(allocSize); if (!result.pages) CRASH(); // Failed to allocate ASSERT(m_end >= m_freePtr); if ((allocSize - n) > static_cast<size_t>(m_end - m_freePtr)) { // Replace allocation pool m_freePtr = result.pages + n; m_end = result.pages + allocSize; } m_pools.append(result); return result.pages; } } #endif // ENABLE(ASSEMBLER) #endif // !defined(ExecutableAllocator)
[ "explorer.ading@yahoo.com" ]
explorer.ading@yahoo.com
260f30895e71e15e15ae4bb327c3a870df69d4f8
9f81d77e028503dcbb6d7d4c0c302391b8fdd50c
/google/cloud/iam/iam_policy_connection_idempotency_policy.h
2b379ec37eea90a6bdf1b97aba9e15cc884906f5
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
googleapis/google-cloud-cpp
b96a6ee50c972371daa8b8067ddd803de95f54ba
178d6581b499242c52f9150817d91e6c95b773a5
refs/heads/main
2023-08-31T09:30:11.624568
2023-08-31T03:29:11
2023-08-31T03:29:11
111,860,063
450
351
Apache-2.0
2023-09-14T21:52:02
2017-11-24T00:19:31
C++
UTF-8
C++
false
false
1,574
h
// Copyright 2022 Google LLC // // 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 // // https://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. // Generated by the Codegen C++ plugin. // If you make any local changes, they will be lost. // source: google/iam/v1/iam_policy.proto #ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_IAM_IAM_POLICY_CONNECTION_IDEMPOTENCY_POLICY_H #define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_IAM_IAM_POLICY_CONNECTION_IDEMPOTENCY_POLICY_H #include "google/cloud/iam/v1/iam_policy_connection_idempotency_policy.h" namespace google { namespace cloud { namespace iam { GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN /// @deprecated Use iam_v1::MakeDefaultIAMPolicyConnectionIdempotencyPolicy /// directly. using ::google::cloud::iam_v1::MakeDefaultIAMPolicyConnectionIdempotencyPolicy; /// @deprecated Use iam_v1::IAMPolicyConnectionIdempotencyPolicy directly. using ::google::cloud::iam_v1::IAMPolicyConnectionIdempotencyPolicy; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace iam } // namespace cloud } // namespace google #endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_IAM_IAM_POLICY_CONNECTION_IDEMPOTENCY_POLICY_H
[ "noreply@github.com" ]
googleapis.noreply@github.com
fde3e10378b16105306b594bf7a164529e786ff0
513140b14d0b71b43cf0a8fbf33a510c20a5b9b6
/eve/geom/Plane.cpp
9d1ef724636319842bb9890e9e9b53e038b900d3
[ "BSD-3-Clause" ]
permissive
d-phaz/Eve
62cc5deb2ac53403cb04c839a19aaa6fd56abbc1
3949f159a41125e4ba8fe824ba5fad6e53e62929
refs/heads/master
2020-04-29T07:30:02.000490
2015-02-19T19:00:36
2015-02-19T19:00:36
27,451,471
0
0
null
2015-02-25T19:21:22
2014-12-02T20:17:50
C++
UTF-8
C++
false
false
4,199
cpp
// Main class #include "eve/geom/Plane.h" //================================================================================================= GLuint * eve::geom::create_plane_indices(void) { GLuint * indices = (GLuint*)eve::mem::malloc(6 * sizeof(GLuint)); GLuint * ind = indices - 1; *++ind = 0; *++ind = 1; *++ind = 2; *++ind = 2; *++ind = 3; *++ind = 0; return indices; } //================================================================================================= float * eve::geom::create_plane_textured_vertices(const eve::vec3f & p_position, const eve::vec2f & p_size) { float * vertices = (float*)eve::mem::malloc((32) * sizeof(float)); float posX = p_position.x; float posY = p_position.y; float posZ = p_position.z; float sizeX = p_size.x * 0.5f; float sizeY = p_size.y * 0.5f; float * vert = vertices - 1; // 1 *++vert = posX - sizeX; *++vert = posY + sizeY; *++vert = posZ; *++vert = 0.0f; *++vert = 1.0f; *++vert = 0.0f; *++vert = 0.0f; *++vert = 1.0f; // 2 *++vert = posX + sizeX; *++vert = posY + sizeY; *++vert = posZ; *++vert = 1.0f; *++vert = 1.0f; *++vert = 1.0f; *++vert = 0.0f; *++vert = 1.0f; // 3 *++vert = posX + sizeX; *++vert = posY - sizeY; *++vert = posZ; *++vert = 1.0f; *++vert = 0.0f; *++vert = 1.0f; *++vert = 0.0f; *++vert = 1.0f; // 4 *++vert = posX - sizeX; *++vert = posY - sizeY; *++vert = posZ; *++vert = 0.0f; *++vert = 0.0f; *++vert = 1.0f; *++vert = 0.0f; *++vert = 1.0f; return vertices; } //================================================================================================= float * eve::geom::create_plane_colored_vertices(const eve::vec3f & p_position, const eve::vec2f & p_size, const eve::color4f & p_color) { float * vertices = (float*)eve::mem::malloc((40) * sizeof(float)); float posX = p_position.x; float posY = p_position.y; float posZ = p_position.z; float sizeX = p_size.x * 0.5f; float sizeY = p_size.y * 0.5f; float red = p_color.x; float green = p_color.y; float blue = p_color.z; float alpha = p_color.w; float * vert = vertices - 1; // 1 *++vert = posX - sizeX; *++vert = posY + sizeY; *++vert = posZ; *++vert = red; *++vert = green; *++vert = blue; *++vert = alpha; *++vert = 0.0f; *++vert = 0.0f; *++vert = 1.0f; // 2 *++vert = posX + sizeX; *++vert = posY + sizeY; *++vert = posZ; *++vert = red; *++vert = green; *++vert = blue; *++vert = alpha; *++vert = 1.0f; *++vert = 0.0f; *++vert = 1.0f; // 3 *++vert = posX + sizeX; *++vert = posY - sizeY; *++vert = posZ; *++vert = red; *++vert = green; *++vert = blue; *++vert = alpha; *++vert = 1.0f; *++vert = 0.0f; *++vert = 1.0f; // 4 *++vert = posX - sizeX; *++vert = posY - sizeY; *++vert = posZ; *++vert = red; *++vert = green; *++vert = blue; *++vert = alpha; *++vert = 1.0f; *++vert = 0.0f; *++vert = 1.0f; return vertices; } //================================================================================================= eve::ogl::FormatVao eve::geom::create_plane_textured(const eve::vec3f & p_position, const eve::vec2f & p_size) { eve::ogl::FormatVao ret; ret.numVertices = 4; ret.numIndices = 6; ret.perVertexNumPosition = 3; ret.perVertexNumDiffuse = 2; ret.perVertexNumNormal = 3; float * vertices = eve::geom::create_plane_textured_vertices(p_position, p_size); ret.vertices.reset(vertices); GLuint * indices = eve::geom::create_plane_indices(); ret.indices.reset(indices); return ret; } //================================================================================================= eve::ogl::FormatVao eve::geom::create_plane_colored(const eve::vec3f & p_position, const eve::vec2f & p_size, const eve::color4f & p_color) { eve::ogl::FormatVao ret; ret.numVertices = 4; ret.numIndices = 6; ret.perVertexNumPosition = 3; ret.perVertexNumDiffuse = 4; ret.perVertexNumNormal = 3; float * vertices = eve::geom::create_plane_colored_vertices(p_position, p_size, p_color); ret.vertices.reset(vertices); GLuint * indices = eve::geom::create_plane_indices(); ret.indices.reset(indices); return ret; }
[ "romain@ftopia.com" ]
romain@ftopia.com
fefc33012edca856590562bb67e3ab193cc5d793
34dd8db9eacf8f789be6ca3a980ec8487c865d2b
/T2H1/ValveGen/CGlobalNonRewinding.h
ae8feaddbfaa7706edf7b4f8362a43bad39499f5
[]
no_license
athena255/T2H1
4f4ea0b62beec810d2d3ee3bbb60a5e6d76f0998
7b0345120bdeb7b95dba20bb06aebeebcb37bccc
refs/heads/master
2020-07-12T13:59:41.617702
2020-04-23T01:16:59
2020-04-23T01:16:59
204,835,730
6
0
null
null
null
null
UTF-8
C++
false
false
296
h
//*********************************************** // File: CGlobalNonRewinding.h //*********************************************** #pragma once #pragma pack(push,1) class CGlobalNonRewinding { public: unsigned char _0x0[0xb38]; uint64_t m_playerObserver; // 0xb38 }; #pragma pack(pop)
[ "afc65@cornell.edu" ]
afc65@cornell.edu
88cff812f4de6da8967e079266db2031ce75f49e
efb73a1955588aa359b0e9474c26d0b521961eb7
/SMFL/ReverbButton.h
f77feba9f42fa396bbd9e26f319abc4b6e83a9f2
[]
no_license
Smilesprower/Super-Bullet-Crush
65048ed0d2b5bec034f4ea31dd2c9dd23a8f4090
19adc40f65e1afd83ed49386ca146a877775b01b
refs/heads/master
2021-01-10T15:47:02.209614
2016-02-23T12:11:47
2016-02-23T12:11:47
48,174,658
0
0
null
null
null
null
UTF-8
C++
false
false
413
h
#pragma once #include "SFML\System\Vector2.hpp" #include "SFML\Graphics\Rect.hpp" #include "Button.h" #include "SFML\Graphics\CircleShape.hpp" class ReverbButton : public Button { public: ReverbButton(sf::IntRect p_position); ~ReverbButton(); void Update(sf::Vector2i p_mousePos); void ClickedFunc(); void Draw(sf::RenderWindow &p_window); private: bool m_isReverbEnabled; sf::CircleShape m_circle; };
[ "c00185326@itcarlow.ie" ]
c00185326@itcarlow.ie
bffeae6c065d38d66ffa9b78b0458771a1230007
64b38d9785df6e4a6376aa129b22c2c8e746c942
/Arrays/array2.cpp
b297375276a9912cfaca00c15d38adc164e9ed59
[]
no_license
KnifeParty12/Competitive_Programming_Templates
d38c4fee65a742467c796a9b63d1a36826f8d16a
083b6d3cf8e464cd27177a191353528a8d939fdc
refs/heads/master
2023-02-09T01:07:56.234024
2021-01-01T16:07:37
2021-01-01T16:07:37
306,255,078
0
0
null
null
null
null
UTF-8
C++
false
false
301
cpp
#include<iostream> using namespace std; void deletion(int arr[],int size,int k){ for(int i=k;i<size;i++){ arr[i]=arr[i+1]; } } int main(){ int bucky[6]={0,0,0,0,0,0}; for(int i=0;i<6;i++){ cin>>bucky[i]; } deletion(bucky,6,4); for(int i=0;i<5;i++){ cout<<bucky[i]<<" "; } return 0; }
[ "flashfunk01@gmail.com" ]
flashfunk01@gmail.com
35a445a9f10bedd04cf191718ab01318684b1eaa
57239e0899b2208a28b27ca2804304ae5215e189
/day-19/day-19.cpp
cbd13be8b5bfa31ddfff36e05ec0840d16e01879
[]
no_license
srishanbhattarai/advent-of-code-2020
cdffeaeb3bfe274a09262f4ce191741e7c48bc3b
bfbf26a921a727500e62195a0d9886a34d0eaf7b
refs/heads/master
2023-02-04T13:48:14.602051
2020-12-25T05:54:06
2020-12-25T05:58:30
317,681,722
2
0
null
null
null
null
UTF-8
C++
false
false
5,202
cpp
#include <fstream> #include <regex> #include <sstream> #include <unordered_map> #include <vector> using namespace std; vector<string> split(string str, string delim); string join(vector<string> str, string delim); // first half of the input unordered_map<string, string> rules; // 2nd half of the input vector<string> strings; unordered_map<string, string> dp; string regexify_rule(string rule_num, bool part_two) { if (dp.find(rule_num) != dp.end()) { return dp[rule_num]; } // part two specific section. if (part_two) { // 8: 42 | 42 8 // // the first rule is a simple recursion so the regex pattern for it // would be regex(42)+ (1 or more times) if (rule_num == "8") { dp["8"] = regexify_rule("42", part_two) + "+"; return dp["8"]; } // 11: 42 31 | 42 11 31 // Expanding the inner 11 in the second rule: // (regex(42) regex(42){n} regex(31){n} regex(31) // // Or, // regex(42){n + 1}regex(31){n + 1} // // this is tricker because we don't know how many repititons of 'n' will // match all the valid options in the problem. So we pick a number like 50, // which hopefully does the job. // // This took me a while to figure out and I don't know if c++ regexes // are slow/bad but the Python version of this runs for n=100 and executes // instantly (check sophiebits' code on github) which turns out is pretty // much the same as this one, minus the dynamic programming (which doesn't // matter because the bulk of the time is spent in regex matching which is // mega slow here). // // This code takes a good while to run even with -O3, and if you set n too // high (> 50) it may not even complete. // // I frequently got this error: // The complexity of an attempted match against a regular expression // exceeded a pre-set level. // which is "documented" here: // http://www.cplusplus.com/reference/regex/regex_error/ if (rule_num == "11") { auto first = regexify_rule("42", part_two); auto second = regexify_rule("31", part_two); vector<string> patterns; for (int n = 1; n < 40; n++) { patterns.push_back(first + "{" + std::to_string(n) + "}" + second + "{" + std::to_string(n) + "}"); } dp["11"] = "(" + join(patterns, "|") + ")"; return dp["11"]; } } auto rule = rules[rule_num]; // only "a" and "b" contain a double quote if (rule.find("\"") != string::npos) { // For a rule "a", rule[1] == a return string(1, rule[1]); } // There are two other types of rules: // 80: 131 97 // and, 131: 123 97 | 97 123 // // We want a regex that recursively evaluates each of the // possibilities and joins them using a "|" auto possibilities = split(rule, " | "); vector<string> patterns; for (auto p : possibilities) { // ["123 97", "97 123"] vector<string> intermediate; for (auto r : split(p, " ")) { // "[123, 97]" auto pattern = regexify_rule(r, part_two); intermediate.push_back(pattern); } // rules within the same side of the "|" have to be concatenated patterns.push_back(join(intermediate, "")); } // all the patterns must be separated by an "|" since they are to be matched // using an "OR" dp[rule_num] = "(" + join(patterns, "|") + ")"; return dp[rule_num]; } int solve(string god_regex) { // for each string, check if it matches this god pattern int sum = 0; for (auto str : strings) sum += std::regex_match(str, std::regex(god_regex)); return sum; } int main() { fstream in("input.txt"); stringstream buffer; buffer << in.rdbuf(); auto input = split(buffer.str(), "\n\n"); // split into strings l lj auto first_half = input[0]; auto second_half = input[1]; // parse the rules auto first_half_parts = split(first_half, "\n"); for (string rule : first_half_parts) { vector<string> data = split(rule, ": "); rules[data[0]] = data[1]; } // parse the strings auto second_half_parts = split(second_half, "\n"); for (auto str : second_half_parts) { if (str != "") strings.push_back(str); } // the idea is to create a god regex that matches all strings // that satisfy rule 0 auto zero = string(1, '0'); printf("Part One Answer: %d\n", solve(regexify_rule(zero, false))); dp.clear(); printf("Part Two Answer: %d\n", solve(regexify_rule(zero, true))); return 0; } // does what it says - can people add string.split to STL please. vector<string> split(string str, string delim) { vector<string> results; while (str.size()) { int index = str.find(delim); if (index == string::npos) { // end of file, push remaining results.push_back(str); str = ""; } else { results.push_back(str.substr(0, index)); str = str.substr(index + delim.size()); if (str.size() == 0) results.push_back(str); // rest of the file } } return results; } string join(vector<string> v, string delim) { string res; for (int i = 0; i < v.size(); i++) { res += v[i]; if (i != v.size() - 1) res += delim; } return res; }
[ "srishanbhattarai@gmail.com" ]
srishanbhattarai@gmail.com
4eca9e2749753fc2e79d420b779b64046aa86749
83f4f4e01dc13ecc9f1993db898e8aaa584b2629
/C++基础课程/Day02/10 程序设计案例_设计立方体类/Cube.cpp
c1c370e89c6700ad3ecbcac2bb7f524715f0e964
[ "MIT" ]
permissive
Gooooodman/CPP.Sample
12716dfc1a32946a8b929f02fe33168974f9d83e
c87c697911ba3b857b754da5ade40fd024ab272e
refs/heads/master
2021-01-21T23:09:32.649979
2017-06-23T01:04:04
2017-06-23T01:04:04
null
0
0
null
null
null
null
GB18030
C++
false
false
639
cpp
#include "Cube.h" void Cube::setL(int l) { mL = l; } void Cube::setW(int w) { mW = w; } void Cube::setH(int h) { mH = h; } //告诉编译器,放心吧,我不会修改成员变量的值 //常函数 int Cube::getL() const { return mL; } int Cube::getW() const { return mW; } int Cube::getH() const { return mH; } int Cube::caculateS() { return (mL * mH + mL * mW + mH *mW) * 2; } int Cube::caculateV() { return mL * mW * mH; } bool Cube::CubeComapreCube(const Cube &c) { if (getH() == c.getH() && getL() == c.getL() && getW() == c.getW()) { return true; } return false; }
[ "807776962@qq.com" ]
807776962@qq.com
55956710b5a24e14298c35b5c1fc8ed86ed2ab65
c2ac4f977ae7600449b627d81318e0808cd5d85d
/projects/cocos2dx/samples/Cpp/WordRush/proj.win32/main.cpp
eff900f7ef40798e955becd7f5b41d73d52a6347
[ "MIT" ]
permissive
vietgameplay/vietgameplay
cd5308bbce15a1938abc81efc9cc17a2746a5039
3830a9990f44b594e67f16f67d78195813fccdd9
refs/heads/master
2021-01-10T02:13:46.575852
2015-02-01T13:02:11
2015-02-01T13:02:11
36,883,499
0
0
null
null
null
null
UTF-8
C++
false
false
592
cpp
#include "main.h" #include "AppDelegate.h" #include "CCEGLView.h" USING_NS_CC; int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) { UNREFERENCED_PARAMETER(hPrevInstance); UNREFERENCED_PARAMETER(lpCmdLine); // create the application instance AppDelegate app; CCEGLView* eglView = CCEGLView::sharedOpenGLView(); eglView->setViewName("WordRush"); eglView->setFrameSize(480, 800); return CCApplication::sharedApplication()->run(); }
[ "nguyenvietvu.it@gmail.com" ]
nguyenvietvu.it@gmail.com
d6d6d1f6aee84dbb90320960874b7165f23e0e30
a5da02227cbbc30effaf43d52bdca26223daf98e
/CCC/Stage1/00-Done/ccc00j4s2.cpp
1ad4d10f2ae78ee43086a4974c1ad1b7c02cb212
[ "MIT" ]
permissive
zzh8829/CompetitiveProgramming
853edabdfc728504abaa27333bd4900a7f97c8c9
36f36b10269b4648ca8be0b08c2c49e96abede25
refs/heads/master
2021-01-01T15:41:08.984386
2018-03-25T17:32:39
2018-03-25T17:32:39
35,587,680
1
0
null
null
null
null
UTF-8
C++
false
false
759
cpp
#include <iostream> #include <cstdio> #include <vector> using namespace std; int main() { vector<float> vi; int n; cin >> n; for(int i=0;i!=n;i++) { float in; cin >> in; vi.push_back(in); } int state; while(cin >> state && state !=77) { if(state == 99) { int num; cin >> num; float per; cin >> per; float left = vi[num-1]*per/100.0; float right = vi[num-1]-left; vi[num-1]=left; vi.insert(vi.begin()+num,right); } else if(state == 88) { int num; cin >> num; vi[num]+=vi[num-1]; vi.erase(vi.begin()+num-1); } } for(int i=0;i<vi.size();i++) { if(i) cout << " "; cout << int(vi[i]+0.5) ; } cout <<endl; system("pause"); return 0; }
[ "zzh8829@gmail.com" ]
zzh8829@gmail.com
f1ad7aa969ea4c692c0fe10246d873bf0023918f
bdfca7d4bd6e1baf2c43e593de66fcba80afadeb
/prog-verf/assignment1/sketch-1.7.5/sketch-frontend/test/sk/seq/miniTestb454.cpp
9926a57465f29502eb4a2c0fbd46614c9de5eaaf
[]
no_license
wanghanxiao123/Semester4
efa82fc435542809d6c1fbed46ed5fea1540787e
c37ecda8b471685b0b6350070b939d01122f5e7f
refs/heads/master
2023-03-22T06:47:16.823584
2021-03-15T10:46:53
2021-03-15T10:46:53
null
0
0
null
null
null
null
UTF-8
C++
false
false
352
cpp
#include <cstdio> #include <assert.h> #include <iostream> using namespace std; #include "vops.h" #include "miniTestb454.h" namespace ANONYMOUS{ void main__Wrapper() { _main(); } void main__WrapperNospec() {} void _main() { int x_s1=0; foo(1, 0, x_s1); assert ((x_s1) == (0));; } void foo(int i, int j, int& _out) { _out = j; return; } }
[ "akshatgoyalak23@gmail.com" ]
akshatgoyalak23@gmail.com
9fda3dbd2b03fad7a5cfeaae761ccdb82bcbaab8
9355bdd2fac34005dde62a84d8b030061fc20a67
/processor/reorder_buffer_line.hpp
da70264ee994d2120448b7fb4b1471504a840328
[]
no_license
GabrielCambe/OrCS
493163431e039e389575ff12a8a8058bc1ba5c78
2f845f37bf179af2d1886dd8866cc9794b34c72e
refs/heads/master
2023-03-27T22:26:27.779416
2021-01-21T19:19:05
2021-01-21T19:19:05
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,158
hpp
/* * Copyright (C) 2010~2014 Marco Antonio Zanata Alves * (mazalves at inf.ufrgs.br) * GPPD - Parallel and Distributed Processing Group * Universidade Federal do Rio Grande do Sul * * 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 3 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, see <http://www.gnu.org/licenses/>. */ class reorder_buffer_line_t { public: // ============================================== uint32_t processor_id; uop_package_t uop; //* /// uOP stored processor_stage_t stage; //* /// Stage of the uOP /// Register Dependencies Control uint32_t wait_reg_deps_number; /// Must wait BEFORE execution reorder_buffer_line_t* *reg_deps_ptr_array; /// Elements to wake-up AFTER execution uint32_t wake_up_elements_counter; /// Counter of elements to wakeup memory_order_buffer_line_t* mob_ptr; /// mob pointer to memory request bool sent; /// Control flag to remove robs entry // ==================================================================== /// Methods // ==================================================================== reorder_buffer_line_t(); ~reorder_buffer_line_t(); void package_clean(); std::string content_to_string(); std::string content_to_string2(); static std::string print_all(reorder_buffer_line_t *input_array, uint32_t size_array); };
[ "rkohler@inf.ufpr.br" ]
rkohler@inf.ufpr.br
b34e7a3f029a0ace62bd45670221f3d444e2c89b
73a9ebc9669cb2edf2be361009dd9f085f9d2e82
/Mathematics/IntrPlane3Sphere3.h
728a0f95dec7f40802cc149d83dd4e00d8319bfc
[]
no_license
zhouxs1023/GTE
49f82c54891b33460f39a35d74b95c76123482c8
6db3ea29eaa612320da603f83ca9b7125cc66546
refs/heads/master
2021-07-18T04:22:30.982107
2020-09-15T15:16:11
2020-09-15T15:16:11
202,730,606
1
0
null
null
null
null
UTF-8
C++
false
false
2,841
h
// David Eberly, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2020 // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt // https://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // Version: 4.0.2019.08.13 #pragma once #include <Mathematics/FIQuery.h> #include <Mathematics/TIQuery.h> #include <Mathematics/DistPoint3Plane3.h> #include <Mathematics/Hypersphere.h> #include <Mathematics/Circle3.h> namespace gte { template <typename Real> class TIQuery<Real, Plane3<Real>, Sphere3<Real>> { public: struct Result { bool intersect; }; Result operator()(Plane3<Real> const& plane, Sphere3<Real> const& sphere) { Result result; DCPQuery<Real, Vector3<Real>, Plane3<Real>> ppQuery; auto ppResult = ppQuery(sphere.center, plane); result.intersect = (ppResult.distance <= sphere.radius); return result; } }; template <typename Real> class FIQuery<Real, Plane3<Real>, Sphere3<Real>> { public: struct Result { bool intersect; // If 'intersect' is true, the intersection is either a point or a // circle. When 'isCircle' is true, 'circle' is valid. When // 'isCircle' is false, 'point' is valid. bool isCircle; Circle3<Real> circle; Vector3<Real> point; }; Result operator()(Plane3<Real> const& plane, Sphere3<Real> const& sphere) { Result result; DCPQuery<Real, Vector3<Real>, Plane3<Real>> ppQuery; auto ppResult = ppQuery(sphere.center, plane); if (ppResult.distance < sphere.radius) { result.intersect = true; result.isCircle = true; result.circle.center = sphere.center - ppResult.signedDistance * plane.normal; result.circle.normal = plane.normal; // The sum and diff are both positive numbers. Real sum = sphere.radius + ppResult.distance; Real dif = sphere.radius - ppResult.distance; // arg = sqr(sphere.radius) - sqr(ppResult.distance) Real arg = sum * dif; result.circle.radius = std::sqrt(arg); return result; } else if (ppResult.distance == sphere.radius) { result.intersect = true; result.isCircle = false; result.point = sphere.center - ppResult.signedDistance * plane.normal; return result; } else { result.intersect = false; return result; } } }; }
[ "zhouxs1023@163.com" ]
zhouxs1023@163.com
eae78a28dcc9075f088237c1cd9cf579d070f326
c057dd650b2e6779be354aaef52cc96837f1e7d1
/test/example_4/src/example_xrm_host_opencl.cpp
da2af77902b5a200ac171566f358a1cd10c2d756
[ "Apache-2.0" ]
permissive
santoshkrishna4138/XRM
fa18ffcd62e9a7cb821a39102d555b7cd5799129
66d948f7fdb61f9c231c7d4888f642c474ecfdaa
refs/heads/master
2023-06-05T01:43:04.749368
2021-06-26T00:43:42
2021-06-26T00:43:42
null
0
0
null
null
null
null
UTF-8
C++
false
false
7,138
cpp
/* * Copyright (C) 2019-2020, Xilinx Inc - All rights reserved * Xilinx Resouce Management * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located 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 <vector> #include <stdlib.h> #include <sys/types.h> #include <unistd.h> #include <sys/wait.h> #include <xrm.h> #include "example_xcl2.hpp" #define LENGTH (1024) int runKernel(int32_t deviceId, std::string kernelName, const char* pXclbin) { int pid = getpid(); printf("[PID: %d] Start vector operation (Parent pid: %d)\n", pid, getppid()); size_t vectorSizeBytes = sizeof(int) * LENGTH; std::vector<int, aligned_allocator<int> > sourceA(LENGTH); std::vector<int, aligned_allocator<int> > sourceB(LENGTH); std::vector<int, aligned_allocator<int> > resultSim(LENGTH); std::vector<int, aligned_allocator<int> > resultKrnl(LENGTH); /* Create the test data and run the vector addition locally */ printf("[PID: %d] Fill the input data and generate golden output\n", pid); for (int i = 0; i < LENGTH; i++) { sourceA[i] = 2 * (i + pid); sourceB[i] = (i + pid); if (kernelName == "krnl_vadd") { resultSim[i] = sourceA[i] + sourceB[i]; } else if (kernelName == "krnl_vsub") { resultSim[i] = sourceA[i] - sourceB[i]; } else if (kernelName == "krnl_vmul") { resultSim[i] = sourceA[i] * sourceB[i]; } else if (kernelName == "krnl_vdiv") { resultSim[i] = sourceA[i] / sourceB[i]; } else { std::cout << "[ERROR] Krnl ID is unknown!!" << std::endl; } } printf("[PID: %d] Get Xilinx device information\n", pid); std::vector<cl::Device> devices = xcl::get_xil_devices(); cl::Device device = devices[deviceId]; printf("[PID: %d] Create context and command queue\n", pid); cl::Context context(device); cl::CommandQueue q(context, device, CL_QUEUE_PROFILING_ENABLE); std::string deviceName = device.getInfo<CL_DEVICE_NAME>(); printf("[PID: %d] Import xclbin file\n", pid); cl::Program::Binaries bins = xcl::import_binary_file(pXclbin); devices.resize(1); //program the specified device. devices[0] = device; cl::Program program(context, devices, bins); cl::Kernel kernel(program, kernelName.c_str()); printf("[PID: %d] Allocate OpenCL buffers\n", pid); std::vector<cl::Memory> inBufVec, outBufVec; cl::Buffer bufferA(context, CL_MEM_USE_HOST_PTR | CL_MEM_READ_ONLY, vectorSizeBytes, sourceA.data()); cl::Buffer bufferB(context, CL_MEM_USE_HOST_PTR | CL_MEM_READ_ONLY, vectorSizeBytes, sourceB.data()); cl::Buffer bufferC(context, CL_MEM_USE_HOST_PTR | CL_MEM_WRITE_ONLY, vectorSizeBytes, resultKrnl.data()); inBufVec.push_back(bufferA); inBufVec.push_back(bufferB); outBufVec.push_back(bufferC); /* Copy input vectors to memory */ printf("[PID: %d] Transfer the input data to device\n", pid); q.enqueueMigrateMemObjects(inBufVec, 0 /* 0 means from host*/); /* Set the kernel arguments */ printf("[PID: %d] Set the kernel arguments\n", pid); int vectorLength = LENGTH; kernel.setArg(0, bufferA); kernel.setArg(1, bufferB); kernel.setArg(2, bufferC); kernel.setArg(3, vectorLength); /* Launch the kernel */ printf("\n[PID: %d] Launch kernel\n", pid); q.enqueueTask(kernel); printf("\n[PID: %d] Wait until the kernel completes\n", pid); q.finish(); /* Copy result to local buffer */ printf("[PID: %d] Transfer the output data from device\n", pid); q.enqueueMigrateMemObjects(outBufVec, CL_MIGRATE_MEM_OBJECT_HOST); q.finish(); /* Compare the results of the kernel to the simulation */ int kernelMatch = 0; printf("[PID: %d] Check the output data with golden results\n", pid); for (int i = 0; i < LENGTH; i++) { if (resultSim[i] != resultKrnl[i]) { printf("[PID: %d] Error: i = %d CPU result = %d Krnl Result = %d\n", pid, i, resultSim[i], resultKrnl[i]); kernelMatch = 1; // break; } else { // printf("[PID: %d] Result Match: i = %d CPU result = %d Krnl Result = %d\n", pid, i, resultSim[i], // resultKrnl[i]); } } std::cout << "[PID: " << pid << "] TEST " << (kernelMatch ? "FAILED" : "PASSED") << std::endl; return (kernelMatch ? EXIT_FAILURE : EXIT_SUCCESS); } int main(int argc, char* argv[]) { if (argc < 2) { printf("How to run the test:\n"); printf("./example_xrm_host_opencl krnl_vadd\n"); printf("./example_xrm_host_opencl krnl_vsub\n"); printf("./example_xrm_host_opencl krnl_vmul\n"); printf("./example_xrm_host_opencl krnl_vdiv\n"); return 0; } int iter = 2; std::string l_kernelName = argv[1]; xrmContext* ctx = (xrmContext*)xrmCreateContext(XRM_API_VERSION_1); if (ctx == NULL) { printf("create context failed\n"); return 0; } xrmCuProperty addCuProp; xrmCuResource addCuRes; memset(&addCuProp, 0, sizeof(xrmCuProperty)); memset(&addCuRes, 0, sizeof(xrmCuResource)); strcpy(addCuProp.kernelName, l_kernelName.c_str()); strcpy(addCuProp.kernelAlias, ""); addCuProp.devExcl = false; addCuProp.requestLoad = 100; int ret = xrmCuAlloc(ctx, &addCuProp, &addCuRes); if (ret != 0) { printf("xrmCuAlloc: fail to alloc scaler cu\n"); return ret; } else { printf("Allocated scaler cu: \n"); printf(" xclbinFileName is: %s\n", addCuRes.xclbinFileName); printf(" kernelPluginFileName is: %s\n", addCuRes.kernelPluginFileName); printf(" kernelName is: %s\n", addCuRes.kernelName); printf(" kernelAlias is: %s\n", addCuRes.kernelAlias); printf(" deviceId is: %d\n", addCuRes.deviceId); printf(" cuId is: %d\n", addCuRes.cuId); printf(" channelId is: %d\n", addCuRes.channelId); printf(" allocServiceId is: %lu\n", addCuRes.allocServiceId); printf(" channelLoad is: %d\n", addCuRes.channelLoad); } if (iter > 0) { std::cout << "Now create (" << iter << ") child processes" << std::endl; for (int i = 0; i < iter; i++) { if (fork() == 0) { // printf("[son] pid %d from [parent] pid %d\n",getpid(),getppid()); ret = runKernel(addCuRes.deviceId, l_kernelName, addCuRes.xclbinFileName); exit(ret); } } std::cout << "[PID: " << getpid() << "] Parent waits child to finish.\n\n" << std::endl; wait(NULL); } xrmCuRelease(ctx, &addCuRes); return ret; }
[ "bin.tu@xilinx.com" ]
bin.tu@xilinx.com
783e0339e8b420e3628244fe44b50a8334983347
133d0f38b3da2c51bf52bcdfa11d62978b94d031
/testAutocad/vendor/ifc-sdk/src/ifc2x3/IfcAnnotationSurface.cpp
4cf4f0cb035a1a59b87ba79d935486dd80669765
[]
no_license
Aligon42/ImportIFC
850404f1e1addf848e976b0351d9e217a72f868a
594001fc0942d356eb0d0472c959195151510493
refs/heads/master
2023-08-15T08:00:14.056542
2021-07-05T13:49:28
2021-07-05T13:49:28
361,410,709
0
1
null
null
null
null
UTF-8
C++
false
false
4,764
cpp
// IFC SDK : IFC2X3 C++ Early Classes // Copyright (C) 2009 CSTB // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either // version 2.1 of the License, or (at your option) any later version. // The full license is in Licence.txt file included with this // distribution or is available at : // http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. #include <ifc2x3/IfcAnnotationSurface.h> #include <ifc2x3/CopyOp.h> #include <ifc2x3/IfcGeometricRepresentationItem.h> #include <ifc2x3/IfcTextureCoordinate.h> #include <ifc2x3/Visitor.h> #include <Step/BaseExpressDataSet.h> #include <Step/BaseObject.h> #include <Step/ClassType.h> #include <Step/Referenced.h> #include <Step/SPFFunctions.h> #include <string> #include "precompiled.h" using namespace ifc2x3; IfcAnnotationSurface::IfcAnnotationSurface(Step::Id id, Step::SPFData *args) : IfcGeometricRepresentationItem(id, args) { m_item = NULL; m_textureCoordinates = NULL; } IfcAnnotationSurface::~IfcAnnotationSurface() { } bool IfcAnnotationSurface::acceptVisitor(Step::BaseVisitor *visitor) { return static_cast< Visitor * > (visitor)->visitIfcAnnotationSurface(this); } const std::string &IfcAnnotationSurface::type() const { return IfcAnnotationSurface::s_type.getName(); } const Step::ClassType &IfcAnnotationSurface::getClassType() { return IfcAnnotationSurface::s_type; } const Step::ClassType &IfcAnnotationSurface::getType() const { return IfcAnnotationSurface::s_type; } bool IfcAnnotationSurface::isOfType(const Step::ClassType &t) const { return IfcAnnotationSurface::s_type == t ? true : IfcGeometricRepresentationItem::isOfType(t); } IfcGeometricRepresentationItem *IfcAnnotationSurface::getItem() { if (Step::BaseObject::inited()) { return m_item.get(); } else { return NULL; } } const IfcGeometricRepresentationItem *IfcAnnotationSurface::getItem() const { IfcAnnotationSurface * deConstObject = const_cast< IfcAnnotationSurface * > (this); return deConstObject->getItem(); } void IfcAnnotationSurface::setItem(const Step::RefPtr< IfcGeometricRepresentationItem > &value) { m_item = value; } void IfcAnnotationSurface::unsetItem() { m_item = Step::getUnset(getItem()); } bool IfcAnnotationSurface::testItem() const { return !Step::isUnset(getItem()); } IfcTextureCoordinate *IfcAnnotationSurface::getTextureCoordinates() { if (Step::BaseObject::inited()) { return m_textureCoordinates.get(); } else { return NULL; } } const IfcTextureCoordinate *IfcAnnotationSurface::getTextureCoordinates() const { IfcAnnotationSurface * deConstObject = const_cast< IfcAnnotationSurface * > (this); return deConstObject->getTextureCoordinates(); } void IfcAnnotationSurface::setTextureCoordinates(const Step::RefPtr< IfcTextureCoordinate > &value) { if (m_textureCoordinates.valid()) { m_textureCoordinates->m_annotatedSurface.erase(this); } if (value.valid()) { value->m_annotatedSurface.insert(this); } m_textureCoordinates = value; } void IfcAnnotationSurface::unsetTextureCoordinates() { m_textureCoordinates = Step::getUnset(getTextureCoordinates()); } bool IfcAnnotationSurface::testTextureCoordinates() const { return !Step::isUnset(getTextureCoordinates()); } bool IfcAnnotationSurface::init() { bool status = IfcGeometricRepresentationItem::init(); std::string arg; if (!status) { return false; } arg = m_args->getNext(); if (arg == "$" || arg == "*") { m_item = NULL; } else { m_item = static_cast< IfcGeometricRepresentationItem * > (m_expressDataSet->get(Step::getIdParam(arg))); } arg = m_args->getNext(); if (arg == "$" || arg == "*") { m_textureCoordinates = NULL; } else { m_textureCoordinates = static_cast< IfcTextureCoordinate * > (m_expressDataSet->get(Step::getIdParam(arg))); } return true; } void IfcAnnotationSurface::copy(const IfcAnnotationSurface &obj, const CopyOp &copyop) { IfcGeometricRepresentationItem::copy(obj, copyop); setItem((IfcGeometricRepresentationItem*)copyop(obj.m_item.get())); setTextureCoordinates((IfcTextureCoordinate*)copyop(obj.m_textureCoordinates.get())); return; } IFC2X3_EXPORT Step::ClassType IfcAnnotationSurface::s_type("IfcAnnotationSurface");
[ "antoine.cacheux@procal.fr" ]
antoine.cacheux@procal.fr
74e26a9d6708f6f402b9535749baf1f991e9ffff
ede39dd3b4eff4a4b5bad0a70918295170845cbd
/mojo/shell/android/android_handler_loader.cc
922dbb5f27900846aff2a2c2c4ead872c05196d2
[ "BSD-3-Clause" ]
permissive
fujunwei/chromium-crosswalk
9ae06862337e49061d49b932fc049f460463d5c3
24a582e5655871d72348c18f77ead355cc32126e
refs/heads/master
2022-10-18T22:20:24.494151
2015-04-02T10:55:14
2015-05-22T05:56:53
37,062,999
1
0
null
2015-06-08T11:30:41
2015-06-08T11:30:41
null
UTF-8
C++
false
false
657
cc
// Copyright 2014 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. #include "mojo/shell/android/android_handler_loader.h" namespace mojo { namespace shell { AndroidHandlerLoader::AndroidHandlerLoader() { } AndroidHandlerLoader::~AndroidHandlerLoader() { } void AndroidHandlerLoader::Load( const GURL& url, InterfaceRequest<Application> application_request) { DCHECK(application_request.is_pending()); application_.reset( new ApplicationImpl(&android_handler_, application_request.Pass())); } } // namespace shell } // namespace mojo
[ "jam@chromium.org" ]
jam@chromium.org
30d99bb0dc6ace43fb6cf02e737f0d29d4ab3a50
39c2c1eecd75ba7271f361d20cb877de8f749e99
/c++/exercise/ex1/section4/TreeSum.cc
b9eedf66acfd336a833fcbb0fa1ab76a3ffa7e45
[]
no_license
Mhaoyuan/algorithm
7fd29794510ddde7c1ccb694e1be87e76fc1cad6
e7ce84f4402813cd824673b4757fe2c6ed4cc8cf
refs/heads/main
2023-05-06T10:17:36.326289
2021-05-31T12:49:28
2021-05-31T12:49:28
342,789,160
0
0
null
2021-05-31T12:49:29
2021-02-27T06:36:28
C++
UTF-8
C++
false
false
2,212
cc
#include<fstream> #include<iostream> #include<vector> #include<ctime> #include<functional> #include<unistd.h> #include<algorithm> #include"/Users/mahaoyuan/Workpace/algorithm/c++/utils/stopwatch.h" using namespace utils; int TreeSum(const std::vector<int>& nums){ int count = 0; for(int i = 0; i < nums.size(); i++) for(int j = i + 1 ; j < nums.size(); j++) for(int k = j + 1; k < nums.size(); k++){ if (nums[i] + nums[j] + nums[k] == 0){ count++; std::cout << nums[i] << " " << nums[j] << " " <<nums[k] << std::endl; } } return count; } int BinarySearch(const std::vector<int>& nums, int target){ if(nums.empty()){ return -1; } int low = 0; int high = nums.size() - 1; int mid; while(low <= high){ mid = low + (high - low)/2; if(target < nums[mid]){ high = mid - 1; } else if(target > nums[mid]){ low = mid + 1; }else{ return mid; } } return -1; } int FastTreeSum(std::vector<int> nums){ int cnt = 0; std::sort(nums.begin(), nums.end()); for(int i = 0; i < nums.size(); i++){ for(int j = i + 1; j < nums.size(); j++){ if(BinarySearch(nums ,-(nums[i] + nums[j])) > j) cnt++; } } return cnt; } int main(int argc, char* argv[]){ std::ifstream infile(argv[1]); std::vector<int> nums; int num; while(infile >> num){ nums.push_back(num); } utils::Stopwatch time; //TreeSum test std::cout << TreeSum(nums) << std::endl; std::cout << time.elapsedTime() << std::endl; utils::TimeTrial tt; double pre = tt.trial(75, TreeSum); for(int N = 125; N <= 25000; N+=N){ double time = tt.trial(N, FastTreeSum); std::cout << N << " " << time << " " <<time/pre << std::endl; pre = time; } std::cout << "test binary search" <<std::endl; std::vector<int> binary_nums; for(int i = 0 ; i < 10; i++){ binary_nums.push_back(i); } std::cout << "result index:" << BinarySearch(binary_nums, 5) << std::endl;; }
[ "410463229@qq.com" ]
410463229@qq.com
d29f6f10d3fcd0b7581ccaabd745b5510b524825
8abd6c3d2a8ae24fbaa33a52e12f116541b1f175
/TestPointCloudUserData/TestPointCloudUserDataApp.h
4bcf1becfc430a1370935091a10d1031afa8baad
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
kamex-kumax/Rhino4Samples_CPP
a5ac780e3a9b3028541b2fe59dcba110deb10335
fbbe856850f0d67e305e070a4b69ce9eadece9d6
refs/heads/master
2020-03-28T19:17:53.064301
2017-03-17T22:10:21
2017-03-17T22:10:21
null
0
0
null
null
null
null
UTF-8
C++
false
false
425
h
///////////////////////////////////////////////////////////////////////////// // TestPointCloudUserDataApp.h #pragma once #ifndef __AFXWIN_H__ #error include 'stdafx.h' before including this file for PCH #endif #include "Resource.h" // main symbols class CTestPointCloudUserDataApp : public CWinApp { public: CTestPointCloudUserDataApp(); // Overrides public: virtual BOOL InitInstance(); DECLARE_MESSAGE_MAP() };
[ "dale@mcneel.com" ]
dale@mcneel.com
035c24d91dd8fbd896416de564f1c5fe8822ff98
8d3327fcfe011b578c2ec4214f7c2c9dcb4b3d96
/singmake/src/main.cpp
dc0092ec92fcfda5f20ef4d274de9e55a9a41f49
[ "BSD-3-Clause" ]
permissive
mdegirolami/sing
d9fbc53f01cd33878725d75c0dabf64f872de3d3
a77e88c51a3f333b7b533dea104a031c0a636070
refs/heads/master
2022-07-28T06:49:28.859601
2022-07-24T10:12:21
2022-07-24T10:12:21
149,013,972
3
1
BSD-3-Clause
2023-02-28T18:29:31
2018-09-16T16:27:30
C++
UTF-8
C++
false
false
221
cpp
#include "singmake.h" int main(int argc, const char *argv[]) { std::vector<std::string> singarg; for (int ii = 0; ii < argc; ++ii) { singarg.push_back(argv[ii]); } return(singmain(singarg)); }
[ "mdegirolami@gmail.com" ]
mdegirolami@gmail.com
d987bf138e1df09cd7ae202df59b88a59de9b68b
b8a7e3e56a2bbedc7887f53f33ee1181df197fc3
/src/Kamera.cpp
89ed56a208de6bb5c4ca146ca2088a8be2ffa3ff
[]
no_license
RetepRelleum/kamera
7811fb23a2a75f41d45c1aa1f6cfeabac7b8d385
a80b783ad5fc38c7268431f08a95e4b7eb277345
refs/heads/main
2023-04-21T02:52:17.991841
2021-05-02T08:04:05
2021-05-02T08:04:05
356,797,007
2
0
null
null
null
null
UTF-8
C++
false
false
5,952
cpp
#include <Kamera.h> #include <Arduino.h> #define DEBUG 1 //#define DEBUG 0 Kamera::Kamera(String ssid, String password) { this->ssid = ssid; this->password = password; } void Kamera::loop() { String deb; String deb2; switch (status) { case init: if (statusInit()) status = ssdpS; break; case ssdpS: ssdp.loop(); if (ssdp.ready()) { status = initKamera; } break; case initKamera: deb = getVersions(); deb2 = getAvailableApiList(); if (DEBUG) { Serial.println(deb); Serial.println(deb2); } status = liveViewS; deb = startLiveview(); if (DEBUG) { Serial.println(deb); } break; case liveViewS: liveView.loop(); break; case takePic: deb = stopLiveview(); if (DEBUG) { Serial.println(deb); } deb = actTakePicture(); if (DEBUG) { Serial.println(deb); } deb = startLiveview(); if (DEBUG) { Serial.println(deb); } status = liveViewS; break; case zoomIn: actZoomIn(); status = liveViewS; break; case zoomOut: actZoomOut(); status = liveViewS; break; case idle: break; } if (liveView.motionDetect()&& motion) { deb = stopLiveview(); if (DEBUG) { Serial.println("Motion detect"); Serial.println(deb); } status = takePic; } } int Kamera::statusInit() { if (!WiFi.SSID().equals(ssid)) { WiFi.disconnect(); } int numSsid; numSsid = WiFi.scanNetworks(); bool ok; ok = false; for (int thisNet = 0; thisNet < numSsid; thisNet++) if (WiFi.SSID(thisNet).equals(ssid)) ok = true; if (!ok) { if (DEBUG) { Serial.print("WIFI Kamera not Found :"); Serial.println(ssid); } return 0; } else { if (DEBUG) { Serial.print("WIFI Kamera Found :"); Serial.println(ssid); } } Serial.println(ssid.c_str()); Serial.println(password.c_str()); WiFi.begin(ssid.c_str(), password.c_str()); delay(2000); if (WiFi.status() != WL_CONNECTED) { if (DEBUG) { Serial.print("WIFI Kamera Login not OK :"); Serial.println(ssid); } return 0; } if (DEBUG) { Serial.print("WIFI Kamera Login OK :"); Serial.println(ssid); } return 1; } String Kamera::httpPost(String jString) { if (DEBUG) { Serial.print("Msg send: "); Serial.println(jString); Serial.print("connecting to "); Serial.println(ssdp.getActionListHost()); } if (!client.connect(ssdp.getActionListHost(), ssdp.getActionListPort())) { if (DEBUG) { Serial.println("connection failed"); status = init; } return ""; } else { if (DEBUG) { Serial.print("connected to "); Serial.print(ssdp.getActionListHost()); Serial.print(":"); Serial.println(ssdp.getActionListPort()); } } String url = "/"; // We now create a URI for the request if (!ssdp.getActionListPath().equals("")) { url += ssdp.getActionListPath(); url += "/"; } url += ssdp.getServiceType(); if (DEBUG) { Serial.print("Requesting URL: "); Serial.println(url); } // This will send the request to the server client.print(String("POST " + url + " HTTP/1.1\r\n" + "Host: " + ssdp.getActionListHost().toString() + "\r\n")); client.println("Content-Type: application/json"); client.print("Content-Length: "); client.println(jString.length()); // End of headers client.println(); // Request body client.println(jString); if (DEBUG) { Serial.println("wait for data"); } lastmillis = millis(); while (!client.available() && millis() - lastmillis < 8000) { } // wait 8s max for answer // Read all the lines of the reply from server and print them to Serial String res; while (client.available()) { String line = client.readStringUntil('\r'); if (DEBUG) { Serial.print(line); } res = line.substring(line.indexOf("\"result\":") + 9, line.length() - 1); } if (DEBUG) { Serial.println(); Serial.println("----closing connection----"); Serial.println(); } client.stop(); return res; } String Kamera::getVersions() { String son = json; son.replace("METHODE", "getVersions"); String ret = httpPost(son); ret.replace("[[\"", ""); ret.replace("\"]]", ""); return ret; } String Kamera::getAvailableApiList() { String son = json; son.replace("METHODE", "getAvailableApiList"); String ret = httpPost(son); ret.replace("[[\"", ""); ret.replace("\"]]", ""); ret.replace("\",\"", "\r\n"); return ret; } String Kamera::startLiveview() { String son = json; son.replace("METHODE", "startLiveview"); String ret = httpPost(son); ret.replace("[\"", ""); ret.replace("\"]", ""); liveViewUrl = ret; String sp = ret; liveView.connect(liveViewUrl); return ret; } String Kamera::actTakePicture() { String son = json; son.replace("METHODE", "actTakePicture"); String ret = httpPost(son); return ret; } String Kamera::stopLiveview() { liveView.disconnect(); String son = json; son.replace("METHODE", "stopLiveview"); String ret = httpPost(son); return ret; } String Kamera::actZoomIn() { String son = json; son.replace("METHODE", "actZoom"); son.replace("[]", "[\"in\",\"1shot\"]"); String ret = httpPost(son); return ret; } String Kamera::actZoomOut() { String son = json; son.replace("METHODE", "actZoom"); son.replace("[]", "[\"out\",\"1shot\"]"); String ret = httpPost(son); return ret; } uint8_t *Kamera::getJpeg() { return liveView.getJpeg(); } uint32_t Kamera::getJpegSize() { return liveView.getJpegSize(); } void Kamera::click() { status = takePic; } void Kamera::actZoomOutS() { status = zoomOut; } void Kamera::actZoomInS() { status = zoomIn; } void Kamera::motionDeOf() { motion = false; } void Kamera::motionDeOn() { motion = true; }
[ "retep.relleum@bluewin.ch" ]
retep.relleum@bluewin.ch
7c79d3306acef996706ec1fa56f554d2fadd3bb6
4bea57e631734f8cb1c230f521fd523a63c1ff23
/projects/openfoam/rarefied-flows/impingment/sims/test/nozzle1/2.98/U
53f61ee7534f280cd52d44b03090a573800cc11f
[]
no_license
andytorrestb/cfal
76217f77dd43474f6b0a7eb430887e8775b78d7f
730fb66a3070ccb3e0c52c03417e3b09140f3605
refs/heads/master
2023-07-04T01:22:01.990628
2021-08-01T15:36:17
2021-08-01T15:36:17
294,183,829
1
0
null
null
null
null
UTF-8
C++
false
false
45,218
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v1912 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volVectorField; location "2.98"; object U; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 1 -1 0 0 0 0]; internalField nonuniform List<vector> 1900 ( (-0.448287 -2.06716e-06 0) (-0.0717095 -2.63718e-06 0) (-0.0762323 -3.74194e-06 0) (-0.0804652 7.77073e-06 0) (-0.0846849 0.000117301 0) (-0.0895622 0.000376246 0) (-0.0949142 0.000578611 0) (-0.100138 -0.000912524 0) (-0.104061 -0.00519823 0) (-0.093494 -0.0184705 0) (-0.448292 -3.21788e-06 0) (-0.0717155 -3.0809e-06 0) (-0.0762413 -2.24154e-06 0) (-0.0804726 1.55298e-05 0) (-0.0846194 0.000113203 0) (-0.0891934 0.000375449 0) (-0.0937927 0.000623631 0) (-0.0984253 -0.000239491 0) (-0.104593 -0.00299258 0) (-0.108916 -0.0151032 0) (-0.448293 -1.79374e-14 0) (-0.071717 -1.57805e-14 0) (-0.0762428 -3.13648e-14 0) (-0.0804557 1.65951e-14 0) (-0.0845343 2.85562e-14 0) (-0.0889408 1.006e-14 0) (-0.0933418 -2.65417e-14 0) (-0.0980195 -7.98095e-15 0) (-0.104579 -4.48705e-14 0) (-0.116912 -2.24308e-14 0) (-0.448292 3.21788e-06 0) (-0.0717155 3.0809e-06 0) (-0.0762413 2.24154e-06 0) (-0.0804726 -1.55298e-05 0) (-0.0846194 -0.000113203 0) (-0.0891934 -0.000375449 0) (-0.0937927 -0.000623631 0) (-0.0984253 0.000239491 0) (-0.104593 0.00299258 0) (-0.108916 0.0151032 0) (-0.448287 2.06716e-06 0) (-0.0717095 2.63718e-06 0) (-0.0762323 3.74194e-06 0) (-0.0804652 -7.77073e-06 0) (-0.0846849 -0.000117301 0) (-0.0895622 -0.000376246 0) (-0.0949142 -0.000578611 0) (-0.100138 0.000912524 0) (-0.104061 0.00519823 0) (-0.093494 0.0184705 0) (-0.0971842 -0.0491719 0) (-0.126203 -0.0638622 0) (-0.150893 -0.0880372 0) (-0.197534 -0.112515 0) (-0.390585 -0.0820595 0) (-0.127823 -0.0342264 0) (-0.158475 -0.043973 0) (-0.199634 -0.0652633 0) (-0.286509 -0.0859416 0) (-0.459702 -0.0762856 0) (-0.138628 -2.46501e-14 0) (-0.169443 -1.21899e-14 0) (-0.221047 3.13379e-14 0) (-0.317608 -4.67212e-15 0) (-0.48116 1.60834e-14 0) (-0.127823 0.0342264 0) (-0.158475 0.043973 0) (-0.199634 0.0652633 0) (-0.286509 0.0859416 0) (-0.459702 0.0762856 0) (-0.0971842 0.0491719 0) (-0.126203 0.0638622 0) (-0.150893 0.0880372 0) (-0.197534 0.112515 0) (-0.390585 0.0820595 0) (-0.441361 0.0273348 0) (-0.346277 0.029982 0) (-0.291431 0.0299195 0) (-0.260681 0.0439208 0) (-0.305449 0.0891209 0) (-0.458829 0.020131 0) (-0.358121 0.0182419 0) (-0.289103 0.0164295 0) (-0.217912 0.0364777 0) (-0.152315 0.102269 0) (-0.468199 1.79554e-14 0) (-0.359073 6.9888e-14 0) (-0.280274 1.28907e-13 0) (-0.190623 1.40309e-13 0) (-0.0609492 1.66321e-13 0) (-0.458829 -0.020131 0) (-0.358121 -0.0182419 0) (-0.289103 -0.0164295 0) (-0.217912 -0.0364777 0) (-0.152315 -0.102269 0) (-0.441361 -0.0273348 0) (-0.346277 -0.029982 0) (-0.291431 -0.0299195 0) (-0.260681 -0.0439208 0) (-0.305449 -0.0891209 0) (-0.514851 0.0836287 0) (-0.0776519 -0.158088 0) (-0.135718 -0.200875 0) (-0.276219 -0.122532 0) (-0.343563 -0.0572992 0) (-0.386409 -0.0411623 0) (-0.396114 -0.0372552 0) (-0.395714 -0.0350884 0) (-0.386141 -0.0333461 0) (-0.37234 -0.0334426 0) (-0.354347 -0.0331771 0) (-0.333353 -0.0330854 0) (-0.309758 -0.0330519 0) (-0.283389 -0.0330661 0) (-0.253462 -0.0331311 0) (-0.218738 -0.0332191 0) (-0.178206 -0.0332954 0) (-0.131467 -0.0333587 0) (-0.0804725 -0.0332855 0) (-0.0244505 -0.0335292 0) (0.0299638 -0.0334795 0) (0.0863666 -0.0332286 0) (0.137868 -0.0332578 0) (0.1856 -0.0331462 0) (0.227865 -0.0330082 0) (0.265431 -0.0328357 0) (0.299695 -0.0326468 0) (0.332265 -0.0324513 0) (0.364186 -0.032251 0) (0.395753 -0.0320455 0) (0.426716 -0.0318372 0) (0.456707 -0.0316295 0) (0.485609 -0.0314468 0) (0.513712 -0.0312264 0) (0.540894 -0.0311638 0) (0.565663 -0.0304262 0) (0.585514 -0.031132 0) (0.598078 -0.0295977 0) (0.645603 -0.0289068 0) (1.25981 -0.025185 0) (0.0291376 0.109468 0) (0.233844 -0.111009 0) (0.0229367 -0.137925 0) (-0.237388 -0.0698601 0) (-0.344071 -0.028845 0) (-0.387578 -0.0204243 0) (-0.397229 -0.0186097 0) (-0.39699 -0.0175463 0) (-0.387343 -0.0166458 0) (-0.373423 -0.0167254 0) (-0.355398 -0.0165852 0) (-0.334323 -0.0165345 0) (-0.310653 -0.0165153 0) (-0.284203 -0.0165188 0) (-0.254177 -0.0165472 0) (-0.219337 -0.0165873 0) (-0.178676 -0.0166224 0) (-0.131803 -0.0166524 0) (-0.0806698 -0.0166149 0) (-0.0245112 -0.0167374 0) (0.030039 -0.0167126 0) (0.0865799 -0.0165867 0) (0.138218 -0.0166027 0) (0.186082 -0.0165489 0) (0.228472 -0.0164832 0) (0.266156 -0.0164012 0) (0.300528 -0.0163118 0) (0.333199 -0.0162195 0) (0.365215 -0.0161251 0) (0.39687 -0.0160284 0) (0.427918 -0.0159308 0) (0.457986 -0.0158343 0) (0.486954 -0.0157502 0) (0.515117 -0.0156521 0) (0.542326 -0.0156258 0) (0.567226 -0.0152747 0) (0.586901 -0.0156402 0) (0.599436 -0.0148666 0) (0.64608 -0.0146033 0) (1.25686 -0.0119509 0) (0.201751 -5.42739e-16 0) (0.334241 -7.68132e-14 0) (0.0955112 -6.56105e-14 0) (-0.219879 6.8232e-14 0) (-0.345887 1.24022e-13 0) (-0.389631 2.07047e-15 0) (-0.398965 -4.14555e-13 0) (-0.398669 -6.74699e-13 0) (-0.388834 -1.28319e-12 0) (-0.374814 -1.31458e-12 0) (-0.356666 -1.92472e-13 0) (-0.335442 2.2294e-12 0) (-0.311629 4.96803e-12 0) (-0.285043 5.80462e-12 0) (-0.254882 8.44857e-13 0) (-0.219906 -1.08658e-11 0) (-0.179108 -5.70092e-12 0) (-0.132102 1.13873e-11 0) (-0.0808407 -2.41494e-11 0) (-0.0245619 -2.69406e-11 0) (0.0301041 2.82996e-11 0) (0.0867657 4.04443e-11 0) (0.138532 -2.66289e-11 0) (0.186531 -1.48123e-11 0) (0.229062 4.55087e-11 0) (0.266892 3.6086e-11 0) (0.301412 4.36558e-12 0) (0.334234 -5.29955e-12 0) (0.366403 1.183e-12 0) (0.398217 8.69087e-12 0) (0.429428 4.04224e-13 0) (0.459663 -3.69326e-12 0) (0.488801 -2.73606e-11 0) (0.517135 -4.57635e-11 0) (0.544507 -8.23093e-11 0) (0.569611 -5.68568e-11 0) (0.589417 -1.92194e-11 0) (0.602022 -5.60875e-11 0) (0.647996 2.3662e-11 0) (1.25871 1.19751e-10 0) (0.0291376 -0.109468 0) (0.233844 0.111009 0) (0.0229367 0.137925 0) (-0.237388 0.0698601 0) (-0.344071 0.028845 0) (-0.387578 0.0204243 0) (-0.397229 0.0186097 0) (-0.39699 0.0175463 0) (-0.387343 0.0166458 0) (-0.373423 0.0167254 0) (-0.355398 0.0165852 0) (-0.334323 0.0165345 0) (-0.310653 0.0165153 0) (-0.284203 0.0165188 0) (-0.254177 0.0165472 0) (-0.219337 0.0165873 0) (-0.178676 0.0166224 0) (-0.131803 0.0166524 0) (-0.0806698 0.0166149 0) (-0.0245112 0.0167374 0) (0.030039 0.0167126 0) (0.0865799 0.0165867 0) (0.138218 0.0166027 0) (0.186082 0.0165489 0) (0.228472 0.0164832 0) (0.266156 0.0164012 0) (0.300528 0.0163118 0) (0.333199 0.0162195 0) (0.365215 0.0161251 0) (0.39687 0.0160284 0) (0.427918 0.0159308 0) (0.457986 0.0158343 0) (0.486954 0.0157502 0) (0.515117 0.0156521 0) (0.542326 0.0156258 0) (0.567226 0.0152747 0) (0.586901 0.0156402 0) (0.599436 0.0148666 0) (0.64608 0.0146033 0) (1.25686 0.0119509 0) (-0.514851 -0.0836287 0) (-0.0776519 0.158088 0) (-0.135718 0.200875 0) (-0.276219 0.122532 0) (-0.343563 0.0572992 0) (-0.386409 0.0411623 0) (-0.396114 0.0372552 0) (-0.395714 0.0350884 0) (-0.386141 0.0333461 0) (-0.37234 0.0334426 0) (-0.354347 0.0331771 0) (-0.333353 0.0330854 0) (-0.309758 0.0330519 0) (-0.283389 0.0330661 0) (-0.253462 0.0331311 0) (-0.218738 0.0332191 0) (-0.178206 0.0332954 0) (-0.131467 0.0333587 0) (-0.0804725 0.0332855 0) (-0.0244505 0.0335292 0) (0.0299638 0.0334795 0) (0.0863666 0.0332286 0) (0.137868 0.0332578 0) (0.1856 0.0331462 0) (0.227865 0.0330082 0) (0.265431 0.0328357 0) (0.299695 0.0326468 0) (0.332265 0.0324513 0) (0.364186 0.032251 0) (0.395753 0.0320455 0) (0.426716 0.0318372 0) (0.456707 0.0316295 0) (0.485609 0.0314468 0) (0.513712 0.0312264 0) (0.540894 0.0311638 0) (0.565663 0.0304262 0) (0.585514 0.031132 0) (0.598078 0.0295977 0) (0.645603 0.0289068 0) (1.25981 0.025185 0) (-1.11138 -0.139563 0) (-0.418201 0.177703 0) (-0.326706 0.253961 0) (-0.3395 0.181269 0) (-0.366069 0.108866 0) (-0.395607 0.0838327 0) (-0.401601 0.076183 0) (-0.399675 0.0719188 0) (-0.389363 0.0690014 0) (-0.375154 0.0688431 0) (-0.356805 0.0683347 0) (-0.335563 0.0681617 0) (-0.311696 0.0681086 0) (-0.285067 0.0681604 0) (-0.254899 0.068309 0) (-0.219942 0.0684958 0) (-0.179169 0.0686527 0) (-0.132171 0.0687802 0) (-0.0809067 0.0686282 0) (-0.0245957 0.0691338 0) (0.0300889 0.0690322 0) (0.0867677 0.0685111 0) (0.138526 0.0685681 0) (0.186506 0.0683358 0) (0.229005 0.068047 0) (0.266798 0.0676844 0) (0.301291 0.0672857 0) (0.334101 0.0668704 0) (0.366272 0.0664424 0) (0.398093 0.0660005 0) (0.429312 0.0655504 0) (0.459559 0.0650898 0) (0.48871 0.0646856 0) (0.517017 0.064132 0) (0.544418 0.0639874 0) (0.569013 0.0623689 0) (0.589473 0.0634432 0) (0.602224 0.0607098 0) (0.650449 0.0589634 0) (1.25765 0.0533974 0) (-1.2371 -0.0560675 0) (-0.595417 0.241578 0) (-0.47016 0.296228 0) (-0.409231 0.233982 0) (-0.406739 0.170166 0) (-0.410082 0.14316 0) (-0.410281 0.13186 0) (-0.401568 0.125556 0) (-0.390256 0.121777 0) (-0.375122 0.120977 0) (-0.356472 0.120209 0) (-0.335085 0.119964 0) (-0.311093 0.119948 0) (-0.284394 0.120125 0) (-0.254242 0.120455 0) (-0.219374 0.120833 0) (-0.178732 0.121142 0) (-0.131879 0.121389 0) (-0.0807623 0.121132 0) (-0.0245697 0.122057 0) (0.0299476 0.121877 0) (0.0864796 0.120926 0) (0.138054 0.121008 0) (0.185829 0.12057 0) (0.228105 0.120021 0) (0.265677 0.119329 0) (0.299969 0.118565 0) (0.332611 0.117764 0) (0.364636 0.116931 0) (0.39632 0.116065 0) (0.427399 0.115178 0) (0.457495 0.114247 0) (0.48654 0.113432 0) (0.514564 0.112201 0) (0.542015 0.111906 0) (0.565729 0.108692 0) (0.586712 0.110211 0) (0.599264 0.105973 0) (0.651139 0.101442 0) (1.25053 0.0891109 0) (-1.24301 0.0066909 0) (-0.637922 0.247144 0) (-0.522897 0.304219 0) (-0.456794 0.254709 0) (-0.43529 0.214696 0) (-0.424716 0.192659 0) (-0.416764 0.180337 0) (-0.405138 0.173363 0) (-0.391697 0.17016 0) (-0.375598 0.168452 0) (-0.356523 0.167605 0) (-0.334865 0.167361 0) (-0.310651 0.16749 0) (-0.28381 0.167904 0) (-0.253627 0.168517 0) (-0.218831 0.169177 0) (-0.178324 0.169716 0) (-0.131621 0.170139 0) (-0.0806539 0.169827 0) (-0.0245605 0.171189 0) (0.0298058 0.170933 0) (0.0862205 0.169529 0) (0.137639 0.16959 0) (0.185238 0.168902 0) (0.227328 0.16803 0) (0.264722 0.166937 0) (0.298878 0.165724 0) (0.331431 0.164436 0) (0.363423 0.163093 0) (0.395067 0.161676 0) (0.426123 0.160228 0) (0.456168 0.15867 0) (0.485238 0.15733 0) (0.512931 0.155133 0) (0.540631 0.1545 0) (0.563481 0.149731 0) (0.58487 0.151122 0) (0.597217 0.146424 0) (0.653305 0.1397 0) (1.24296 0.126491 0) (-1.23785 0.0777293 0) (-0.652396 0.261006 0) (-0.546228 0.313929 0) (-0.483428 0.275341 0) (-0.455883 0.250491 0) (-0.438631 0.233142 0) (-0.424074 0.222217 0) (-0.409595 0.215312 0) (-0.393999 0.212281 0) (-0.376619 0.210098 0) (-0.356835 0.209215 0) (-0.334597 0.208995 0) (-0.309979 0.209333 0) (-0.282866 0.210033 0) (-0.25263 0.210992 0) (-0.217946 0.211989 0) (-0.177655 0.212811 0) (-0.1312 0.213448 0) (-0.0804751 0.213111 0) (-0.0245625 0.214919 0) (0.0295638 0.21458 0) (0.0857736 0.212695 0) (0.136943 0.212689 0) (0.184261 0.211711 0) (0.226061 0.210468 0) (0.263192 0.208927 0) (0.29713 0.207198 0) (0.32958 0.205381 0) (0.361463 0.203421 0) (0.393092 0.201409 0) (0.424101 0.199306 0) (0.45404 0.197005 0) (0.483224 0.195138 0) (0.510453 0.191808 0) (0.538422 0.190751 0) (0.560616 0.184677 0) (0.582512 0.18587 0) (0.594914 0.18179 0) (0.655365 0.171797 0) (1.23308 0.161575 0) (-1.22514 0.136757 0) (-0.657443 0.280125 0) (-0.559082 0.324873 0) (-0.503729 0.293419 0) (-0.471797 0.281638 0) (-0.449922 0.267215 0) (-0.43104 0.258349 0) (-0.413996 0.251884 0) (-0.396602 0.248951 0) (-0.377952 0.246505 0) (-0.357276 0.245536 0) (-0.334336 0.245386 0) (-0.309108 0.245852 0) (-0.281696 0.246851 0) (-0.251359 0.2481 0) (-0.21683 0.249422 0) (-0.176812 0.25051 0) (-0.130676 0.251354 0) (-0.0802564 0.250991 0) (-0.0245801 0.253239 0) (0.0292537 0.252823 0) (0.0852015 0.250445 0) (0.136061 0.250364 0) (0.183031 0.249103 0) (0.224484 0.247512 0) (0.261284 0.245536 0) (0.295035 0.243386 0) (0.327281 0.241007 0) (0.359233 0.238659 0) (0.390705 0.235979 0) (0.421818 0.233489 0) (0.451686 0.2306 0) (0.480977 0.228377 0) (0.507726 0.224195 0) (0.535879 0.222963 0) (0.557784 0.216332 0) (0.580052 0.217205 0) (0.593455 0.215023 0) (0.656903 0.20105 0) (1.22251 0.2006 0) (-1.2266 0.195292 0) (-0.658227 0.298883 0) (-0.56632 0.338171 0) (-0.517754 0.313135 0) (-0.484374 0.30945 0) (-0.45848 0.297348 0) (-0.437188 0.290929 0) (-0.418225 0.28488 0) (-0.399405 0.282044 0) (-0.379587 0.279463 0) (-0.357974 0.278468 0) (-0.334025 0.278148 0) (-0.308288 0.278868 0) (-0.280356 0.279909 0) (-0.249975 0.281409 0) (-0.215578 0.28291 0) (-0.175875 0.284186 0) (-0.130099 0.285172 0) (-0.0800286 0.284747 0) (-0.0246245 0.287417 0) (0.0288797 0.286937 0) (0.0845313 0.284077 0) (0.135043 0.283961 0) (0.181624 0.282488 0) (0.222678 0.280626 0) (0.259178 0.278401 0) (0.292602 0.27585 0) (0.324946 0.273376 0) (0.356558 0.270404 0) (0.388379 0.267837 0) (0.419318 0.264851 0) (0.449081 0.261658 0) (0.478665 0.259598 0) (0.504792 0.254779 0) (0.532929 0.253542 0) (0.554788 0.246976 0) (0.577505 0.247502 0) (0.593103 0.246855 0) (0.657032 0.230816 0) (1.20966 0.235474 0) (-1.21274 0.246025 0) (-0.657067 0.320323 0) (-0.570654 0.356151 0) (-0.52684 0.336631 0) (-0.493716 0.33625 0) (-0.46517 0.326177 0) (-0.442674 0.322074 0) (-0.42225 0.316146 0) (-0.402383 0.313565 0) (-0.381428 0.310978 0) (-0.358541 0.309618 0) (-0.334052 0.30975 0) (-0.307219 0.310101 0) (-0.279128 0.311482 0) (-0.248487 0.312908 0) (-0.21431 0.314549 0) (-0.174917 0.315873 0) (-0.129526 0.316927 0) (-0.0798234 0.316382 0) (-0.0246967 0.319455 0) (0.0284649 0.318936 0) (0.0838193 0.315623 0) (0.133973 0.315553 0) (0.180139 0.313961 0) (0.220802 0.312008 0) (0.256859 0.309565 0) (0.290274 0.307118 0) (0.322075 0.30409 0) (0.354368 0.30176 0) (0.385364 0.298201 0) (0.417011 0.295975 0) (0.44646 0.292408 0) (0.47607 0.290383 0) (0.501782 0.285408 0) (0.530057 0.284496 0) (0.552061 0.278248 0) (0.575767 0.278751 0) (0.593033 0.278374 0) (0.656421 0.262613 0) (1.19712 0.27771 0) (-1.19295 0.288499 0) (-0.654527 0.342112 0) (-0.572448 0.375754 0) (-0.531965 0.361683 0) (-0.499691 0.362393 0) (-0.469764 0.353966 0) (-0.447091 0.352109 0) (-0.425647 0.346338 0) (-0.405019 0.344207 0) (-0.382901 0.341481 0) (-0.359595 0.340979 0) (-0.333339 0.340237 0) (-0.306581 0.341464 0) (-0.277535 0.34237 0) (-0.247059 0.344077 0) (-0.212956 0.345619 0) (-0.173949 0.346986 0) (-0.128957 0.34804 0) (-0.0796371 0.347341 0) (-0.0247855 0.350809 0) (0.02802 0.350281 0) (0.0830844 0.346538 0) (0.132866 0.346579 0) (0.178608 0.344966 0) (0.21878 0.342932 0) (0.254605 0.340613 0) (0.287386 0.33777 0) (0.319877 0.335488 0) (0.350882 0.33188 0) (0.383356 0.329885 0) (0.41388 0.326379 0) (0.443481 0.323056 0) (0.473512 0.321508 0) (0.498304 0.315871 0) (0.526594 0.315006 0) (0.548773 0.309014 0) (0.57392 0.309671 0) (0.59195 0.308578 0) (0.654157 0.292634 0) (1.18149 0.310728 0) (-1.17989 0.343618 0) (-0.653326 0.370488 0) (-0.57357 0.400429 0) (-0.536429 0.39051 0) (-0.504744 0.390804 0) (-0.474335 0.383247 0) (-0.451717 0.382665 0) (-0.429142 0.376422 0) (-0.407868 0.374722 0) (-0.385072 0.3728 0) (-0.359514 0.370913 0) (-0.333746 0.371873 0) (-0.305026 0.371907 0) (-0.276336 0.373598 0) (-0.245342 0.374936 0) (-0.211598 0.376627 0) (-0.172931 0.377938 0) (-0.128379 0.379007 0) (-0.0794539 0.378146 0) (-0.0248758 0.382024 0) (0.0275541 0.381512 0) (0.0823338 0.377341 0) (0.131734 0.377529 0) (0.177007 0.375892 0) (0.216761 0.373921 0) (0.251973 0.371403 0) (0.285089 0.369078 0) (0.316375 0.365761 0) (0.349266 0.363977 0) (0.379442 0.359633 0) (0.412212 0.358509 0) (0.44064 0.354056 0) (0.470992 0.35286 0) (0.495684 0.347547 0) (0.524301 0.347021 0) (0.546809 0.34135 0) (0.573404 0.342282 0) (0.592417 0.341135 0) (0.653561 0.326405 0) (1.16586 0.356179 0) (-1.16234 0.384055 0) (-0.649353 0.393618 0) (-0.571945 0.421168 0) (-0.5381 0.416236 0) (-0.506537 0.415728 0) (-0.476223 0.409265 0) (-0.454005 0.409835 0) (-0.430868 0.404191 0) (-0.40982 0.403996 0) (-0.385108 0.401184 0) (-0.360511 0.401846 0) (-0.332176 0.401206 0) (-0.304266 0.40279 0) (-0.274382 0.403836 0) (-0.243738 0.405574 0) (-0.210078 0.407152 0) (-0.171878 0.408522 0) (-0.12778 0.409604 0) (-0.0792604 0.408606 0) (-0.0249536 0.412915 0) (0.0270789 0.412442 0) (0.0815787 0.407834 0) (0.13058 0.408167 0) (0.175375 0.406527 0) (0.214554 0.404484 0) (0.249549 0.402126 0) (0.281864 0.39931 0) (0.314197 0.396955 0) (0.345072 0.393312 0) (0.377671 0.391298 0) (0.408009 0.387634 0) (0.437307 0.384022 0) (0.467555 0.382652 0) (0.491251 0.376554 0) (0.519994 0.375896 0) (0.542611 0.370254 0) (0.570589 0.371017 0) (0.589651 0.368684 0) (0.649674 0.353918 0) (1.14774 0.386518 0) (-1.14562 0.43848 0) (-0.648283 0.424846 0) (-0.572889 0.448437 0) (-0.542724 0.447024 0) (-0.509381 0.444436 0) (-0.480372 0.439163 0) (-0.458406 0.439876 0) (-0.434491 0.434063 0) (-0.41253 0.433678 0) (-0.387608 0.432109 0) (-0.360526 0.431105 0) (-0.332508 0.431723 0) (-0.302963 0.43245 0) (-0.273059 0.433818 0) (-0.242038 0.435341 0) (-0.208626 0.436923 0) (-0.170815 0.438279 0) (-0.127174 0.439386 0) (-0.079051 0.438273 0) (-0.0250084 0.44303 0) (0.0266093 0.442614 0) (0.0808365 0.437566 0) (0.129436 0.438047 0) (0.173735 0.436399 0) (0.212437 0.434382 0) (0.246975 0.432005 0) (0.279489 0.429505 0) (0.311182 0.426704 0) (0.343641 0.424434 0) (0.374319 0.420678 0) (0.407423 0.419684 0) (0.43492 0.414542 0) (0.46621 0.414369 0) (0.48994 0.40882 0) (0.518997 0.408298 0) (0.541955 0.402962 0) (0.571554 0.404416 0) (0.591331 0.402323 0) (0.650007 0.389072 0) (1.12835 0.433868 0) (-1.12659 0.473738 0) (-0.644158 0.447437 0) (-0.571558 0.468931 0) (-0.543512 0.469293 0) (-0.509098 0.464991 0) (-0.481163 0.462422 0) (-0.458985 0.462925 0) (-0.434229 0.457456 0) (-0.412603 0.458937 0) (-0.385974 0.45693 0) (-0.359184 0.457896 0) (-0.330443 0.458746 0) (-0.300718 0.460077 0) (-0.270808 0.461883 0) (-0.239856 0.4636 0) (-0.206867 0.465395 0) (-0.169592 0.466857 0) (-0.126496 0.468061 0) (-0.0787959 0.466871 0) (-0.0250242 0.472081 0) (0.0261542 0.471736 0) (0.0801002 0.466257 0) (0.128253 0.466871 0) (0.171955 0.465155 0) (0.210021 0.463056 0) (0.24397 0.460482 0) (0.276187 0.457841 0) (0.307524 0.45468 0) (0.33969 0.451985 0) (0.370297 0.448185 0) (0.402456 0.4459 0) (0.430188 0.441059 0) (0.460877 0.439943 0) (0.484258 0.433971 0) (0.513726 0.433426 0) (0.536672 0.427946 0) (0.567361 0.429064 0) (0.587369 0.4262 0) (0.645098 0.413494 0) (1.10826 0.461481 0) (-1.10448 0.525423 0) (-0.642586 0.478459 0) (-0.572557 0.496101 0) (-0.546172 0.497108 0) (-0.511321 0.491558 0) (-0.485301 0.490801 0) (-0.462244 0.490374 0) (-0.43762 0.485646 0) (-0.415576 0.487078 0) (-0.387918 0.485299 0) (-0.360759 0.486581 0) (-0.330611 0.487028 0) (-0.300598 0.488547 0) (-0.26988 0.490041 0) (-0.238749 0.491692 0) (-0.205711 0.493278 0) (-0.168716 0.494625 0) (-0.125976 0.495784 0) (-0.0785822 0.494494 0) (-0.0250204 0.500133 0) (0.0257512 0.499867 0) (0.0794732 0.493993 0) (0.127276 0.49479 0) (0.170555 0.493165 0) (0.208229 0.491216 0) (0.242087 0.488893 0) (0.274267 0.486359 0) (0.306117 0.483591 0) (0.338264 0.480927 0) (0.369433 0.477549 0) (0.402016 0.47566 0) (0.429334 0.470566 0) (0.460856 0.470231 0) (0.483995 0.464518 0) (0.514086 0.464501 0) (0.537339 0.459674 0) (0.569173 0.461255 0) (0.589439 0.458669 0) (0.645453 0.44804 0) (1.08454 0.508802 0) (-1.08318 0.554777 0) (-0.638586 0.500353 0) (-0.571915 0.516346 0) (-0.546884 0.517363 0) (-0.512036 0.510944 0) (-0.487016 0.511731 0) (-0.462684 0.510325 0) (-0.437255 0.506276 0) (-0.414415 0.50824 0) (-0.385396 0.506662 0) (-0.357708 0.508944 0) (-0.326759 0.509842 0) (-0.296658 0.512228 0) (-0.265808 0.514296 0) (-0.235021 0.516674 0) (-0.202634 0.518886 0) (-0.166609 0.520859 0) (-0.12479 0.522476 0) (-0.0780552 0.52138 0) (-0.0248986 0.527494 0) (0.0253168 0.527307 0) (0.0786159 0.520998 0) (0.125695 0.521695 0) (0.167963 0.519672 0) (0.204545 0.517168 0) (0.237565 0.514268 0) (0.269245 0.511144 0) (0.300734 0.507756 0) (0.332879 0.504709 0) (0.363571 0.500505 0) (0.396689 0.498675 0) (0.423497 0.492965 0) (0.455534 0.492619 0) (0.478573 0.486807 0) (0.509388 0.486896 0) (0.532829 0.482163 0) (0.565741 0.483762 0) (0.586225 0.480902 0) (0.640923 0.470967 0) (1.06277 0.532587 0) (-1.05497 0.605165 0) (-0.635785 0.532063 0) (-0.572483 0.543553 0) (-0.548692 0.544415 0) (-0.514555 0.537678 0) (-0.49074 0.538827 0) (-0.46448 0.536019 0) (-0.439572 0.533027 0) (-0.416001 0.534663 0) (-0.386195 0.532968 0) (-0.35855 0.53556 0) (-0.327006 0.536365 0) (-0.296679 0.538859 0) (-0.265525 0.540966 0) (-0.234594 0.543423 0) (-0.202239 0.545526 0) (-0.166406 0.547272 0) (-0.124782 0.548648 0) (-0.078094 0.547285 0) (-0.0249336 0.553706 0) (0.0251261 0.553594 0) (0.0784085 0.547021 0) (0.125379 0.54809 0) (0.167375 0.546379 0) (0.203694 0.544197 0) (0.236546 0.541469 0) (0.268359 0.538439 0) (0.299761 0.53501 0) (0.332373 0.53232 0) (0.362685 0.528149 0) (0.396176 0.526842 0) (0.422799 0.521507 0) (0.455258 0.521734 0) (0.478447 0.516643 0) (0.510135 0.517558 0) (0.533899 0.513778 0) (0.567292 0.515552 0) (0.58765 0.512822 0) (0.640234 0.505407 0) (1.03425 0.57928 0) (-1.03211 0.62766 0) (-0.631942 0.553841 0) (-0.572493 0.56528 0) (-0.550322 0.565907 0) (-0.516831 0.559003 0) (-0.493492 0.56017 0) (-0.464743 0.555782 0) (-0.439619 0.554397 0) (-0.414401 0.555495 0) (-0.383618 0.553951 0) (-0.355595 0.556626 0) (-0.323207 0.557155 0) (-0.29229 0.559447 0) (-0.260484 0.561306 0) (-0.229042 0.56359 0) (-0.196831 0.565899 0) (-0.161765 0.568176 0) (-0.121366 0.570325 0) (-0.0760759 0.569784 0) (-0.0242863 0.57698 0) (0.0243311 0.576926 0) (0.076215 0.569615 0) (0.121693 0.569947 0) (0.162328 0.567522 0) (0.197708 0.564884 0) (0.2302 0.562006 0) (0.262365 0.559288 0) (0.294034 0.556113 0) (0.327164 0.553975 0) (0.357428 0.549975 0) (0.391184 0.549047 0) (0.417658 0.543816 0) (0.450659 0.544353 0) (0.473937 0.539451 0) (0.506652 0.540749 0) (0.530623 0.537181 0) (0.564765 0.538926 0) (0.584769 0.535811 0) (0.635632 0.527763 0) (1.01124 0.598061 0) (-0.996926 0.673407 0) (-0.625846 0.580953 0) (-0.571599 0.590167 0) (-0.551719 0.592107 0) (-0.519687 0.58593 0) (-0.497004 0.586537 0) (-0.467098 0.581666 0) (-0.443803 0.581795 0) (-0.415359 0.580756 0) (-0.386478 0.579841 0) (-0.356615 0.580707 0) (-0.324434 0.579986 0) (-0.293088 0.580998 0) (-0.261056 0.581823 0) (-0.230177 0.583951 0) (-0.198117 0.585897 0) (-0.163242 0.587738 0) (-0.123061 0.589558 0) (-0.077439 0.588518 0) (-0.0248299 0.595516 0) (0.0247916 0.595505 0) (0.0774787 0.588432 0) (0.123242 0.589358 0) (0.163603 0.587352 0) (0.198743 0.585266 0) (0.23099 0.582855 0) (0.26251 0.580461 0) (0.294266 0.578439 0) (0.327631 0.577783 0) (0.358064 0.575443 0) (0.392475 0.576184 0) (0.418651 0.572143 0) (0.452248 0.574008 0) (0.475491 0.570209 0) (0.50842 0.572018 0) (0.532328 0.569227 0) (0.56611 0.570641 0) (0.584736 0.565985 0) (0.632488 0.557158 0) (0.977771 0.64037 0) (-0.959559 0.666547 0) (-0.61466 0.587063 0) (-0.56537 0.602342 0) (-0.55024 0.607769 0) (-0.520267 0.602933 0) (-0.498224 0.60357 0) (-0.467026 0.598325 0) (-0.444831 0.599144 0) (-0.413592 0.596525 0) (-0.386936 0.597139 0) (-0.3553 0.596296 0) (-0.32493 0.596347 0) (-0.293297 0.596057 0) (-0.261548 0.59589 0) (-0.228463 0.59604 0) (-0.194482 0.597529 0) (-0.158867 0.599511 0) (-0.118933 0.601489 0) (-0.074393 0.600607 0) (-0.0236192 0.607671 0) (0.0235579 0.607679 0) (0.0743697 0.600563 0) (0.118967 0.601379 0) (0.158984 0.599273 0) (0.194757 0.597127 0) (0.228852 0.595297 0) (0.262447 0.59487 0) (0.294038 0.594115 0) (0.327122 0.59449 0) (0.356229 0.592182 0) (0.390772 0.593692 0) (0.415979 0.589754 0) (0.449863 0.592014 0) (0.472706 0.588469 0) (0.505789 0.590216 0) (0.5293 0.587177 0) (0.561534 0.587296 0) (0.576353 0.578525 0) (0.62033 0.564256 0) (0.943431 0.631821 0) (-0.967028 0.613677 0) (-0.596081 0.612135 0) (-0.558272 0.634691 0) (-0.549147 0.645212 0) (-0.519031 0.645126 0) (-0.496256 0.648543 0) (-0.461311 0.647051 0) (-0.43742 0.650538 0) (-0.402927 0.649928 0) (-0.375753 0.653088 0) (-0.341542 0.653545 0) (-0.311308 0.655845 0) (-0.278153 0.656732 0) (-0.247255 0.657481 0) (-0.216622 0.65604 0) (-0.187528 0.653375 0) (-0.154245 0.649771 0) (-0.115644 0.64631 0) (-0.071885 0.642383 0) (-0.022148 0.64689 0) (0.0221011 0.64691 0) (0.0718615 0.642385 0) (0.115646 0.646288 0) (0.154278 0.649671 0) (0.187641 0.653156 0) (0.2168 0.65561 0) (0.247631 0.656926 0) (0.278195 0.655619 0) (0.312304 0.654827 0) (0.341298 0.651092 0) (0.377394 0.651092 0) (0.402977 0.645988 0) (0.438903 0.646347 0) (0.462406 0.641387 0) (0.498095 0.640725 0) (0.521077 0.635851 0) (0.552834 0.632636 0) (0.561323 0.620098 0) (0.598144 0.596135 0) (0.961791 0.574596 0) (-1.02104 1.02466 0) (-0.581609 0.960345 0) (-0.62572 0.94845 0) (-0.633755 0.982567 0) (-0.590133 1.01657 0) (-0.571137 1.03977 0) (-0.522715 1.06877 0) (-0.498187 1.09098 0) (-0.449183 1.11499 0) (-0.420279 1.13553 0) (-0.371566 1.155 0) (-0.339516 1.17337 0) (-0.29334 1.18895 0) (-0.258443 1.20466 0) (-0.215471 1.21761 0) (-0.178785 1.23096 0) (-0.139641 1.24153 0) (-0.102329 1.24974 0) (-0.063852 1.25496 0) (-0.0201782 1.26554 0) (0.0201675 1.26554 0) (0.0638379 1.25496 0) (0.102313 1.24974 0) (0.139622 1.24154 0) (0.178767 1.23097 0) (0.215442 1.21762 0) (0.258451 1.20465 0) (0.293321 1.18891 0) (0.339633 1.17332 0) (0.371586 1.15489 0) (0.420556 1.13537 0) (0.449401 1.11472 0) (0.498671 1.09056 0) (0.523362 1.06813 0) (0.572232 1.03876 0) (0.591814 1.01503 0) (0.636492 0.980099 0) (0.628611 0.944477 0) (0.585588 0.955338 0) (1.0199 1.02458 0) (-1.02104 -1.02466 0) (-0.581609 -0.960345 0) (-0.62572 -0.94845 0) (-0.633755 -0.982567 0) (-0.590133 -1.01657 0) (-0.571137 -1.03977 0) (-0.522715 -1.06877 0) (-0.498187 -1.09098 0) (-0.449183 -1.11499 0) (-0.420279 -1.13553 0) (-0.371566 -1.155 0) (-0.339516 -1.17337 0) (-0.29334 -1.18895 0) (-0.258443 -1.20466 0) (-0.215471 -1.21761 0) (-0.178785 -1.23096 0) (-0.139641 -1.24153 0) (-0.102329 -1.24974 0) (-0.063852 -1.25496 0) (-0.0201782 -1.26554 0) (0.0201675 -1.26554 0) (0.0638379 -1.25496 0) (0.102313 -1.24974 0) (0.139622 -1.24154 0) (0.178767 -1.23097 0) (0.215442 -1.21762 0) (0.258451 -1.20465 0) (0.293321 -1.18891 0) (0.339633 -1.17332 0) (0.371586 -1.15489 0) (0.420556 -1.13537 0) (0.449401 -1.11472 0) (0.498671 -1.09056 0) (0.523362 -1.06813 0) (0.572232 -1.03876 0) (0.591814 -1.01503 0) (0.636492 -0.980099 0) (0.628611 -0.944477 0) (0.585588 -0.955338 0) (1.0199 -1.02458 0) (-0.967028 -0.613677 0) (-0.596081 -0.612135 0) (-0.558272 -0.634691 0) (-0.549147 -0.645212 0) (-0.519031 -0.645126 0) (-0.496256 -0.648543 0) (-0.461311 -0.647051 0) (-0.43742 -0.650538 0) (-0.402927 -0.649928 0) (-0.375753 -0.653088 0) (-0.341542 -0.653545 0) (-0.311308 -0.655845 0) (-0.278153 -0.656732 0) (-0.247255 -0.657481 0) (-0.216622 -0.65604 0) (-0.187528 -0.653375 0) (-0.154245 -0.649771 0) (-0.115644 -0.64631 0) (-0.071885 -0.642383 0) (-0.022148 -0.64689 0) (0.0221011 -0.64691 0) (0.0718615 -0.642385 0) (0.115646 -0.646288 0) (0.154278 -0.649671 0) (0.187641 -0.653156 0) (0.2168 -0.65561 0) (0.247631 -0.656926 0) (0.278195 -0.655619 0) (0.312304 -0.654827 0) (0.341298 -0.651092 0) (0.377394 -0.651092 0) (0.402977 -0.645988 0) (0.438903 -0.646347 0) (0.462406 -0.641387 0) (0.498095 -0.640725 0) (0.521077 -0.635851 0) (0.552834 -0.632636 0) (0.561323 -0.620098 0) (0.598144 -0.596135 0) (0.961791 -0.574596 0) (-0.959559 -0.666547 0) (-0.61466 -0.587063 0) (-0.56537 -0.602342 0) (-0.55024 -0.607769 0) (-0.520267 -0.602933 0) (-0.498224 -0.60357 0) (-0.467026 -0.598325 0) (-0.444831 -0.599144 0) (-0.413592 -0.596525 0) (-0.386936 -0.597139 0) (-0.3553 -0.596296 0) (-0.32493 -0.596347 0) (-0.293297 -0.596057 0) (-0.261548 -0.59589 0) (-0.228463 -0.59604 0) (-0.194482 -0.597529 0) (-0.158867 -0.599511 0) (-0.118933 -0.601489 0) (-0.074393 -0.600607 0) (-0.0236192 -0.607671 0) (0.0235579 -0.607679 0) (0.0743697 -0.600563 0) (0.118967 -0.601379 0) (0.158984 -0.599273 0) (0.194757 -0.597127 0) (0.228852 -0.595297 0) (0.262447 -0.59487 0) (0.294038 -0.594115 0) (0.327122 -0.59449 0) (0.356229 -0.592182 0) (0.390772 -0.593692 0) (0.415979 -0.589754 0) (0.449863 -0.592014 0) (0.472706 -0.588469 0) (0.505789 -0.590216 0) (0.5293 -0.587177 0) (0.561534 -0.587296 0) (0.576353 -0.578525 0) (0.62033 -0.564256 0) (0.943431 -0.631821 0) (-0.996926 -0.673407 0) (-0.625846 -0.580953 0) (-0.571599 -0.590167 0) (-0.551719 -0.592107 0) (-0.519687 -0.58593 0) (-0.497004 -0.586537 0) (-0.467098 -0.581666 0) (-0.443803 -0.581795 0) (-0.415359 -0.580756 0) (-0.386478 -0.579841 0) (-0.356615 -0.580707 0) (-0.324434 -0.579986 0) (-0.293088 -0.580998 0) (-0.261056 -0.581823 0) (-0.230177 -0.583951 0) (-0.198117 -0.585897 0) (-0.163242 -0.587738 0) (-0.123061 -0.589558 0) (-0.077439 -0.588518 0) (-0.0248299 -0.595516 0) (0.0247916 -0.595505 0) (0.0774787 -0.588432 0) (0.123242 -0.589358 0) (0.163603 -0.587352 0) (0.198743 -0.585266 0) (0.23099 -0.582855 0) (0.26251 -0.580461 0) (0.294266 -0.578439 0) (0.327631 -0.577783 0) (0.358064 -0.575443 0) (0.392475 -0.576184 0) (0.418651 -0.572143 0) (0.452248 -0.574008 0) (0.475491 -0.570209 0) (0.50842 -0.572018 0) (0.532328 -0.569227 0) (0.56611 -0.570641 0) (0.584736 -0.565985 0) (0.632488 -0.557158 0) (0.977771 -0.64037 0) (-1.03211 -0.62766 0) (-0.631942 -0.553841 0) (-0.572493 -0.56528 0) (-0.550322 -0.565907 0) (-0.516831 -0.559003 0) (-0.493492 -0.56017 0) (-0.464743 -0.555782 0) (-0.439619 -0.554397 0) (-0.414401 -0.555495 0) (-0.383618 -0.553951 0) (-0.355595 -0.556626 0) (-0.323207 -0.557155 0) (-0.29229 -0.559447 0) (-0.260484 -0.561306 0) (-0.229042 -0.56359 0) (-0.196831 -0.565899 0) (-0.161765 -0.568176 0) (-0.121366 -0.570325 0) (-0.0760759 -0.569784 0) (-0.0242863 -0.57698 0) (0.0243311 -0.576926 0) (0.076215 -0.569615 0) (0.121693 -0.569947 0) (0.162328 -0.567522 0) (0.197708 -0.564884 0) (0.2302 -0.562006 0) (0.262365 -0.559288 0) (0.294034 -0.556113 0) (0.327164 -0.553975 0) (0.357428 -0.549975 0) (0.391184 -0.549047 0) (0.417658 -0.543816 0) (0.450659 -0.544353 0) (0.473937 -0.539451 0) (0.506652 -0.540749 0) (0.530623 -0.537181 0) (0.564765 -0.538926 0) (0.584769 -0.535811 0) (0.635632 -0.527763 0) (1.01124 -0.598061 0) (-1.05497 -0.605165 0) (-0.635785 -0.532063 0) (-0.572483 -0.543553 0) (-0.548692 -0.544415 0) (-0.514555 -0.537678 0) (-0.49074 -0.538827 0) (-0.46448 -0.536019 0) (-0.439572 -0.533027 0) (-0.416001 -0.534663 0) (-0.386195 -0.532968 0) (-0.35855 -0.53556 0) (-0.327006 -0.536365 0) (-0.296679 -0.538859 0) (-0.265525 -0.540966 0) (-0.234594 -0.543423 0) (-0.202239 -0.545526 0) (-0.166406 -0.547272 0) (-0.124782 -0.548648 0) (-0.078094 -0.547285 0) (-0.0249336 -0.553706 0) (0.0251261 -0.553594 0) (0.0784085 -0.547021 0) (0.125379 -0.54809 0) (0.167375 -0.546379 0) (0.203694 -0.544197 0) (0.236546 -0.541469 0) (0.268359 -0.538439 0) (0.299761 -0.53501 0) (0.332373 -0.53232 0) (0.362685 -0.528149 0) (0.396176 -0.526842 0) (0.422799 -0.521507 0) (0.455258 -0.521734 0) (0.478447 -0.516643 0) (0.510135 -0.517558 0) (0.533899 -0.513778 0) (0.567292 -0.515552 0) (0.58765 -0.512822 0) (0.640234 -0.505407 0) (1.03425 -0.57928 0) (-1.08318 -0.554777 0) (-0.638586 -0.500353 0) (-0.571915 -0.516346 0) (-0.546884 -0.517363 0) (-0.512036 -0.510944 0) (-0.487016 -0.511731 0) (-0.462684 -0.510325 0) (-0.437255 -0.506276 0) (-0.414415 -0.50824 0) (-0.385396 -0.506662 0) (-0.357708 -0.508944 0) (-0.326759 -0.509842 0) (-0.296658 -0.512228 0) (-0.265808 -0.514296 0) (-0.235021 -0.516674 0) (-0.202634 -0.518886 0) (-0.166609 -0.520859 0) (-0.12479 -0.522476 0) (-0.0780552 -0.52138 0) (-0.0248986 -0.527494 0) (0.0253168 -0.527307 0) (0.0786159 -0.520998 0) (0.125695 -0.521695 0) (0.167963 -0.519672 0) (0.204545 -0.517168 0) (0.237565 -0.514268 0) (0.269245 -0.511144 0) (0.300734 -0.507756 0) (0.332879 -0.504709 0) (0.363571 -0.500505 0) (0.396689 -0.498675 0) (0.423497 -0.492965 0) (0.455534 -0.492619 0) (0.478573 -0.486807 0) (0.509388 -0.486896 0) (0.532829 -0.482163 0) (0.565741 -0.483762 0) (0.586225 -0.480902 0) (0.640923 -0.470967 0) (1.06277 -0.532587 0) (-1.10448 -0.525423 0) (-0.642586 -0.478459 0) (-0.572557 -0.496101 0) (-0.546172 -0.497108 0) (-0.511321 -0.491558 0) (-0.485301 -0.490801 0) (-0.462244 -0.490374 0) (-0.43762 -0.485646 0) (-0.415576 -0.487078 0) (-0.387918 -0.485299 0) (-0.360759 -0.486581 0) (-0.330611 -0.487028 0) (-0.300598 -0.488547 0) (-0.26988 -0.490041 0) (-0.238749 -0.491692 0) (-0.205711 -0.493278 0) (-0.168716 -0.494625 0) (-0.125976 -0.495784 0) (-0.0785822 -0.494494 0) (-0.0250204 -0.500133 0) (0.0257512 -0.499867 0) (0.0794732 -0.493993 0) (0.127276 -0.49479 0) (0.170555 -0.493165 0) (0.208229 -0.491216 0) (0.242087 -0.488893 0) (0.274267 -0.486359 0) (0.306117 -0.483591 0) (0.338264 -0.480927 0) (0.369433 -0.477549 0) (0.402016 -0.47566 0) (0.429334 -0.470566 0) (0.460856 -0.470231 0) (0.483995 -0.464518 0) (0.514086 -0.464501 0) (0.537339 -0.459674 0) (0.569173 -0.461255 0) (0.589439 -0.458669 0) (0.645453 -0.44804 0) (1.08454 -0.508802 0) (-1.12659 -0.473738 0) (-0.644158 -0.447437 0) (-0.571558 -0.468931 0) (-0.543512 -0.469293 0) (-0.509098 -0.464991 0) (-0.481163 -0.462422 0) (-0.458985 -0.462925 0) (-0.434229 -0.457456 0) (-0.412603 -0.458937 0) (-0.385974 -0.45693 0) (-0.359184 -0.457896 0) (-0.330443 -0.458746 0) (-0.300718 -0.460077 0) (-0.270808 -0.461883 0) (-0.239856 -0.4636 0) (-0.206867 -0.465395 0) (-0.169592 -0.466857 0) (-0.126496 -0.468061 0) (-0.0787959 -0.466871 0) (-0.0250242 -0.472081 0) (0.0261542 -0.471736 0) (0.0801002 -0.466257 0) (0.128253 -0.466871 0) (0.171955 -0.465155 0) (0.210021 -0.463056 0) (0.24397 -0.460482 0) (0.276187 -0.457841 0) (0.307524 -0.45468 0) (0.33969 -0.451985 0) (0.370297 -0.448185 0) (0.402456 -0.4459 0) (0.430188 -0.441059 0) (0.460877 -0.439943 0) (0.484258 -0.433971 0) (0.513726 -0.433426 0) (0.536672 -0.427946 0) (0.567361 -0.429064 0) (0.587369 -0.4262 0) (0.645098 -0.413494 0) (1.10826 -0.461481 0) (-1.14562 -0.43848 0) (-0.648283 -0.424846 0) (-0.572889 -0.448437 0) (-0.542724 -0.447024 0) (-0.509381 -0.444436 0) (-0.480372 -0.439163 0) (-0.458406 -0.439876 0) (-0.434491 -0.434063 0) (-0.41253 -0.433678 0) (-0.387608 -0.432109 0) (-0.360526 -0.431105 0) (-0.332508 -0.431723 0) (-0.302963 -0.43245 0) (-0.273059 -0.433818 0) (-0.242038 -0.435341 0) (-0.208626 -0.436923 0) (-0.170815 -0.438279 0) (-0.127174 -0.439386 0) (-0.079051 -0.438273 0) (-0.0250084 -0.44303 0) (0.0266093 -0.442614 0) (0.0808365 -0.437566 0) (0.129436 -0.438047 0) (0.173735 -0.436399 0) (0.212437 -0.434382 0) (0.246975 -0.432005 0) (0.279489 -0.429505 0) (0.311182 -0.426704 0) (0.343641 -0.424434 0) (0.374319 -0.420678 0) (0.407423 -0.419684 0) (0.43492 -0.414542 0) (0.46621 -0.414369 0) (0.48994 -0.40882 0) (0.518997 -0.408298 0) (0.541955 -0.402962 0) (0.571554 -0.404416 0) (0.591331 -0.402323 0) (0.650007 -0.389072 0) (1.12835 -0.433868 0) (-1.16234 -0.384055 0) (-0.649353 -0.393618 0) (-0.571945 -0.421168 0) (-0.5381 -0.416236 0) (-0.506537 -0.415728 0) (-0.476223 -0.409265 0) (-0.454005 -0.409835 0) (-0.430868 -0.404191 0) (-0.40982 -0.403996 0) (-0.385108 -0.401184 0) (-0.360511 -0.401846 0) (-0.332176 -0.401206 0) (-0.304266 -0.40279 0) (-0.274382 -0.403836 0) (-0.243738 -0.405574 0) (-0.210078 -0.407152 0) (-0.171878 -0.408522 0) (-0.12778 -0.409604 0) (-0.0792604 -0.408606 0) (-0.0249536 -0.412915 0) (0.0270789 -0.412442 0) (0.0815787 -0.407834 0) (0.13058 -0.408167 0) (0.175375 -0.406527 0) (0.214554 -0.404484 0) (0.249549 -0.402126 0) (0.281864 -0.39931 0) (0.314197 -0.396955 0) (0.345072 -0.393312 0) (0.377671 -0.391298 0) (0.408009 -0.387634 0) (0.437307 -0.384022 0) (0.467555 -0.382652 0) (0.491251 -0.376554 0) (0.519994 -0.375896 0) (0.542611 -0.370254 0) (0.570589 -0.371017 0) (0.589651 -0.368684 0) (0.649674 -0.353918 0) (1.14774 -0.386518 0) (-1.17989 -0.343618 0) (-0.653326 -0.370488 0) (-0.57357 -0.400429 0) (-0.536429 -0.39051 0) (-0.504744 -0.390804 0) (-0.474335 -0.383247 0) (-0.451717 -0.382665 0) (-0.429142 -0.376422 0) (-0.407868 -0.374722 0) (-0.385072 -0.3728 0) (-0.359514 -0.370913 0) (-0.333746 -0.371873 0) (-0.305026 -0.371907 0) (-0.276336 -0.373598 0) (-0.245342 -0.374936 0) (-0.211598 -0.376627 0) (-0.172931 -0.377938 0) (-0.128379 -0.379007 0) (-0.0794539 -0.378146 0) (-0.0248758 -0.382024 0) (0.0275541 -0.381512 0) (0.0823338 -0.377341 0) (0.131734 -0.377529 0) (0.177007 -0.375892 0) (0.216761 -0.373921 0) (0.251973 -0.371403 0) (0.285089 -0.369078 0) (0.316375 -0.365761 0) (0.349266 -0.363977 0) (0.379442 -0.359633 0) (0.412212 -0.358509 0) (0.44064 -0.354056 0) (0.470992 -0.35286 0) (0.495684 -0.347547 0) (0.524301 -0.347021 0) (0.546809 -0.34135 0) (0.573404 -0.342282 0) (0.592417 -0.341135 0) (0.653561 -0.326405 0) (1.16586 -0.356179 0) (-1.19295 -0.288499 0) (-0.654527 -0.342112 0) (-0.572448 -0.375754 0) (-0.531965 -0.361683 0) (-0.499691 -0.362393 0) (-0.469764 -0.353966 0) (-0.447091 -0.352109 0) (-0.425647 -0.346338 0) (-0.405019 -0.344207 0) (-0.382901 -0.341481 0) (-0.359595 -0.340979 0) (-0.333339 -0.340237 0) (-0.306581 -0.341464 0) (-0.277535 -0.34237 0) (-0.247059 -0.344077 0) (-0.212956 -0.345619 0) (-0.173949 -0.346986 0) (-0.128957 -0.34804 0) (-0.0796371 -0.347341 0) (-0.0247855 -0.350809 0) (0.02802 -0.350281 0) (0.0830844 -0.346538 0) (0.132866 -0.346579 0) (0.178608 -0.344966 0) (0.21878 -0.342932 0) (0.254605 -0.340613 0) (0.287386 -0.33777 0) (0.319877 -0.335488 0) (0.350882 -0.33188 0) (0.383356 -0.329885 0) (0.41388 -0.326379 0) (0.443481 -0.323056 0) (0.473512 -0.321508 0) (0.498304 -0.315871 0) (0.526594 -0.315006 0) (0.548773 -0.309014 0) (0.57392 -0.309671 0) (0.59195 -0.308578 0) (0.654157 -0.292634 0) (1.18149 -0.310728 0) (-1.21274 -0.246025 0) (-0.657067 -0.320323 0) (-0.570654 -0.356151 0) (-0.52684 -0.336631 0) (-0.493716 -0.33625 0) (-0.46517 -0.326177 0) (-0.442674 -0.322074 0) (-0.42225 -0.316146 0) (-0.402383 -0.313565 0) (-0.381428 -0.310978 0) (-0.358541 -0.309618 0) (-0.334052 -0.30975 0) (-0.307219 -0.310101 0) (-0.279128 -0.311482 0) (-0.248487 -0.312908 0) (-0.21431 -0.314549 0) (-0.174917 -0.315873 0) (-0.129526 -0.316927 0) (-0.0798234 -0.316382 0) (-0.0246967 -0.319455 0) (0.0284649 -0.318936 0) (0.0838193 -0.315623 0) (0.133973 -0.315553 0) (0.180139 -0.313961 0) (0.220802 -0.312008 0) (0.256859 -0.309565 0) (0.290274 -0.307118 0) (0.322075 -0.30409 0) (0.354368 -0.30176 0) (0.385364 -0.298201 0) (0.417011 -0.295975 0) (0.44646 -0.292408 0) (0.47607 -0.290383 0) (0.501782 -0.285408 0) (0.530057 -0.284496 0) (0.552061 -0.278248 0) (0.575767 -0.278751 0) (0.593033 -0.278374 0) (0.656421 -0.262613 0) (1.19712 -0.27771 0) (-1.2266 -0.195292 0) (-0.658227 -0.298883 0) (-0.56632 -0.338171 0) (-0.517754 -0.313135 0) (-0.484374 -0.30945 0) (-0.45848 -0.297348 0) (-0.437188 -0.290929 0) (-0.418225 -0.28488 0) (-0.399405 -0.282044 0) (-0.379587 -0.279463 0) (-0.357974 -0.278468 0) (-0.334025 -0.278148 0) (-0.308288 -0.278868 0) (-0.280356 -0.279909 0) (-0.249975 -0.281409 0) (-0.215578 -0.28291 0) (-0.175875 -0.284186 0) (-0.130099 -0.285172 0) (-0.0800286 -0.284747 0) (-0.0246245 -0.287417 0) (0.0288797 -0.286937 0) (0.0845313 -0.284077 0) (0.135043 -0.283961 0) (0.181624 -0.282488 0) (0.222678 -0.280626 0) (0.259178 -0.278401 0) (0.292602 -0.27585 0) (0.324946 -0.273376 0) (0.356558 -0.270404 0) (0.388379 -0.267837 0) (0.419318 -0.264851 0) (0.449081 -0.261658 0) (0.478665 -0.259598 0) (0.504792 -0.254779 0) (0.532929 -0.253542 0) (0.554788 -0.246976 0) (0.577505 -0.247502 0) (0.593103 -0.246855 0) (0.657032 -0.230816 0) (1.20966 -0.235474 0) (-1.22514 -0.136757 0) (-0.657443 -0.280125 0) (-0.559082 -0.324873 0) (-0.503729 -0.293419 0) (-0.471797 -0.281638 0) (-0.449922 -0.267215 0) (-0.43104 -0.258349 0) (-0.413996 -0.251884 0) (-0.396602 -0.248951 0) (-0.377952 -0.246505 0) (-0.357276 -0.245536 0) (-0.334336 -0.245386 0) (-0.309108 -0.245852 0) (-0.281696 -0.246851 0) (-0.251359 -0.2481 0) (-0.21683 -0.249422 0) (-0.176812 -0.25051 0) (-0.130676 -0.251354 0) (-0.0802564 -0.250991 0) (-0.0245801 -0.253239 0) (0.0292537 -0.252823 0) (0.0852015 -0.250445 0) (0.136061 -0.250364 0) (0.183031 -0.249103 0) (0.224484 -0.247512 0) (0.261284 -0.245536 0) (0.295035 -0.243386 0) (0.327281 -0.241007 0) (0.359233 -0.238659 0) (0.390705 -0.235979 0) (0.421818 -0.233489 0) (0.451686 -0.2306 0) (0.480977 -0.228377 0) (0.507726 -0.224195 0) (0.535879 -0.222963 0) (0.557784 -0.216332 0) (0.580052 -0.217205 0) (0.593455 -0.215023 0) (0.656903 -0.20105 0) (1.22251 -0.2006 0) (-1.23785 -0.0777293 0) (-0.652396 -0.261006 0) (-0.546228 -0.313929 0) (-0.483428 -0.275341 0) (-0.455883 -0.250491 0) (-0.438631 -0.233142 0) (-0.424074 -0.222217 0) (-0.409595 -0.215312 0) (-0.393999 -0.212281 0) (-0.376619 -0.210098 0) (-0.356835 -0.209215 0) (-0.334597 -0.208995 0) (-0.309979 -0.209333 0) (-0.282866 -0.210033 0) (-0.25263 -0.210992 0) (-0.217946 -0.211989 0) (-0.177655 -0.212811 0) (-0.1312 -0.213448 0) (-0.0804751 -0.213111 0) (-0.0245625 -0.214919 0) (0.0295638 -0.21458 0) (0.0857736 -0.212695 0) (0.136943 -0.212689 0) (0.184261 -0.211711 0) (0.226061 -0.210468 0) (0.263192 -0.208927 0) (0.29713 -0.207198 0) (0.32958 -0.205381 0) (0.361463 -0.203421 0) (0.393092 -0.201409 0) (0.424101 -0.199306 0) (0.45404 -0.197005 0) (0.483224 -0.195138 0) (0.510453 -0.191808 0) (0.538422 -0.190751 0) (0.560616 -0.184677 0) (0.582512 -0.18587 0) (0.594914 -0.18179 0) (0.655365 -0.171797 0) (1.23308 -0.161575 0) (-1.24301 -0.0066909 0) (-0.637922 -0.247144 0) (-0.522897 -0.304219 0) (-0.456794 -0.254709 0) (-0.43529 -0.214696 0) (-0.424716 -0.192659 0) (-0.416764 -0.180337 0) (-0.405138 -0.173363 0) (-0.391697 -0.17016 0) (-0.375598 -0.168452 0) (-0.356523 -0.167605 0) (-0.334865 -0.167361 0) (-0.310651 -0.16749 0) (-0.28381 -0.167904 0) (-0.253627 -0.168517 0) (-0.218831 -0.169177 0) (-0.178324 -0.169716 0) (-0.131621 -0.170139 0) (-0.0806539 -0.169827 0) (-0.0245605 -0.171189 0) (0.0298058 -0.170933 0) (0.0862205 -0.169529 0) (0.137639 -0.16959 0) (0.185238 -0.168902 0) (0.227328 -0.16803 0) (0.264722 -0.166937 0) (0.298878 -0.165724 0) (0.331431 -0.164436 0) (0.363423 -0.163093 0) (0.395067 -0.161676 0) (0.426123 -0.160228 0) (0.456168 -0.15867 0) (0.485238 -0.15733 0) (0.512931 -0.155133 0) (0.540631 -0.1545 0) (0.563481 -0.149731 0) (0.58487 -0.151122 0) (0.597217 -0.146424 0) (0.653305 -0.1397 0) (1.24296 -0.126491 0) (-1.2371 0.0560675 0) (-0.595417 -0.241578 0) (-0.47016 -0.296228 0) (-0.409231 -0.233982 0) (-0.406739 -0.170166 0) (-0.410082 -0.14316 0) (-0.410281 -0.13186 0) (-0.401568 -0.125556 0) (-0.390256 -0.121777 0) (-0.375122 -0.120977 0) (-0.356472 -0.120209 0) (-0.335085 -0.119964 0) (-0.311093 -0.119948 0) (-0.284394 -0.120125 0) (-0.254242 -0.120455 0) (-0.219374 -0.120833 0) (-0.178732 -0.121142 0) (-0.131879 -0.121389 0) (-0.0807623 -0.121132 0) (-0.0245697 -0.122057 0) (0.0299476 -0.121877 0) (0.0864796 -0.120926 0) (0.138054 -0.121008 0) (0.185829 -0.12057 0) (0.228105 -0.120021 0) (0.265677 -0.119329 0) (0.299969 -0.118565 0) (0.332611 -0.117764 0) (0.364636 -0.116931 0) (0.39632 -0.116065 0) (0.427399 -0.115178 0) (0.457495 -0.114247 0) (0.48654 -0.113432 0) (0.514564 -0.112201 0) (0.542015 -0.111906 0) (0.565729 -0.108692 0) (0.586712 -0.110211 0) (0.599264 -0.105973 0) (0.651139 -0.101442 0) (1.25053 -0.0891109 0) (-1.11138 0.139563 0) (-0.418201 -0.177703 0) (-0.326706 -0.253961 0) (-0.3395 -0.181269 0) (-0.366069 -0.108866 0) (-0.395607 -0.0838327 0) (-0.401601 -0.076183 0) (-0.399675 -0.0719188 0) (-0.389363 -0.0690014 0) (-0.375154 -0.0688431 0) (-0.356805 -0.0683347 0) (-0.335563 -0.0681617 0) (-0.311696 -0.0681086 0) (-0.285067 -0.0681604 0) (-0.254899 -0.068309 0) (-0.219942 -0.0684958 0) (-0.179169 -0.0686527 0) (-0.132171 -0.0687802 0) (-0.0809067 -0.0686282 0) (-0.0245957 -0.0691338 0) (0.0300889 -0.0690322 0) (0.0867677 -0.0685111 0) (0.138526 -0.0685681 0) (0.186506 -0.0683358 0) (0.229005 -0.068047 0) (0.266798 -0.0676844 0) (0.301291 -0.0672857 0) (0.334101 -0.0668704 0) (0.366272 -0.0664424 0) (0.398093 -0.0660005 0) (0.429312 -0.0655504 0) (0.459559 -0.0650898 0) (0.48871 -0.0646856 0) (0.517017 -0.064132 0) (0.544418 -0.0639874 0) (0.569013 -0.0623689 0) (0.589473 -0.0634432 0) (0.602224 -0.0607098 0) (0.650449 -0.0589634 0) (1.25765 -0.0533974 0) ) ; boundaryField { inlet { type fixedValue; value uniform (0 0 0); } outlet { type zeroGradient; } obstacle { type slip; } empty { type empty; } } // ************************************************************************* //
[ "andytorrestb@gmail.com" ]
andytorrestb@gmail.com
95110e87eee9a04deeec5f1799120b338c1aee4b
23012559f8099fbb6a4c86d3d86ab5c5212de48e
/kasten/controllers/view/libbytearrayfilter/abstractbytearrayfilterparameterset.hpp
77e7f4a67a32adcdfea24282f84530cb468f783f
[]
no_license
KDE/okteta
a916cdb9e16cdc6c48a756205604df600a3b271c
cb7d9884a52d0c08c1496d4a3578f5dfe0c2a404
refs/heads/master
2023-09-01T09:33:47.395026
2023-08-29T04:33:32
2023-08-29T04:33:32
42,718,476
92
9
null
2020-12-29T18:58:56
2015-09-18T11:44:12
C++
UTF-8
C++
false
false
906
hpp
/* This file is part of the Okteta Kasten module, made within the KDE community. SPDX-FileCopyrightText: 2008 Friedrich W. H. Kossebau <kossebau@kde.org> SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #ifndef KASTEN_ABSTRACTBYTEARRAYFILTERPARAMETERSET_HPP #define KASTEN_ABSTRACTBYTEARRAYFILTERPARAMETERSET_HPP // Std #include <memory> class AbstractByteArrayFilterParameterSet { protected: AbstractByteArrayFilterParameterSet(); public: AbstractByteArrayFilterParameterSet(const AbstractByteArrayFilterParameterSet&) = delete; virtual ~AbstractByteArrayFilterParameterSet(); AbstractByteArrayFilterParameterSet& operator=(const AbstractByteArrayFilterParameterSet&) = delete; public: virtual const char* id() const = 0; private: const std::unique_ptr<class AbstractByteArrayFilterParameterSetPrivate> d; }; #endif
[ "kossebau@kde.org" ]
kossebau@kde.org
53ec0a7c938f2190ff0da8fe314c5acb703bfbac
11c6b6121422fc24ef27774534fd29f7e21338d4
/AOC2020/day12.cpp
3ab81642d282db59dcc72230d7dad3ab2e2a7a31
[]
no_license
jaapdejong15/AOC2020
d2c562ed763b6512acdb4ea6cb807e0c696d07e6
e6c48c3eb603c9c1003285b3d70cad8ae1dbd626
refs/heads/master
2023-02-04T19:32:37.380301
2020-12-26T10:40:46
2020-12-26T10:40:46
317,533,565
0
0
null
null
null
null
UTF-8
C++
false
false
1,973
cpp
#include "day12.h" int xs[] = { 0, 1, 0, -1 }; int ys[] = { 1, 0, -1, 0 }; int day12_1(Timer& timer) { std::vector<std::string> input = getStringInput("input12.txt"); timer.start(); size_t currentDirection = 1; int posx = 0; int posy = 0; int amount; char instruction; for (std::string s : input) { instruction = s[0]; amount = std::stoi(s.substr(1)); switch (instruction) { case 'F': posx += xs[currentDirection] * amount; posy += ys[currentDirection] * amount; break; case 'L': currentDirection = (currentDirection - (amount / 90) + 4) % 4; break; case 'R': currentDirection = (currentDirection + (amount / 90)) % 4; break; case 'N': posy += amount; break; case 'E': posx += amount; break; case 'S': posy -= amount; break; case 'W': posx -= amount; break; } } int answer = abs(posx) + abs(posy); timer.stop(); return answer; } int day12_2(Timer& timer) { std::vector<std::string> input = getStringInput("input12.txt"); timer.start(); int waypoint_x = 10; int waypoint_y = 1; int ship_x = 0; int ship_y = 0; char instruction; int amount; int swap; for (std::string s : input) { instruction = s[0]; amount = std::stoi(s.substr(1)); swap; switch (instruction) { case 'F': ship_x += waypoint_x * amount; ship_y += waypoint_y * amount; break; case 'L': for (int i = 0; i < amount / 90; i++) { waypoint_y = -waypoint_y; swap = waypoint_x; waypoint_x = waypoint_y; waypoint_y = swap; } break; case 'R': for (int i = 0; i < amount / 90; i++) { waypoint_x = -waypoint_x; swap = waypoint_x; waypoint_x = waypoint_y; waypoint_y = swap; } break; case 'N': waypoint_y += amount; break; case 'E': waypoint_x += amount; break; case 'S': waypoint_y -= amount; break; case 'W': waypoint_x -= amount; break; } } int answer = abs(ship_x) + abs(ship_y); timer.stop(); return answer; }
[ "J.deJong-18@student.tudelft.nl" ]
J.deJong-18@student.tudelft.nl
271073816ec701de8bc729c7e34624b6abb52f8c
306ba959838a2bc8f4d7776809d308bde778bc67
/main.cpp
bba125d90d77424dda5d98f624a696948e95b214
[]
no_license
DimitrisGan/RecommendationCryptoSystem
b5b867ed9f0d1faf97b6a5bcfd69f03cf7d5c406
2a45b6293eb9bd0df165cc7da39695590fa8f819
refs/heads/master
2021-10-09T10:05:36.339624
2021-10-08T07:54:36
2021-10-08T07:54:36
163,315,267
1
0
null
null
null
null
UTF-8
C++
false
false
12,342
cpp
#include <iostream> #include <unordered_map> #include <fstream> #include "AssistantFunctions.h" #include "Tweet.h" #include "myCryptoVector.h" #include "ClusterAPI.h" #include "SearchingAlgorithms.h" #include "RecommendBestCoins.h" #include "ClusteringProxSearching.h" #include "Cross_Validation.h" #include <cmath> int main(int argc , char** argv) { string inCoinsFileName = "./inputs/coins_queries.csv"; string inVadarLexinconFile = "./inputs/vader_lexicon.csv"; string inTweetsDatasetFile = "./inputs/tweets_dataset_small.csv"; string configFileNameForLsh1 = "./configs/lsh1.conf"; string configFileNameForLsh2 = "./configs/lsh2.conf"; string configFileNameForCluster1 = "./configs/cluster1.conf"; string configFileNameForCluster2 = "./configs/cluster2.conf"; string configFileNameForCluster3 = "./configs/cluster3.conf"; string inFileName; //= "./inputs/twitter_dataset_small_v2.csv"; string OutFileName; //= "./outputs/OutputProject3"; int validateFlag ; ReadHandleArgms( argc, argv , inFileName , OutFileName , validateFlag); vector <string> CoinsList; unordered_map<string ,int> coins_umap; unordered_map<string ,double> vaderLexicon_umap; ReadCoinsFile_saveIt(inCoinsFileName , CoinsList , coins_umap ); unsigned dimUserSentScoreVectors = static_cast<int>(CoinsList.size()); ReadVaderLexicon_saveIt(inVadarLexinconFile , vaderLexicon_umap); unordered_map <string , Tweet > Tweets_umap; unordered_multimap <string ,string> userTweetsRelation_ummap; int P ; ReadTweetsInputDat_saveIt(inTweetsDatasetFile, Tweets_umap, userTweetsRelation_ummap, P); cout << "P: "<<P<<endl; unordered_map <string , myVector > userTweetsSentimScore_umap; /*U USERS-VECTORS*/ calculateUsersSentimentCryptoScoreMap(userTweetsSentimScore_umap, userTweetsRelation_ummap, Tweets_umap, vaderLexicon_umap, coins_umap, dimUserSentScoreVectors); /*U USERS-VECTORS CHANGED THE INFS TO AVRG SENTIMENT*/ unordered_map <string , myVector > userTweetsSentimScoreWithoutInfsAndZeroVectors_umap; unordered_map <string , double > userTweetsAverageSentimScore_umap; calculateAverageU_umap(userTweetsAverageSentimScore_umap, userTweetsSentimScore_umap); changeInfsToAverageSentimentsAndDiscardZeroVectors(userTweetsSentimScoreWithoutInfsAndZeroVectors_umap, userTweetsSentimScore_umap, userTweetsAverageSentimScore_umap); // printUsersSentimentCryptoScoreMap(userTweetsSentimScoreWithoutInfsAndZeroVectors_umap); //================== making the virtual clusters ================ unsigned int dimTfIdfVec = 0; unordered_map<string, myVector> in_Tf_Idf_Tweets_umap; //in_umap from project2 ReadInFile_save2umap(inFileName, in_Tf_Idf_Tweets_umap, dimTfIdfVec ); kClusters TwitterCluster; ClusterProcedure(TwitterCluster, in_Tf_Idf_Tweets_umap, configFileNameForCluster1, dimTfIdfVec, 0); /*C VIRTUAL-USERS-VECTORS*/ unordered_map <string , myVector > virtualUserTweetsSentimScore_umap; calculateVirtualUsersFromTwitterCluster(virtualUserTweetsSentimScore_umap, TwitterCluster, Tweets_umap, vaderLexicon_umap, coins_umap, dimUserSentScoreVectors); /*C USERS-VECTORS CHANGED THE INFS TO AVRG SENTIMENT*/ unordered_map <string , myVector > virtualUserTweetsSentimScoreWithoutInfsAndZeroVectors_umap; unordered_map <string , double > virtualUserTweetsAverageSentimScore_umap; calculateAverageU_umap(virtualUserTweetsAverageSentimScore_umap, virtualUserTweetsSentimScore_umap); changeInfsToAverageSentimentsAndDiscardZeroVectors(virtualUserTweetsSentimScoreWithoutInfsAndZeroVectors_umap, virtualUserTweetsSentimScore_umap, virtualUserTweetsAverageSentimScore_umap); // printUsersSentimentCryptoScoreMap(userTweetsSentimScoreWithoutInfsAndZeroVectors_umap); // ============================ U-V LSH's ==================================== /*SAVE THE nonInf&zero U's IN THE LSH*/ Lsh *lsh_Users_ptr = new Lsh(configFileNameForLsh1, userTweetsSentimScoreWithoutInfsAndZeroVectors_umap, dimUserSentScoreVectors); //lsh-cosine for u's /*SAVE THE nonInf&zero C's IN THE LSH*/ Lsh *lsh_virtualUsers_ptr = new Lsh(configFileNameForLsh2, virtualUserTweetsSentimScoreWithoutInfsAndZeroVectors_umap, dimUserSentScoreVectors); //lsh-cosine for c's // //=============================== U-V CLUSTER's ============================== //ADD UsCluster && CsCluster IN NEW STRUCTURE THAT IMPLEMENTS getSuperSet() and keeps as attribute the euclidean distance auto *clust_U = new ClusteringProxSearching(configFileNameForCluster2, userTweetsSentimScoreWithoutInfsAndZeroVectors_umap, dimUserSentScoreVectors, 0); auto *clust_C = new ClusteringProxSearching(configFileNameForCluster3, virtualUserTweetsSentimScoreWithoutInfsAndZeroVectors_umap, dimUserSentScoreVectors, 0); // //============================================================================= /*NUMBER OF COINS TO RECOMMEND*/ int numberOfCoins2recommend_U = 5; int numberOfCoins2recommend_C = 2; ////===================================== FUNCTOR INSTANTIATIONS ======================================= // /*FOR REAL-U USERS*/ auto *RecommendFromRealUsers = new RecommendCoins(P, numberOfCoins2recommend_U, CoinsList, userTweetsSentimScore_umap, userTweetsAverageSentimScore_umap, //U_userTweetsAverageSentimScore_umap, userTweetsSentimScoreWithoutInfsAndZeroVectors_umap, //U_userTweetsSentimScoreWithoutInfsAndZeroVectors_umap, userTweetsAverageSentimScore_umap, //V_userTweetsAverageSentimScore_umap, userTweetsSentimScoreWithoutInfsAndZeroVectors_umap); //V_userTweetsSentimScoreWithoutInfsAndZeroVectors_umap); // /*FOR VIRTUAL-C USERS*/ auto *RecommendFromVirtualUsers = new RecommendCoins(P, numberOfCoins2recommend_C, CoinsList, userTweetsSentimScore_umap, userTweetsAverageSentimScore_umap, //U_userTweetsAverageSentimScore_umap, userTweetsSentimScoreWithoutInfsAndZeroVectors_umap, //U_userTweetsSentimScoreWithoutInfsAndZeroVectors_umap, virtualUserTweetsAverageSentimScore_umap, //V_userTweetsAverageSentimScore_umap, virtualUserTweetsSentimScoreWithoutInfsAndZeroVectors_umap); //V_userTweetsSentimScoreWithoutInfsAndZeroVectors_umap);; //========================================================================================================== DistanceMetrics *metricCos = new CosineMetric; DistanceMetrics *metricEucl = new EuclideanMetric; map<string,vector<string>> RecommendedCoins2UsersLSH; map<string,vector<string>> RecommendedCoins2UsersCLUSTER; map<string,vector<string>> RecommendedCoins2VirtualUsersLSH; map<string,vector<string>> RecommendedCoins2VirtualUsersCLUSTER; clock_t beginTime, stopTime; double executTime1A ;double executTime2A ;double executTime1B ;double executTime2B ; //= double(end - begin) / CLOCKS_PER_SEC; //1A cout <<"\n[1A]:Processing...Stand by from real Users results LSH...\n"; beginTime = clock(); (*RecommendFromRealUsers)(RecommendedCoins2UsersLSH,metricCos , lsh_Users_ptr); stopTime = clock(); executTime1A = double(stopTime - beginTime) / CLOCKS_PER_SEC; // printrecommendedCoins2Users(RecommendedCoins2UsersLSH); //2A cout <<"\n[1B]:Processing...Stand by from virtual Users results LSH...\n"; beginTime = clock(); (*RecommendFromVirtualUsers)(RecommendedCoins2VirtualUsersLSH,metricCos, lsh_virtualUsers_ptr); stopTime = clock(); executTime2A = double(stopTime - beginTime) / CLOCKS_PER_SEC; // printrecommendedCoins2Users(RecommendedCoins2VirtualUsersLSH); cout <<"\n[2A]:Processing...Stand by from real Users results CLUSTERING...\n"; //1B beginTime = clock(); (*RecommendFromRealUsers)(RecommendedCoins2UsersCLUSTER,metricEucl , clust_U); stopTime = clock(); executTime1B = double(stopTime - beginTime) / CLOCKS_PER_SEC; // printrecommendedCoins2Users(RecommendedCoins2UsersCLUSTER); cout <<"\n[2B]:Processing...Stand by from virtual Users results CLUSTERING...\n\n"; //2B beginTime = clock(); (*RecommendFromVirtualUsers)(RecommendedCoins2VirtualUsersCLUSTER,metricEucl, clust_C); stopTime = clock(); executTime2B = double(stopTime - beginTime) / CLOCKS_PER_SEC; // printrecommendedCoins2Users(RecommendedCoins2VirtualUsersCLUSTER); double mae1A;double mae2A;double mae1B;double mae2B; if (validateFlag ) { cout <<"Cross-Validating...real Users results from LSH...\n"; mae1A = cross_validation_for_U("./configs/lsh1.conf", "LSH", userTweetsSentimScore_umap, P, dimUserSentScoreVectors, 10, 1); cout <<"Cross-Validating...real Users results from Clustering...\n"; mae2A = cross_validation_for_U("./configs/cluster2.conf", "CLUSTER", userTweetsSentimScore_umap, P, dimUserSentScoreVectors, 10, 1); cout <<"Cross-Validating...virtual Users results from LSH...\n"; mae1B = cross_validation_for_C(userTweetsSentimScore_umap, virtualUserTweetsSentimScoreWithoutInfsAndZeroVectors_umap, virtualUserTweetsAverageSentimScore_umap, lsh_virtualUsers_ptr, metricCos, P, 10, 1); //iterates , crypto2hide cout <<"Cross-Validating...virtual Users results from Clustering...\n"; mae2B = cross_validation_for_C(userTweetsSentimScore_umap, virtualUserTweetsSentimScoreWithoutInfsAndZeroVectors_umap, virtualUserTweetsAverageSentimScore_umap, clust_C, metricEucl, P, 10, 1);//iterates , crypto2hide } Write_OutFileCoinRecommendation(OutFileName, mae1A, executTime1A, mae2A, executTime2A, mae1B, executTime1B, mae2B, executTime2B, RecommendedCoins2UsersLSH, RecommendedCoins2UsersCLUSTER, RecommendedCoins2VirtualUsersLSH, RecommendedCoins2VirtualUsersCLUSTER, validateFlag); /*DELETION OF POINTERS*/ delete lsh_Users_ptr;lsh_Users_ptr= nullptr; delete lsh_virtualUsers_ptr;lsh_virtualUsers_ptr= nullptr; delete clust_U;clust_U= nullptr; delete clust_C;clust_C= nullptr; delete RecommendFromRealUsers;RecommendFromRealUsers= nullptr; delete RecommendFromVirtualUsers;RecommendFromVirtualUsers= nullptr; delete metricCos;metricCos= nullptr; delete metricEucl;metricEucl= nullptr; cout <<"THE END"<<endl; return 0; }
[ "jimgangas@gmail.com" ]
jimgangas@gmail.com
716f0fd1bf8f43da1207075423e66b0a4456626e
4ea5e315ed2c9ba27f6729df4d70c3a40b61fa6b
/Source/src/Object.h
a647832cc3b8e8fa12ea8e77b1513be397c6d267
[]
no_license
bryan-yu/VirtualSimulations
ec4d313f1013f2dc5d14c46595a9f05516d67011
0dbf6409ed87c8e9c186799bec25442dd57aee1c
refs/heads/master
2021-05-28T15:33:08.665323
2015-03-31T17:54:12
2015-03-31T17:54:12
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,793
h
#ifndef AABS_OBJECT_H #define AABS_OBJECT_H #include <string> #include "Ogre.h" #include "OgreSubMesh.h" #include "RigidBody.h" namespace AABSEngine { namespace Core { /** * @class GameObject * * @brief Game object class * * @author AABS * @version X * @date October 2013 * */ class GameObject { public: /** * @brief default constructor */ GameObject(); /** * @brief default destructor */ ~GameObject(); /** * @brief parameterized constructor * @param ogre Node object */ GameObject(Ogre::SceneNode *ogreNode); /** * @brief set ogre node * @param Ogre SceneNode pointer */ void SetSceneNode(Ogre::SceneNode *ogreNode); /** * @brief get the ogre node * @retval Ogre SceneNode pointer contained in this object */ Ogre::SceneNode *GetSceneNode(); /** * @brief get the id/name of this object */ std::string GetName(); /** * @brief set physics object * @param physics object pointer */ void SetPhysicsObject(AABSEngine::Physics::RigidBody *in_phyObj); /** * @brief get the physics object * @retval physics object pointer contained in this object */ AABSEngine::Physics::RigidBody *GetPhysicsObject(); /** * @brief Get deleteOnContact status */ bool DeleteIfCollide() { return m_deleteOnContact; } /** * @brief set deleteOnContact status */ void SetDeleteOnContact(bool input) { m_deleteOnContact = input; } /** * @brief set delete object status */ void MarkForRemoval() { m_deleteObject = true; } /** * @brief if the object should be removed or not */ virtual bool ToBeRemoved() { return m_deleteObject; } /** ** @brief Return unique id of this entity **/ int ID()const { return m_objectID; } /** * @brief Sets the string type of the object. */ void SetType(const std::string type); /** * @brief Gets the string type of the object. */ std::string GetType() const; /** * @brief Sets the string type of the object. */ void SetCoreType(const std::string cType); /** * @brief Gets the string type of the object. */ std::string GetCoreType() const; private: Ogre::SceneNode *m_sceneNode; ///< ogre node AABSEngine::Physics::RigidBody *m_physObject; ///< physics object bool m_deleteOnContact; ///< temporary variable to delete this object when colliding with other object bool m_deleteObject; ///< marker to delete this object /** * @brief assign id to this object */ void AssignID(); std::string m_type; std::string m_coreType; std::string m_name; int m_objectID; static int m_id; }; } } #endif
[ "bryan-500088@hotmail.com" ]
bryan-500088@hotmail.com
057e8c4a9bd346ee203caeb43501f912ff65de12
a33aac97878b2cb15677be26e308cbc46e2862d2
/program_data/PKU_raw/45/2881.c
54aea0d92d87f23609708bbec5a2f127eae1bd6f
[]
no_license
GabeOchieng/ggnn.tensorflow
f5d7d0bca52258336fc12c9de6ae38223f28f786
7c62c0e8427bea6c8bec2cebf157b6f1ea70a213
refs/heads/master
2022-05-30T11:17:42.278048
2020-05-02T11:33:31
2020-05-02T11:33:31
null
0
0
null
null
null
null
UTF-8
C++
false
false
527
c
int main() { char c1[51],c2[51]; char *pc1,*pc2; int f=0,i,j,F=0; scanf("%s",c1); scanf("%s",c2); pc1=c1; pc2=c2; for(i=0;c2[i]!='\0';i++) { if(c1[0]=c2[i]) { f=i; for(j=0;c1[j]==c2[i+j];j++) { if(j==(strlen(c1)-1)) { printf("%d",f); F=1; break; } } } if(F==1) break; } return 0; }
[ "bdqnghi@gmail.com" ]
bdqnghi@gmail.com
985e72346741ad6b7f545193e258ca0b46f321a9
d605446fc8b6f03188157eeb9bacc72696d00567
/src/wloop/Component.h
013d180be707ad8e1aab454917d1d8862417ae6b
[]
no_license
dhillondeep/wlib_old
95cb390b658fb55794bd6c69cbfca1fe53ff632e
c996d6412edbe1f88c0d8dc6fb8acc4dca4eb577
refs/heads/master
2021-09-19T03:52:50.156539
2018-07-23T02:35:18
2018-07-23T02:35:18
null
0
0
null
null
null
null
UTF-8
C++
false
false
107
h
#ifndef WLIB_COMPONENT_H #define WLIB_COMPONENT_H class Component{ }; #endif //WLIB_COMPONENT_H
[ "deep.dhill6@gmail.com" ]
deep.dhill6@gmail.com
67f39ee756d86619a19adb4a3a39625f288db724
1414c4394b3f3fbd8f2ee027e699277a2f704374
/shared/src/messageutil.cpp
5a1fa5334b6315651cf42bfbb5035877e4ba6477
[ "Apache-2.0" ]
permissive
tempbottle/sopmq
f6810258d872d00c557007e9f388652dee3b348e
c940bcba5f9f69190e73f1628909ec344acdb374
refs/heads/master
2021-01-15T18:22:15.875738
2014-11-29T05:28:26
2014-11-29T05:28:26
null
0
0
null
null
null
null
UTF-8
C++
false
false
14,163
cpp
/* * SOPMQ - Scalable optionally persistent message queue * Copyright 2014 InWorldz, LLC * * 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. */ // // ATTENTION: This file uses cog (http://nedbatchelder.com/code/cog/) for code // generation. Do not edit the generated chunks between cog and end tags // #include "messageutil.h" #include "logging.h" #include "netutil.h" /*[[[cog import cog import glob import os ast = '*' first_lower = lambda s: s[:1].lower() + s[1:] if s else '' fnames = glob.glob("../messages/" + ast + ".proto") for fn in fnames: rawname = os.path.splitext(os.path.basename(fn))[0] cog.outl('#include "%s.pb.h"' % rawname) ]]]*/ #include "AnswerChallengeMessage.pb.h" #include "AuthAckMessage.pb.h" #include "ChallengeResponseMessage.pb.h" #include "ConsumeFromQueueMessage.pb.h" #include "ConsumeResponseMessage.pb.h" #include "GetChallengeMessage.pb.h" #include "GossipMessage.pb.h" #include "GossipNodeData.pb.h" #include "Identifier.pb.h" #include "NodeClock.pb.h" #include "ProxyPublishMessage.pb.h" #include "ProxyPublishResponseMessage.pb.h" #include "PublishMessage.pb.h" #include "PublishResponseMessage.pb.h" #include "StampMessage.pb.h" #include "VectorClock.pb.h" //[[[end]]] #include <boost/make_shared.hpp> #include <boost/lexical_cast.hpp> #include <array> using sopmq::error::network_error; using namespace std::placeholders; using namespace sopmq::util; namespace ba = boost::asio; namespace sopmq { namespace message { const int messageutil::HEADER_SIZE = sizeof(uint16_t) + sizeof(uint32_t); boost::pool<> messageutil::s_mem_pool(messageutil::HEADER_SIZE); void messageutil::read_message(boost::asio::io_service& ioService, boost::asio::ip::tcp::socket& socket, network_status_callback errorCallback, message_dispatcher& dispatcher, uint32_t maxSize) { message_context_ptr ctx(std::make_shared<message_context>(dispatcher)); ctx->status_callback = errorCallback; ctx->max_message_size = maxSize; //read the message type netutil::read_u16(ioService, socket, std::bind(&messageutil::after_read_message_type, std::ref(ioService), std::ref(socket), ctx, _1, _2)); } void messageutil::after_read_message_type(boost::asio::io_service& ioService, boost::asio::ip::tcp::socket& socket, message_context_ptr ctx, uint16_t messageType, const boost::system::error_code& error) { if (error) { on_read_error(ctx, shared::net::network_operation_result::from_error_code(error)); return; } //validate the message if (messageType <= sopmq::message::MT_INVALID || messageType >= sopmq::message::MT_INVALID_OUT_OF_RANGE) { on_read_error(ctx, shared::net::network_operation_result(shared::net::ET_INVALID_TYPE, network_error("Message type " + boost::lexical_cast<std::string>(messageType) + " is invalid"))); return; } ctx->type = (sopmq::message::message_type)messageType; //read the message size netutil::read_u32(ioService, socket, std::bind(&messageutil::after_read_message_size, std::ref(ioService), std::ref(socket), ctx, _1, _2)); } void messageutil::after_read_message_size(boost::asio::io_service& ioService, boost::asio::ip::tcp::socket& socket, message_context_ptr ctx, uint32_t messageSize, const boost::system::error_code& error) { if (error) { on_read_error(ctx, shared::net::network_operation_result::from_error_code(error)); return; } //sanity check the size if (messageSize > ctx->max_message_size) { LOG_SRC(error) << "message is too large (" << messageSize / 1024 << " MB)"; on_read_error(ctx, shared::net::network_operation_result(shared::net::ET_INVALID_TYPE, network_error("Message was too large"))); return; } //alloc boost::shared_array<char> buffer(new char[messageSize]); ctx->message_buffer = buffer; ctx->message_size = messageSize; boost::asio::async_read(socket, boost::asio::buffer(buffer.get(), messageSize), std::bind(&messageutil::after_read_message_content, std::ref(ioService), std::ref(socket), ctx, _1, _2)); } void messageutil::after_read_message_content(boost::asio::io_service& ioService, boost::asio::ip::tcp::socket& socket, message_context_ptr ctx, const boost::system::error_code& error, std::size_t bytes_transferred) { if (error) { on_read_error(ctx, shared::net::network_operation_result::from_error_code(error)); return; } BOOST_ASSERT(bytes_transferred == ctx->message_size); //we have a message, decode it messageutil::switch_dispatch(ctx, shared::net::network_operation_result::success()); } void messageutil::switch_dispatch(message_context_ptr ctx, const shared::net::network_operation_result& result) { switch (ctx->type) { /*[[[cog def underscore(name): import re s1 = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', name) return re.sub('([a-z0-9])([A-Z])', r'\1_\2', s1).upper() for fn in fnames: rawname = os.path.splitext(os.path.basename(fn))[0] enumName = rawname if enumName.endswith('Message'): enumName = enumName[:-7] else: continue enumName = underscore(enumName) cog.outl("case MT_%s:" % enumName) cog.outl(" messageutil::template_dispatch(ctx, result, std::make_shared<%s>());" % rawname) cog.outl(" break;"); cog.outl(""); ]]]*/ case MT_ANSWER_CHALLENGE: messageutil::template_dispatch(ctx, result, std::make_shared<AnswerChallengeMessage>()); break; case MT_AUTH_ACK: messageutil::template_dispatch(ctx, result, std::make_shared<AuthAckMessage>()); break; case MT_CHALLENGE_RESPONSE: messageutil::template_dispatch(ctx, result, std::make_shared<ChallengeResponseMessage>()); break; case MT_CONSUME_FROM_QUEUE: messageutil::template_dispatch(ctx, result, std::make_shared<ConsumeFromQueueMessage>()); break; case MT_CONSUME_RESPONSE: messageutil::template_dispatch(ctx, result, std::make_shared<ConsumeResponseMessage>()); break; case MT_GET_CHALLENGE: messageutil::template_dispatch(ctx, result, std::make_shared<GetChallengeMessage>()); break; case MT_GOSSIP: messageutil::template_dispatch(ctx, result, std::make_shared<GossipMessage>()); break; case MT_PROXY_PUBLISH: messageutil::template_dispatch(ctx, result, std::make_shared<ProxyPublishMessage>()); break; case MT_PROXY_PUBLISH_RESPONSE: messageutil::template_dispatch(ctx, result, std::make_shared<ProxyPublishResponseMessage>()); break; case MT_PUBLISH: messageutil::template_dispatch(ctx, result, std::make_shared<PublishMessage>()); break; case MT_PUBLISH_RESPONSE: messageutil::template_dispatch(ctx, result, std::make_shared<PublishResponseMessage>()); break; case MT_STAMP: messageutil::template_dispatch(ctx, result, std::make_shared<StampMessage>()); break; //[[[end]]] default: throw std::runtime_error("messageutil::switch_dispatch() unhandled message type " + boost::lexical_cast<std::string>(ctx->type)); } } Identifier* messageutil::build_id(std::uint32_t id, std::uint32_t inReplyTo) { auto newId = new Identifier(); newId->set_id(id); newId->set_in_reply_to(inReplyTo); return newId; } void messageutil::write_message(sopmq::message::message_type type, Message_ptr message, boost::asio::io_service &ioService, boost::asio::ip::tcp::socket &socket, network_status_callback statusCallback) { char* headerBuffer = static_cast<char*>(s_mem_pool.malloc()); header_buf_ptr headerPtr(headerBuffer, &messageutil::free_mem); send_context_ptr ctx = std::make_shared<send_context>(std::move(headerPtr), std::string(), statusCallback); message->SerializeToString(&ctx->message_buf); auto netId = boost::asio::detail::socket_ops::host_to_network_short(type); auto netSize = boost::asio::detail::socket_ops::host_to_network_long(ctx->message_buf.size()); BOOST_STATIC_ASSERT(sizeof(netId) == 2); BOOST_STATIC_ASSERT(sizeof(netSize) == 4); BOOST_STATIC_ASSERT(sizeof(netId) + sizeof(netSize) == HEADER_SIZE); std::memcpy(ctx->header_buf.get(), &netId, sizeof(netId)); std::memcpy(ctx->header_buf.get() + sizeof(netId), &netSize, sizeof(netSize)); std::array<ba::const_buffer, 2> bufs = { { ba::buffer(ctx->header_buf.get(), HEADER_SIZE), ba::buffer(ctx->message_buf) } }; ba::async_write(socket, bufs, std::bind(&messageutil::after_write_message, ctx, _1, _2)); } void messageutil::after_write_message(send_context_ptr ctx, const boost::system::error_code& error, size_t bytesTransferred) { if (error) { ctx->status_callback(shared::net::network_operation_result::from_error_code(error)); } else { ctx->status_callback(shared::net::network_operation_result::success()); } } void messageutil::free_mem(char *mem) { if (mem != nullptr) { s_mem_pool.free(mem); } } void messageutil::on_read_error(message_context_ptr ctx, const shared::net::network_operation_result& error) { ctx->status_callback(error); cancel_all_with_error(ctx->dispatcher, error); } void messageutil::cancel_all_with_error(message_dispatcher& dispatcher, const shared::net::network_operation_result& error) { dispatcher.cancel_all_with_error(error); } } }
[ "david.daeschler@gmail.com" ]
david.daeschler@gmail.com
0a12b95edfc69d440970ddc9b25741168df5d4ad
5de6fe0500057d2b69412ea11dde8fd17462183f
/SwarmDeployment/Obstacle.cpp
8aea491347b18787b6a70a4a7ded24f4394eac09
[]
no_license
FlyTheThings/AutonomousSurveillanceBachelorThesis
3525e180039e11f80e0466929bec2ae07c4e8ae6
a937db536429d16d73bbfdb882bd4e893fbfd66f
refs/heads/master
2021-01-11T16:34:25.419672
2016-06-15T21:37:07
2016-06-15T21:37:07
null
0
0
null
null
null
null
UTF-8
C++
false
false
674
cpp
#include "Obstacle.h" namespace App { Obstacle::Obstacle(int x, int y, int width, int height) { rectangle = make_shared<Rectangle>(x, y, width, height); } Obstacle::Obstacle(const Obstacle& other): rectangle(make_shared<Rectangle>(*other.rectangle.get())) { } shared_ptr<Obstacle> Obstacle::fromJson(mValue data) { auto height = data.get_obj().at("height").get_int(); auto width = data.get_obj().at("width").get_int(); auto location = data.get_obj().at("location"); auto x = location.get_obj().at("x").get_int(); auto y = location.get_obj().at("y").get_int(); return make_shared<Obstacle>(x, y, width, height); } Obstacle::~Obstacle() { } }
[ "memnarch@seznam.cz" ]
memnarch@seznam.cz
7e3c5826a35014336652a7c093100446776d1bd1
c94d91845142a8009ef0d1afd9e33c6a3881a8f6
/session12a/Bote.h
79b4bc66cc6e61ff6ff6687f69c7ace2bcfde052
[]
no_license
utec-cs1102-2019-2/ec1-jesus-osorio
47035330c1a811161f6bc4e374e35a129b07536a
50528941327248a1505a2eebd9351250d1b23903
refs/heads/master
2020-07-24T11:40:01.160645
2019-11-13T20:54:52
2019-11-13T20:54:52
207,911,150
0
0
null
null
null
null
UTF-8
C++
false
false
192
h
#ifndef SESSION12A_BOTE_H #define SESSION12A_BOTE_H #include "Vehiculo.h" class Bote:Vehiculo { public: void avanzar(); void retroceder(); Bote(); }; #endif //SESSION12A_BOTE_H
[ "54951251+jesus-osorio@users.noreply.github.com" ]
54951251+jesus-osorio@users.noreply.github.com
e2f827e1f594459369827e5f66895a350a842b90
6b8424c1535d194180586fcf341ffdd144524c9c
/TipoHora.h
cf90460c83c968be5aa78d811b7ccc1c9c62157e
[]
no_license
ale2511/restofing
417624719fb7af26f1d26c6278946bbfade0a2a6
69309db643525caa3f8964edcd444b8a0c30470c
refs/heads/master
2020-06-09T04:38:05.210296
2019-06-24T13:08:11
2019-06-24T13:08:11
193,371,442
0
0
null
null
null
null
UTF-8
C++
false
false
412
h
#ifndef TIPOHORA_H #define TIPOHORA_H #include <string> #include <cstdlib> #include <iostream> #include <map> #include <set> using namespace std; enum TipoEstado {Pedido, Encamino, Entregado, Cancelado}; class TipoHora{ private: int segundos; int minuto; int hora; public: TipoHora(int = 0, int = 0, int = 0); int getSegundos(); int getMinuto(); int getHora(); }; #endif
[ "noreply@github.com" ]
ale2511.noreply@github.com
d4d447079b08e4881eb47a631ed8e2f921178803
4cc71d496705c3f0b52bd3c868d951a299fbceee
/Projeto_PA_Unidade3/dialognew.h
7287c28f402aecd1fcf6ae8a51b72a15f2e36bc6
[]
no_license
PablioMartins/Projeto_Unidade3
4d6df6663cab1cd24b690f3e47ebbeb9c7037e86
6afaaef4d94f7b8fa44ecb3cf6bdf48fcd962f09
refs/heads/main
2023-02-03T14:01:13.389709
2020-12-18T10:08:20
2020-12-18T10:08:20
322,450,369
0
0
null
null
null
null
UTF-8
C++
false
false
1,287
h
#ifndef DIALOGNEW_H #define DIALOGNEW_H #include <QDialog> namespace Ui { class DialogNew; } /** * @brief The DialogNew class é responsável pela caixa de dialogo para criação de uma nova * escultura, com novos parametros de tamanho. */ class DialogNew : public QDialog { Q_OBJECT public: /** * @brief DialogNew e o construtor da classe * @param parent informa de quem a classe é parente */ explicit DialogNew(QWidget *parent = nullptr); /** * @brief ~DialogNew e o destrutor da classe */ ~DialogNew(); /** * @brief lerdimX é a função responsável por retornar o novo tamanho na dimensão "X" * @return o novo tamanho na direção "X" */ int lerdimX(); /** * @brief lerdimY é a função responsável por retornar o novo tamanho na dimensão "Y" * @return o novo tamanho na direção "Y" */ int lerdimY(); /** * @brief lerdimZ é a função responsável por retornar o novo tamanho na dimensão "Z" * @return o novo tamanho na direção "Y" */ int lerdimZ(); private: /** * @brief ui váriavel de classe responsável por interagir com os elementos presentes * na janela do diálogo */ Ui::DialogNew *ui; }; #endif // DIALOGNEW_H
[ "pablo.martins.anjos@hotmail.com" ]
pablo.martins.anjos@hotmail.com
bc62da5b9f8f5821e5385e3487e5d39cd50e355d
dea2f80dc73231dd22906990a4fc7a49b512f1fb
/assignments/lab/lab3-debugging1/ex3/complex.h
16e13413b868971a94aca0703a0feda28e3c555d
[ "BSD-3-Clause" ]
permissive
aguerrero/ucr-cs100
c8bab7d41af1c11db0d6ad1a63c1851f9e5dadad
1d326351e26fc9e03d61a0eca923a39aa0cea81a
refs/heads/master
2020-04-07T22:25:17.715608
2014-09-03T07:35:30
2014-09-03T07:35:30
22,438,037
1
0
null
null
null
null
UTF-8
C++
false
false
902
h
#ifndef CLASS_COMPLEX #define CLASS_COMPLEX #include <iostream> using namespace std; class Complex { // friend functions friend ostream& operator<< (ostream&, const Complex&); private: double real_; double imag_; public: Complex (double = 0.0, double = 0.0); void setReal(double); void setImag(double); double getReal() const; double getImag() const; bool operator== (const Complex&); bool operator< (const Complex&); }; inline Complex::Complex(double rl, double im) : real_(0), imag_(0) {} inline void Complex::setReal(double rl) { imag_ = rl; } inline void Complex::setImag(double im) { real_ = im; } inline double Complex::getReal() const { return real_; } inline double Complex::getImag() const { return imag_; } ostream& operator<< (ostream&, const Complex&); Complex operator+ (const Complex&, const Complex&); #endif
[ "mike@izbicki.me" ]
mike@izbicki.me
947345a15db42ef986f8d30644b1907e1a1a693c
d3cf4cb0b9e870bf6cd1c1ed6910d7af3a2ca590
/UnitTests/Session.cpp
f38ef4b2cdb430a7f1892f1f318b6d383dcea4ac
[]
no_license
Lapo9/PerformanceLog
c6561bce6f2110be881b3b5a8b1309aa779bf034
0f6da052894637776089428a32d77401e3d0c869
refs/heads/master
2021-02-25T23:53:17.320509
2020-04-16T18:08:59
2020-04-16T18:08:59
245,478,345
1
0
null
null
null
null
UTF-8
C++
false
false
2,281
cpp
#include<fstream> #include <cstdio> #include "pch.h" #include "CppUnitTest.h" #define private public #include "..\src\Session.h" #include "..\src\Session.cpp" #define METHOD_CLASS(methodClass) TEST_METHOD_ATTRIBUTE(L"MethodClass", methodClass) #define TEST_METHOD_SIGNATURE(methodClass, methodName) BEGIN_TEST_METHOD_ATTRIBUTE (methodName)\ METHOD_CLASS(methodClass)\ END_TEST_METHOD_ATTRIBUTE()\ TEST_METHOD(methodName) #define WRITE_TO_DEFAULT_SESSION_STRING "This is a simple\nstring\n\t\tHi!\n" #define SAVE_ONCE_STRING "This is a simple\nstring\n\t\tHi!\n" #define SAVE_ONCE_FILE "save_once.txt" #define SAVE_TWICE_STRING_1 "First save\n" #define SAVE_TWICE_STRING_2 "Second save\n" #define SAVE_TWICE_FILE "save_twice.txt" using namespace Microsoft::VisualStudio::CppUnitTestFramework; namespace pl = performance_log; namespace UnitTests { TEST_CLASS(Session) { public: #pragma region write TEST_METHOD_SIGNATURE(L"write", write_to_default_session) { pl::Session session; std::string measurement = WRITE_TO_DEFAULT_SESSION_STRING; session.write(measurement); Assert::IsTrue(session.measurements == WRITE_TO_DEFAULT_SESSION_STRING); } #pragma endregion #pragma region save TEST_METHOD_SIGNATURE(L"save", save_once) { { pl::Session session {SAVE_ONCE_FILE}; session.measurements = SAVE_ONCE_STRING; session.save(); } std::ifstream previoulsySaved {SAVE_ONCE_FILE}; std::string measurements((std::istreambuf_iterator<char>(previoulsySaved)), std::istreambuf_iterator<char>()); Assert::IsTrue(measurements == SAVE_ONCE_STRING); } TEST_METHOD_SIGNATURE(L"save", save_twice) { { pl::Session session {SAVE_TWICE_FILE}; session.measurements = SAVE_TWICE_STRING_1; session.save(); session.measurements = SAVE_TWICE_STRING_2; session.save(); } std::ifstream previoulsySaved {SAVE_TWICE_FILE}; std::string measurements((std::istreambuf_iterator<char>(previoulsySaved)), std::istreambuf_iterator<char>()); std::string test = SAVE_TWICE_STRING_1 SAVE_TWICE_STRING_2; Assert::IsTrue(measurements == SAVE_TWICE_STRING_1 SAVE_TWICE_STRING_2); } #pragma endregion TEST_METHOD_CLEANUP(clean_up) { std::remove(SAVE_ONCE_FILE); std::remove(SAVE_TWICE_FILE); } }; }
[ "lapofalcone@gmail.com" ]
lapofalcone@gmail.com
a51b1895701faec1131aa9f2881ebc9e0455dc1d
eaeb65bf02bfe9d4671570a3f6d7f773289fa4a9
/OpenCL/arg.hpp
e7bd20290d75d8854a91922f60d0a16bd4f7cc95
[]
no_license
brandon-kohn/opencl
386dc257501c87e1af53f135acdd013624c6a556
ec1dbffa98cba2ef1960b29d4e3b0f25d095154b
refs/heads/master
2020-05-19T13:11:25.284718
2014-05-15T00:27:29
2014-05-15T00:27:29
null
0
0
null
null
null
null
UTF-8
C++
false
false
7,518
hpp
// // Copyright Brandon Kohn 2012 // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // #if !defined(OPENCL_ARG_HPP_INCLUDE) #define OPENCL_ARG_HPP_INCLUDE #include "./memory.hpp" #include <boost/call_traits.hpp> #include <boost/type_traits/is_const.hpp> #include <boost/range/iterator_range.hpp> #include <boost/array.hpp> #include <boost/utility/enable_if.hpp> #include <vector> namespace opencl { template <typename T, typename EnableIf=void> struct void_pointer_mapper { typedef void* result_type; //! Default memory mapper assumes POD semantics. static std::size_t size(T const&) { return sizeof(T); } //! convert the type to a void* static void* apply(T const& a) { return (void*)&a; } }; template <typename T> struct void_pointer_mapper<T*, void> { typedef void* result_type; static std::size_t size(T* const&) { return sizeof(T); } static void* apply(T*& a) { return (void*)a; } }; template <typename T, int N> struct void_pointer_mapper< boost::array<T,N> > { typedef void* result_type; //! Default memory mapper assumes POD semantics. static std::size_t size(boost::array<T,N> const&) { return sizeof(T)*N; } //! convert the type to a void* static void* apply(boost::array<T,N>& a) { return (void*)&a[0]; } }; //! \brief specify types which must map into a buffer. //! The default case is treated like a POD and will be copied bitwise onto the device. template <typename T, typename EnableIf=void> struct is_buffer_type : boost::false_type{}; //! specify a few types which must map into a buffer for transfer onto the device. template <typename T> struct is_buffer_type< boost::range_iterator<T> > : boost::true_type{}; template <typename T, typename Alloc> struct is_buffer_type< std::vector<T, Alloc> > : boost::true_type{}; template <typename T, typename Alloc> struct is_buffer_type< boost::container::vector<T, Alloc> > : boost::true_type{}; template <typename T, int Size> struct is_buffer_type< boost::array<T, Size> > : boost::true_type{}; template <typename T> struct is_buffer_type< T, typename boost::enable_if< boost::is_pointer<T> >::type > : boost::true_type{}; template <typename T, typename EnableIf=void> struct arg { arg(int argN, typename boost::call_traits<T>::reference a, const cl_context&, const cl_command_queue&, const cl_kernel& knl) : a(a) , knl(knl) , argN(argN) { cl_int status = clSetKernelArg( knl, argN, void_pointer_mapper<T>::size(a), void_pointer_mapper<T>::apply(a)); assert(status == CL_SUCCESS); } private: template <typename S, int N, typename ResultType> friend struct function_impl; //! Args of this type cannot be read back. void read_data(){} int argN; cl_kernel knl; T& a; }; template <typename T> struct arg<T, typename boost::enable_if< is_buffer_type<T> >::type> { arg(int argN, typename boost::call_traits<T>::reference a, const cl_context& ctx, const cl_command_queue& cmdQ, const cl_kernel& knl) : a(a) , cmdQ(cmdQ) , knl(knl) , argN(argN) , mem(ctx, (boost::is_const<T>::value ? CL_MEM_READ_ONLY : CL_MEM_READ_WRITE), void_pointer_mapper<T>::size(a), void_pointer_mapper<T>::apply(a)) { enqueue_map_buffer(CL_TRUE, CL_MAP_WRITE); wait_for_map_event(); memcpy(memPtr, void_pointer_mapper<T>::apply(a), mem.get_size()); enqueue_unmap_buffer(); wait_for_unmap_event(); cl_int status = clSetKernelArg( knl, argN, sizeof(cl_mem), (void*)&mem); assert(status == CL_SUCCESS); } private: template <typename S, int N, typename ResultType> friend struct function_impl; void read_data() { //! Cannot read back const values. if( !boost::is_const<T>::value ) { enqueue_map_buffer(CL_TRUE, CL_MAP_READ); wait_for_map_event(); memcpy(void_pointer_mapper<T>::apply(a), memPtr, mem.get_size()); enqueue_unmap_buffer(); wait_for_unmap_event(); } } void enqueue_map_buffer(cl_bool blocking, cl_map_flags flags) { cl_int status; memPtr = clEnqueueMapBuffer( cmdQ , mem , blocking , flags , 0 , mem.get_size() , 0 , 0 , &mapEvt , &status); if( status != CL_SUCCESS ) throw std::bad_exception(); } void enqueue_unmap_buffer() { cl_int status = clEnqueueUnmapMemObject( cmdQ , mem , memPtr , 0 , 0 , &unmapEvt); if( status != CL_SUCCESS ) throw std::bad_exception(); } void wait_for_map_event() { cl_int status = CL_SUCCESS; cl_int eventStatus = CL_QUEUED; while(eventStatus != CL_COMPLETE) { status = clGetEventInfo( mapEvt, CL_EVENT_COMMAND_EXECUTION_STATUS, sizeof(cl_int), &eventStatus, 0); assert(status == CL_SUCCESS); } status = clReleaseEvent(mapEvt); assert(status == CL_SUCCESS); } void wait_for_unmap_event() { cl_int status = CL_SUCCESS; cl_int eventStatus = CL_QUEUED; while(eventStatus != CL_COMPLETE) { status = clGetEventInfo( unmapEvt, CL_EVENT_COMMAND_EXECUTION_STATUS, sizeof(cl_int), &eventStatus, 0); assert(status == CL_SUCCESS); } status = clReleaseEvent(unmapEvt); assert(status == CL_SUCCESS); } int argN; cl_command_queue cmdQ; cl_kernel knl; T& a; void* memPtr; memory mem; cl_event mapEvt; cl_event unmapEvt; }; } #endif//OPENCL_ARG_HPP_INCLUDE
[ "blkohn@hotmail.com" ]
blkohn@hotmail.com
f0db691a1f1f5b6fa02f981ccc38ac4108df131b
1f45cb982e070114cc8d4ff57e544ecee5fd850e
/sprite.h
a4255a590f9972e35e341e2c56d7413c988667e1
[]
no_license
Silver-Hawk/air3d
6d2fd53ed8bb7464295b5f37d64e6685b84c1cb3
04b6b0774f871a9c7aca2ad9329c7f572003174f
refs/heads/master
2016-09-05T10:41:41.788504
2015-01-05T19:03:04
2015-01-05T19:03:04
26,532,613
0
0
null
null
null
null
UTF-8
C++
false
false
3,775
h
#ifndef __SPRITE_CLASS_H__ #define __SPRITE_CLASS_H__ #include "texturehelper.h" #include "bufferHelper.h" class sprite { public: bufferhelper bufHelp; int texture; float scale; float xscale, yscale; int animation; int animationIndex; sprite(){ } sprite(int texindex){ GLfloat quad[] = { -1.0f, -1.0f, 0.0f, 1.0f, -1.0f, 0.0f, 1.0f, 1.0f, 0.0f, 1.0f, 1.0f, 0.0f, -1.0f, 1.0f, 0.0f, -1.0f, -1.0f, 0.0f }; GLfloat texcoords[] = { 0.0f, 0.0f, 1.0f, 0.0f, 1.0f, 1.0f, 1.0f, 1.0f, 0.0f, 1.0f, 0.0f, 0.0f }; texture = texindex; bufHelp = bufferhelper(2); bufHelp.bind(0, 18 * sizeof (GLfloat), quad, 3); bufHelp.bind(1, 12 * sizeof (GLfloat), texcoords, 2); animation = 0; animationIndex = 0; } //scales uniformly sprite(int texindex, float s){ GLfloat quad[] = { -1.0f, -1.0f, 0.0f, 1.0f, -1.0f, 0.0f, 1.0f, 1.0f, 0.0f, 1.0f, 1.0f, 0.0f, -1.0f, 1.0f, 0.0f, -1.0f, -1.0f, 0.0f }; GLfloat texcoords[] = { 0.0f, 0.0f, 1.0f, 0.0f, 1.0f, 1.0f, 1.0f, 1.0f, 0.0f, 1.0f, 0.0f, 0.0f }; texture = texindex; scale = s; for(int i = 0; i < 18; i++) quad[i] *= s; bufHelp = bufferhelper(2); bufHelp.bind(0, 18 * sizeof (GLfloat), quad, 3); bufHelp.bind(1, 12 * sizeof (GLfloat), texcoords, 2); animation = 0; animationIndex = 0; } //scales differently sprite(int texindex, float xs, float ys, float s){ GLfloat quad[] = { -1.0f, -1.0f, 0.0f, 1.0f, -1.0f, 0.0f, 1.0f, 1.0f, 0.0f, 1.0f, 1.0f, 0.0f, -1.0f, 1.0f, 0.0f, -1.0f, -1.0f, 0.0f }; GLfloat texcoords[] = { 0.0f, 0.0f, 1.0f, 0.0f, 1.0f, 1.0f, 1.0f, 1.0f, 0.0f, 1.0f, 0.0f, 0.0f }; texture = texindex; scale = s; xs *=s; ys *=s; //scale on x for(int i = 0; i < 18; i+=3) quad[i] *= xs; //scale on y for(int i = 1; i < 18; i+=3) quad[i] *= ys; bufHelp = bufferhelper(2); bufHelp.bind(0, 18 * sizeof (GLfloat), quad, 3); bufHelp.bind(1, 12 * sizeof (GLfloat), texcoords, 2); animation = 0; animationIndex = 0; } void bindTexCords5x5Animation(int index){ int x = index % 5; int y = index / 5; GLfloat texcoords[] = { 0.0f+((float)x/5.0f), 0.0f+((float)y/5.0f), 0.2f+((float)x/5.0f), 0.0f+((float)y/5.0f), 0.2f+((float)x/5.0f), 0.2f+((float)y/5.0f), 0.2f+((float)x/5.0f), 0.2f+((float)y/5.0f), 0.0f+((float)x/5.0f), 0.2f+((float)y/5.0f), 0.0f+((float)x/5.0f), 0.0f+((float)y/5.0f) }; bufHelp.bind(1, 12 * sizeof (GLfloat), texcoords, 2); } void startAnimation(int size){ animation = size; animationIndex = 0; } bool animationDone(){ if(animation && animationIndex >= animation) return true; return false; } void bind(){ AC->bindTexture(texture); bufHelp.bindAll(); } void draw(){ bind(); if(animation == 25) bindTexCords5x5Animation(animationIndex++); glDrawArrays (GL_TRIANGLES, 0, 6); } float getScale(){ return scale; } }; #endif
[ "jbl@sundhedsdoktor.dk" ]
jbl@sundhedsdoktor.dk
069e1f919d8854d8880fd76e9bd7dfeccce6b392
3a79dbfa4745da59ee29ecc880970dad4c4e412d
/shufflenetv2_final_solution/acceleartor_hls_final_solution/optimize_onlybram_left/syn/systemc/subconv_1x1_4_p_5.cpp
f8da9bf8f256005d8e5b215ff8cd38addf15a627
[]
no_license
loujc/shufflenetv2_hls
90d70607e973a52fb846142fcf63ab3dcbc135d1
db1e0901cefa4bb1b5a2d3a9c717cbd633210aa4
refs/heads/master
2021-10-28T04:36:11.344041
2019-04-22T02:10:58
2019-04-22T02:10:58
null
0
0
null
null
null
null
UTF-8
C++
false
false
184,864
cpp
#include "subconv_1x1_4_p.h" #include "AESL_pkg.h" using namespace std; namespace ap_rtl { void subconv_1x1_4_p::thread_p_Val2_110_19_fu_12409_p2() { p_Val2_110_19_fu_12409_p2 = (!tmp_334_19_fu_12398_p1.read().is_01() || !p_Val2_109_19_fu_12388_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_334_19_fu_12398_p1.read()) + sc_biguint<8>(p_Val2_109_19_fu_12388_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_110_1_243_fu_14855_p3() { p_Val2_110_1_243_fu_14855_p3 = (!underflow_16_1_reg_30855.read()[0].is_01())? sc_lv<8>(): ((underflow_16_1_reg_30855.read()[0].to_bool())? ap_const_lv8_80: p_Val2_110_1_reg_29745.read()); } void subconv_1x1_4_p::thread_p_Val2_110_1_fu_10224_p2() { p_Val2_110_1_fu_10224_p2 = (!tmp_334_1_fu_10213_p1.read().is_01() || !p_Val2_109_1_fu_10203_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_334_1_fu_10213_p1.read()) + sc_biguint<8>(p_Val2_109_1_fu_10203_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_110_20_283_fu_15455_p3() { p_Val2_110_20_283_fu_15455_p3 = (!underflow_16_20_reg_31355.read()[0].is_01())? sc_lv<8>(): ((underflow_16_20_reg_31355.read()[0].to_bool())? ap_const_lv8_80: p_Val2_110_20_reg_30685.read()); } void subconv_1x1_4_p::thread_p_Val2_110_20_fu_12524_p2() { p_Val2_110_20_fu_12524_p2 = (!tmp_334_20_fu_12513_p1.read().is_01() || !p_Val2_109_20_fu_12503_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_334_20_fu_12513_p1.read()) + sc_biguint<8>(p_Val2_109_20_fu_12503_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_110_21_285_fu_15485_p3() { p_Val2_110_21_285_fu_15485_p3 = (!underflow_16_21_reg_31380.read()[0].is_01())? sc_lv<8>(): ((underflow_16_21_reg_31380.read()[0].to_bool())? ap_const_lv8_80: p_Val2_110_21_reg_30732.read()); } void subconv_1x1_4_p::thread_p_Val2_110_21_fu_12639_p2() { p_Val2_110_21_fu_12639_p2 = (!tmp_334_21_fu_12628_p1.read().is_01() || !p_Val2_109_21_fu_12618_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_334_21_fu_12628_p1.read()) + sc_biguint<8>(p_Val2_109_21_fu_12618_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_110_22_287_fu_15515_p3() { p_Val2_110_22_287_fu_15515_p3 = (!underflow_16_22_reg_31405.read()[0].is_01())? sc_lv<8>(): ((underflow_16_22_reg_31405.read()[0].to_bool())? ap_const_lv8_80: p_Val2_110_22_reg_30779.read()); } void subconv_1x1_4_p::thread_p_Val2_110_22_fu_12754_p2() { p_Val2_110_22_fu_12754_p2 = (!tmp_334_22_fu_12743_p1.read().is_01() || !p_Val2_109_22_fu_12733_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_334_22_fu_12743_p1.read()) + sc_biguint<8>(p_Val2_109_22_fu_12733_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_110_2_245_fu_14885_p3() { p_Val2_110_2_245_fu_14885_p3 = (!underflow_16_2_reg_30880.read()[0].is_01())? sc_lv<8>(): ((underflow_16_2_reg_30880.read()[0].to_bool())? ap_const_lv8_80: p_Val2_110_2_reg_29792.read()); } void subconv_1x1_4_p::thread_p_Val2_110_2_fu_10339_p2() { p_Val2_110_2_fu_10339_p2 = (!tmp_334_2_fu_10328_p1.read().is_01() || !p_Val2_109_2_fu_10318_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_334_2_fu_10328_p1.read()) + sc_biguint<8>(p_Val2_109_2_fu_10318_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_110_3_247_fu_14915_p3() { p_Val2_110_3_247_fu_14915_p3 = (!underflow_16_3_reg_30905.read()[0].is_01())? sc_lv<8>(): ((underflow_16_3_reg_30905.read()[0].to_bool())? ap_const_lv8_80: p_Val2_110_3_reg_29839.read()); } void subconv_1x1_4_p::thread_p_Val2_110_3_fu_10454_p2() { p_Val2_110_3_fu_10454_p2 = (!tmp_334_3_fu_10443_p1.read().is_01() || !p_Val2_109_3_fu_10433_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_334_3_fu_10443_p1.read()) + sc_biguint<8>(p_Val2_109_3_fu_10433_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_110_4_249_fu_14945_p3() { p_Val2_110_4_249_fu_14945_p3 = (!underflow_16_4_reg_30930.read()[0].is_01())? sc_lv<8>(): ((underflow_16_4_reg_30930.read()[0].to_bool())? ap_const_lv8_80: p_Val2_110_4_reg_29886.read()); } void subconv_1x1_4_p::thread_p_Val2_110_4_fu_10569_p2() { p_Val2_110_4_fu_10569_p2 = (!tmp_334_4_fu_10558_p1.read().is_01() || !p_Val2_109_4_fu_10548_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_334_4_fu_10558_p1.read()) + sc_biguint<8>(p_Val2_109_4_fu_10548_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_110_5_251_fu_14975_p3() { p_Val2_110_5_251_fu_14975_p3 = (!underflow_16_5_reg_30955.read()[0].is_01())? sc_lv<8>(): ((underflow_16_5_reg_30955.read()[0].to_bool())? ap_const_lv8_80: p_Val2_110_5_reg_29933.read()); } void subconv_1x1_4_p::thread_p_Val2_110_5_fu_10684_p2() { p_Val2_110_5_fu_10684_p2 = (!tmp_334_5_fu_10673_p1.read().is_01() || !p_Val2_109_5_fu_10663_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_334_5_fu_10673_p1.read()) + sc_biguint<8>(p_Val2_109_5_fu_10663_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_110_6_253_fu_15005_p3() { p_Val2_110_6_253_fu_15005_p3 = (!underflow_16_6_reg_30980.read()[0].is_01())? sc_lv<8>(): ((underflow_16_6_reg_30980.read()[0].to_bool())? ap_const_lv8_80: p_Val2_110_6_reg_29980.read()); } void subconv_1x1_4_p::thread_p_Val2_110_6_fu_10799_p2() { p_Val2_110_6_fu_10799_p2 = (!tmp_334_6_fu_10788_p1.read().is_01() || !p_Val2_109_6_fu_10778_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_334_6_fu_10788_p1.read()) + sc_biguint<8>(p_Val2_109_6_fu_10778_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_110_7_255_fu_15035_p3() { p_Val2_110_7_255_fu_15035_p3 = (!underflow_16_7_reg_31005.read()[0].is_01())? sc_lv<8>(): ((underflow_16_7_reg_31005.read()[0].to_bool())? ap_const_lv8_80: p_Val2_110_7_reg_30027.read()); } void subconv_1x1_4_p::thread_p_Val2_110_7_fu_10914_p2() { p_Val2_110_7_fu_10914_p2 = (!tmp_334_7_fu_10903_p1.read().is_01() || !p_Val2_109_7_fu_10893_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_334_7_fu_10903_p1.read()) + sc_biguint<8>(p_Val2_109_7_fu_10893_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_110_8_257_fu_15065_p3() { p_Val2_110_8_257_fu_15065_p3 = (!underflow_16_8_reg_31030.read()[0].is_01())? sc_lv<8>(): ((underflow_16_8_reg_31030.read()[0].to_bool())? ap_const_lv8_80: p_Val2_110_8_reg_30074.read()); } void subconv_1x1_4_p::thread_p_Val2_110_8_fu_11029_p2() { p_Val2_110_8_fu_11029_p2 = (!tmp_334_8_fu_11018_p1.read().is_01() || !p_Val2_109_8_fu_11008_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_334_8_fu_11018_p1.read()) + sc_biguint<8>(p_Val2_109_8_fu_11008_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_110_9_259_fu_15095_p3() { p_Val2_110_9_259_fu_15095_p3 = (!underflow_16_9_reg_31055.read()[0].is_01())? sc_lv<8>(): ((underflow_16_9_reg_31055.read()[0].to_bool())? ap_const_lv8_80: p_Val2_110_9_reg_30121.read()); } void subconv_1x1_4_p::thread_p_Val2_110_9_fu_11144_p2() { p_Val2_110_9_fu_11144_p2 = (!tmp_334_9_fu_11133_p1.read().is_01() || !p_Val2_109_9_fu_11123_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_334_9_fu_11133_p1.read()) + sc_biguint<8>(p_Val2_109_9_fu_11123_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_110_mux_10_fu_15149_p3() { p_Val2_110_mux_10_fu_15149_p3 = (!brmerge_i_i_i1_s_reg_31110.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i1_s_reg_31110.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_110_10_reg_30215.read()); } void subconv_1x1_4_p::thread_p_Val2_110_mux_11_fu_15179_p3() { p_Val2_110_mux_11_fu_15179_p3 = (!brmerge_i_i_i1_11_reg_31135.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i1_11_reg_31135.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_110_11_reg_30262.read()); } void subconv_1x1_4_p::thread_p_Val2_110_mux_12_fu_15209_p3() { p_Val2_110_mux_12_fu_15209_p3 = (!brmerge_i_i_i1_12_reg_31160.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i1_12_reg_31160.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_110_12_reg_30309.read()); } void subconv_1x1_4_p::thread_p_Val2_110_mux_13_fu_15239_p3() { p_Val2_110_mux_13_fu_15239_p3 = (!brmerge_i_i_i1_13_reg_31185.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i1_13_reg_31185.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_110_13_reg_30356.read()); } void subconv_1x1_4_p::thread_p_Val2_110_mux_14_fu_15269_p3() { p_Val2_110_mux_14_fu_15269_p3 = (!brmerge_i_i_i1_14_reg_31210.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i1_14_reg_31210.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_110_14_reg_30403.read()); } void subconv_1x1_4_p::thread_p_Val2_110_mux_15_fu_15299_p3() { p_Val2_110_mux_15_fu_15299_p3 = (!brmerge_i_i_i1_15_reg_31235.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i1_15_reg_31235.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_110_15_reg_30450.read()); } void subconv_1x1_4_p::thread_p_Val2_110_mux_16_fu_15329_p3() { p_Val2_110_mux_16_fu_15329_p3 = (!brmerge_i_i_i1_16_reg_31260.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i1_16_reg_31260.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_110_16_reg_30497.read()); } void subconv_1x1_4_p::thread_p_Val2_110_mux_17_fu_15359_p3() { p_Val2_110_mux_17_fu_15359_p3 = (!brmerge_i_i_i1_17_reg_31285.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i1_17_reg_31285.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_110_17_reg_30544.read()); } void subconv_1x1_4_p::thread_p_Val2_110_mux_18_fu_15389_p3() { p_Val2_110_mux_18_fu_15389_p3 = (!brmerge_i_i_i1_18_reg_31310.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i1_18_reg_31310.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_110_18_reg_30591.read()); } void subconv_1x1_4_p::thread_p_Val2_110_mux_19_fu_15419_p3() { p_Val2_110_mux_19_fu_15419_p3 = (!brmerge_i_i_i1_19_reg_31335.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i1_19_reg_31335.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_110_19_reg_30638.read()); } void subconv_1x1_4_p::thread_p_Val2_110_mux_1_fu_14849_p3() { p_Val2_110_mux_1_fu_14849_p3 = (!brmerge_i_i_i1_1_reg_30860.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i1_1_reg_30860.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_110_1_reg_29745.read()); } void subconv_1x1_4_p::thread_p_Val2_110_mux_20_fu_15449_p3() { p_Val2_110_mux_20_fu_15449_p3 = (!brmerge_i_i_i1_20_reg_31360.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i1_20_reg_31360.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_110_20_reg_30685.read()); } void subconv_1x1_4_p::thread_p_Val2_110_mux_21_fu_15479_p3() { p_Val2_110_mux_21_fu_15479_p3 = (!brmerge_i_i_i1_21_reg_31385.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i1_21_reg_31385.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_110_21_reg_30732.read()); } void subconv_1x1_4_p::thread_p_Val2_110_mux_22_fu_15509_p3() { p_Val2_110_mux_22_fu_15509_p3 = (!brmerge_i_i_i1_22_reg_31410.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i1_22_reg_31410.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_110_22_reg_30779.read()); } void subconv_1x1_4_p::thread_p_Val2_110_mux_2_fu_14879_p3() { p_Val2_110_mux_2_fu_14879_p3 = (!brmerge_i_i_i1_2_reg_30885.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i1_2_reg_30885.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_110_2_reg_29792.read()); } void subconv_1x1_4_p::thread_p_Val2_110_mux_3_fu_14909_p3() { p_Val2_110_mux_3_fu_14909_p3 = (!brmerge_i_i_i1_3_reg_30910.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i1_3_reg_30910.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_110_3_reg_29839.read()); } void subconv_1x1_4_p::thread_p_Val2_110_mux_4_fu_14939_p3() { p_Val2_110_mux_4_fu_14939_p3 = (!brmerge_i_i_i1_4_reg_30935.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i1_4_reg_30935.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_110_4_reg_29886.read()); } void subconv_1x1_4_p::thread_p_Val2_110_mux_5_fu_14969_p3() { p_Val2_110_mux_5_fu_14969_p3 = (!brmerge_i_i_i1_5_reg_30960.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i1_5_reg_30960.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_110_5_reg_29933.read()); } void subconv_1x1_4_p::thread_p_Val2_110_mux_6_fu_14999_p3() { p_Val2_110_mux_6_fu_14999_p3 = (!brmerge_i_i_i1_6_reg_30985.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i1_6_reg_30985.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_110_6_reg_29980.read()); } void subconv_1x1_4_p::thread_p_Val2_110_mux_7_fu_15029_p3() { p_Val2_110_mux_7_fu_15029_p3 = (!brmerge_i_i_i1_7_reg_31010.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i1_7_reg_31010.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_110_7_reg_30027.read()); } void subconv_1x1_4_p::thread_p_Val2_110_mux_8_fu_15059_p3() { p_Val2_110_mux_8_fu_15059_p3 = (!brmerge_i_i_i1_8_reg_31035.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i1_8_reg_31035.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_110_8_reg_30074.read()); } void subconv_1x1_4_p::thread_p_Val2_110_mux_9_fu_15089_p3() { p_Val2_110_mux_9_fu_15089_p3 = (!brmerge_i_i_i1_9_reg_31060.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i1_9_reg_31060.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_110_9_reg_30121.read()); } void subconv_1x1_4_p::thread_p_Val2_110_mux_fu_14819_p3() { p_Val2_110_mux_fu_14819_p3 = (!brmerge_i_i_i1_reg_30835.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i1_reg_30835.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_36_reg_29698.read()); } void subconv_1x1_4_p::thread_p_Val2_110_mux_s_fu_15119_p3() { p_Val2_110_mux_s_fu_15119_p3 = (!brmerge_i_i_i1_10_reg_31085.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i1_10_reg_31085.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_110_s_reg_30168.read()); } void subconv_1x1_4_p::thread_p_Val2_110_s_261_fu_15125_p3() { p_Val2_110_s_261_fu_15125_p3 = (!underflow_16_s_reg_31080.read()[0].is_01())? sc_lv<8>(): ((underflow_16_s_reg_31080.read()[0].to_bool())? ap_const_lv8_80: p_Val2_110_s_reg_30168.read()); } void subconv_1x1_4_p::thread_p_Val2_110_s_fu_11259_p2() { p_Val2_110_s_fu_11259_p2 = (!tmp_334_s_fu_11248_p1.read().is_01() || !p_Val2_109_s_fu_11238_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_334_s_fu_11248_p1.read()) + sc_biguint<8>(p_Val2_109_s_fu_11238_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_113_10_fu_22612_p2() { p_Val2_113_10_fu_22612_p2 = (!tmp_341_10_fu_22608_p1.read().is_01() || !tmp_340_10_cast_fu_22604_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_341_10_fu_22608_p1.read()) + sc_bigint<17>(tmp_340_10_cast_fu_22604_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_113_11_fu_22727_p2() { p_Val2_113_11_fu_22727_p2 = (!tmp_341_11_fu_22723_p1.read().is_01() || !tmp_340_11_cast_fu_22719_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_341_11_fu_22723_p1.read()) + sc_bigint<17>(tmp_340_11_cast_fu_22719_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_113_12_fu_22842_p2() { p_Val2_113_12_fu_22842_p2 = (!tmp_341_12_fu_22838_p1.read().is_01() || !tmp_340_12_cast_fu_22834_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_341_12_fu_22838_p1.read()) + sc_bigint<17>(tmp_340_12_cast_fu_22834_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_113_13_fu_22957_p2() { p_Val2_113_13_fu_22957_p2 = (!tmp_341_13_fu_22953_p1.read().is_01() || !tmp_340_13_cast_fu_22949_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_341_13_fu_22953_p1.read()) + sc_bigint<17>(tmp_340_13_cast_fu_22949_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_113_14_fu_23072_p2() { p_Val2_113_14_fu_23072_p2 = (!tmp_341_14_fu_23068_p1.read().is_01() || !tmp_340_14_cast_fu_23064_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_341_14_fu_23068_p1.read()) + sc_bigint<17>(tmp_340_14_cast_fu_23064_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_113_15_fu_23187_p2() { p_Val2_113_15_fu_23187_p2 = (!tmp_341_15_fu_23183_p1.read().is_01() || !tmp_340_15_cast_fu_23179_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_341_15_fu_23183_p1.read()) + sc_bigint<17>(tmp_340_15_cast_fu_23179_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_113_16_fu_23302_p2() { p_Val2_113_16_fu_23302_p2 = (!tmp_341_16_fu_23298_p1.read().is_01() || !tmp_340_16_cast_fu_23294_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_341_16_fu_23298_p1.read()) + sc_bigint<17>(tmp_340_16_cast_fu_23294_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_113_17_fu_23417_p2() { p_Val2_113_17_fu_23417_p2 = (!tmp_341_17_fu_23413_p1.read().is_01() || !tmp_340_17_cast_fu_23409_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_341_17_fu_23413_p1.read()) + sc_bigint<17>(tmp_340_17_cast_fu_23409_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_113_18_fu_23532_p2() { p_Val2_113_18_fu_23532_p2 = (!tmp_341_18_fu_23528_p1.read().is_01() || !tmp_340_18_cast_fu_23524_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_341_18_fu_23528_p1.read()) + sc_bigint<17>(tmp_340_18_cast_fu_23524_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_113_19_fu_23647_p2() { p_Val2_113_19_fu_23647_p2 = (!tmp_341_19_fu_23643_p1.read().is_01() || !tmp_340_19_cast_fu_23639_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_341_19_fu_23643_p1.read()) + sc_bigint<17>(tmp_340_19_cast_fu_23639_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_113_1_fu_21462_p2() { p_Val2_113_1_fu_21462_p2 = (!tmp_341_1_fu_21458_p1.read().is_01() || !tmp_340_1_cast_fu_21454_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_341_1_fu_21458_p1.read()) + sc_bigint<17>(tmp_340_1_cast_fu_21454_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_113_20_fu_23762_p2() { p_Val2_113_20_fu_23762_p2 = (!tmp_341_20_fu_23758_p1.read().is_01() || !tmp_340_20_cast_fu_23754_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_341_20_fu_23758_p1.read()) + sc_bigint<17>(tmp_340_20_cast_fu_23754_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_113_21_fu_23877_p2() { p_Val2_113_21_fu_23877_p2 = (!tmp_341_21_fu_23873_p1.read().is_01() || !tmp_340_21_cast_fu_23869_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_341_21_fu_23873_p1.read()) + sc_bigint<17>(tmp_340_21_cast_fu_23869_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_113_22_fu_23992_p2() { p_Val2_113_22_fu_23992_p2 = (!tmp_341_22_fu_23988_p1.read().is_01() || !tmp_340_22_cast_fu_23984_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_341_22_fu_23988_p1.read()) + sc_bigint<17>(tmp_340_22_cast_fu_23984_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_113_2_fu_21577_p2() { p_Val2_113_2_fu_21577_p2 = (!tmp_341_2_fu_21573_p1.read().is_01() || !tmp_340_2_cast_fu_21569_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_341_2_fu_21573_p1.read()) + sc_bigint<17>(tmp_340_2_cast_fu_21569_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_113_3_fu_21692_p2() { p_Val2_113_3_fu_21692_p2 = (!tmp_341_3_fu_21688_p1.read().is_01() || !tmp_340_3_cast_fu_21684_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_341_3_fu_21688_p1.read()) + sc_bigint<17>(tmp_340_3_cast_fu_21684_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_113_4_fu_21807_p2() { p_Val2_113_4_fu_21807_p2 = (!tmp_341_4_fu_21803_p1.read().is_01() || !tmp_340_4_cast_fu_21799_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_341_4_fu_21803_p1.read()) + sc_bigint<17>(tmp_340_4_cast_fu_21799_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_113_5_fu_21922_p2() { p_Val2_113_5_fu_21922_p2 = (!tmp_341_5_fu_21918_p1.read().is_01() || !tmp_340_5_cast_fu_21914_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_341_5_fu_21918_p1.read()) + sc_bigint<17>(tmp_340_5_cast_fu_21914_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_113_6_fu_22037_p2() { p_Val2_113_6_fu_22037_p2 = (!tmp_341_6_fu_22033_p1.read().is_01() || !tmp_340_6_cast_fu_22029_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_341_6_fu_22033_p1.read()) + sc_bigint<17>(tmp_340_6_cast_fu_22029_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_113_7_fu_22152_p2() { p_Val2_113_7_fu_22152_p2 = (!tmp_341_7_fu_22148_p1.read().is_01() || !tmp_340_7_cast_fu_22144_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_341_7_fu_22148_p1.read()) + sc_bigint<17>(tmp_340_7_cast_fu_22144_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_113_8_fu_22267_p2() { p_Val2_113_8_fu_22267_p2 = (!tmp_341_8_fu_22263_p1.read().is_01() || !tmp_340_8_cast_fu_22259_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_341_8_fu_22263_p1.read()) + sc_bigint<17>(tmp_340_8_cast_fu_22259_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_113_9_fu_22382_p2() { p_Val2_113_9_fu_22382_p2 = (!tmp_341_9_fu_22378_p1.read().is_01() || !tmp_340_9_cast_fu_22374_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_341_9_fu_22378_p1.read()) + sc_bigint<17>(tmp_340_9_cast_fu_22374_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_113_s_fu_22497_p2() { p_Val2_113_s_fu_22497_p2 = (!tmp_341_s_fu_22493_p1.read().is_01() || !tmp_340_cast_fu_22489_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_341_s_fu_22493_p1.read()) + sc_bigint<17>(tmp_340_cast_fu_22489_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_114_10_fu_22626_p4() { p_Val2_114_10_fu_22626_p4 = p_Val2_113_10_fu_22612_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_114_11_fu_22741_p4() { p_Val2_114_11_fu_22741_p4 = p_Val2_113_11_fu_22727_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_114_12_fu_22856_p4() { p_Val2_114_12_fu_22856_p4 = p_Val2_113_12_fu_22842_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_114_13_fu_22971_p4() { p_Val2_114_13_fu_22971_p4 = p_Val2_113_13_fu_22957_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_114_14_fu_23086_p4() { p_Val2_114_14_fu_23086_p4 = p_Val2_113_14_fu_23072_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_114_15_fu_23201_p4() { p_Val2_114_15_fu_23201_p4 = p_Val2_113_15_fu_23187_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_114_16_fu_23316_p4() { p_Val2_114_16_fu_23316_p4 = p_Val2_113_16_fu_23302_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_114_17_fu_23431_p4() { p_Val2_114_17_fu_23431_p4 = p_Val2_113_17_fu_23417_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_114_18_fu_23546_p4() { p_Val2_114_18_fu_23546_p4 = p_Val2_113_18_fu_23532_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_114_19_fu_23661_p4() { p_Val2_114_19_fu_23661_p4 = p_Val2_113_19_fu_23647_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_114_1_fu_21476_p4() { p_Val2_114_1_fu_21476_p4 = p_Val2_113_1_fu_21462_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_114_20_fu_23776_p4() { p_Val2_114_20_fu_23776_p4 = p_Val2_113_20_fu_23762_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_114_21_fu_23891_p4() { p_Val2_114_21_fu_23891_p4 = p_Val2_113_21_fu_23877_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_114_22_fu_24006_p4() { p_Val2_114_22_fu_24006_p4 = p_Val2_113_22_fu_23992_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_114_2_fu_21591_p4() { p_Val2_114_2_fu_21591_p4 = p_Val2_113_2_fu_21577_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_114_3_fu_21706_p4() { p_Val2_114_3_fu_21706_p4 = p_Val2_113_3_fu_21692_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_114_4_fu_21821_p4() { p_Val2_114_4_fu_21821_p4 = p_Val2_113_4_fu_21807_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_114_5_fu_21936_p4() { p_Val2_114_5_fu_21936_p4 = p_Val2_113_5_fu_21922_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_114_6_fu_22051_p4() { p_Val2_114_6_fu_22051_p4 = p_Val2_113_6_fu_22037_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_114_7_fu_22166_p4() { p_Val2_114_7_fu_22166_p4 = p_Val2_113_7_fu_22152_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_114_8_fu_22281_p4() { p_Val2_114_8_fu_22281_p4 = p_Val2_113_8_fu_22267_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_114_9_fu_22396_p4() { p_Val2_114_9_fu_22396_p4 = p_Val2_113_9_fu_22382_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_114_s_fu_22511_p4() { p_Val2_114_s_fu_22511_p4 = p_Val2_113_s_fu_22497_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_115_10_312_fu_26428_p3() { p_Val2_115_10_312_fu_26428_p3 = (!underflow_18_10_reg_35341.read()[0].is_01())? sc_lv<8>(): ((underflow_18_10_reg_35341.read()[0].to_bool())? ap_const_lv8_80: p_Val2_115_10_reg_34451.read()); } void subconv_1x1_4_p::thread_p_Val2_115_10_fu_22647_p2() { p_Val2_115_10_fu_22647_p2 = (!tmp_344_10_fu_22636_p1.read().is_01() || !p_Val2_114_10_fu_22626_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_344_10_fu_22636_p1.read()) + sc_biguint<8>(p_Val2_114_10_fu_22626_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_115_11_314_fu_26458_p3() { p_Val2_115_11_314_fu_26458_p3 = (!underflow_18_11_reg_35366.read()[0].is_01())? sc_lv<8>(): ((underflow_18_11_reg_35366.read()[0].to_bool())? ap_const_lv8_80: p_Val2_115_11_reg_34498.read()); } void subconv_1x1_4_p::thread_p_Val2_115_11_fu_22762_p2() { p_Val2_115_11_fu_22762_p2 = (!tmp_344_11_fu_22751_p1.read().is_01() || !p_Val2_114_11_fu_22741_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_344_11_fu_22751_p1.read()) + sc_biguint<8>(p_Val2_114_11_fu_22741_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_115_12_316_fu_26488_p3() { p_Val2_115_12_316_fu_26488_p3 = (!underflow_18_12_reg_35391.read()[0].is_01())? sc_lv<8>(): ((underflow_18_12_reg_35391.read()[0].to_bool())? ap_const_lv8_80: p_Val2_115_12_reg_34545.read()); } void subconv_1x1_4_p::thread_p_Val2_115_12_fu_22877_p2() { p_Val2_115_12_fu_22877_p2 = (!tmp_344_12_fu_22866_p1.read().is_01() || !p_Val2_114_12_fu_22856_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_344_12_fu_22866_p1.read()) + sc_biguint<8>(p_Val2_114_12_fu_22856_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_115_13_318_fu_26518_p3() { p_Val2_115_13_318_fu_26518_p3 = (!underflow_18_13_reg_35416.read()[0].is_01())? sc_lv<8>(): ((underflow_18_13_reg_35416.read()[0].to_bool())? ap_const_lv8_80: p_Val2_115_13_reg_34592.read()); } void subconv_1x1_4_p::thread_p_Val2_115_13_fu_22992_p2() { p_Val2_115_13_fu_22992_p2 = (!tmp_344_13_fu_22981_p1.read().is_01() || !p_Val2_114_13_fu_22971_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_344_13_fu_22981_p1.read()) + sc_biguint<8>(p_Val2_114_13_fu_22971_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_115_14_320_fu_26548_p3() { p_Val2_115_14_320_fu_26548_p3 = (!underflow_18_14_reg_35441.read()[0].is_01())? sc_lv<8>(): ((underflow_18_14_reg_35441.read()[0].to_bool())? ap_const_lv8_80: p_Val2_115_14_reg_34639.read()); } void subconv_1x1_4_p::thread_p_Val2_115_14_fu_23107_p2() { p_Val2_115_14_fu_23107_p2 = (!tmp_344_14_fu_23096_p1.read().is_01() || !p_Val2_114_14_fu_23086_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_344_14_fu_23096_p1.read()) + sc_biguint<8>(p_Val2_114_14_fu_23086_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_115_15_322_fu_26578_p3() { p_Val2_115_15_322_fu_26578_p3 = (!underflow_18_15_reg_35466.read()[0].is_01())? sc_lv<8>(): ((underflow_18_15_reg_35466.read()[0].to_bool())? ap_const_lv8_80: p_Val2_115_15_reg_34686.read()); } void subconv_1x1_4_p::thread_p_Val2_115_15_fu_23222_p2() { p_Val2_115_15_fu_23222_p2 = (!tmp_344_15_fu_23211_p1.read().is_01() || !p_Val2_114_15_fu_23201_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_344_15_fu_23211_p1.read()) + sc_biguint<8>(p_Val2_114_15_fu_23201_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_115_16_324_fu_26608_p3() { p_Val2_115_16_324_fu_26608_p3 = (!underflow_18_16_reg_35491.read()[0].is_01())? sc_lv<8>(): ((underflow_18_16_reg_35491.read()[0].to_bool())? ap_const_lv8_80: p_Val2_115_16_reg_34733.read()); } void subconv_1x1_4_p::thread_p_Val2_115_16_fu_23337_p2() { p_Val2_115_16_fu_23337_p2 = (!tmp_344_16_fu_23326_p1.read().is_01() || !p_Val2_114_16_fu_23316_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_344_16_fu_23326_p1.read()) + sc_biguint<8>(p_Val2_114_16_fu_23316_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_115_17_326_fu_26638_p3() { p_Val2_115_17_326_fu_26638_p3 = (!underflow_18_17_reg_35516.read()[0].is_01())? sc_lv<8>(): ((underflow_18_17_reg_35516.read()[0].to_bool())? ap_const_lv8_80: p_Val2_115_17_reg_34780.read()); } void subconv_1x1_4_p::thread_p_Val2_115_17_fu_23452_p2() { p_Val2_115_17_fu_23452_p2 = (!tmp_344_17_fu_23441_p1.read().is_01() || !p_Val2_114_17_fu_23431_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_344_17_fu_23441_p1.read()) + sc_biguint<8>(p_Val2_114_17_fu_23431_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_115_18_328_fu_26668_p3() { p_Val2_115_18_328_fu_26668_p3 = (!underflow_18_18_reg_35541.read()[0].is_01())? sc_lv<8>(): ((underflow_18_18_reg_35541.read()[0].to_bool())? ap_const_lv8_80: p_Val2_115_18_reg_34827.read()); } void subconv_1x1_4_p::thread_p_Val2_115_18_fu_23567_p2() { p_Val2_115_18_fu_23567_p2 = (!tmp_344_18_fu_23556_p1.read().is_01() || !p_Val2_114_18_fu_23546_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_344_18_fu_23556_p1.read()) + sc_biguint<8>(p_Val2_114_18_fu_23546_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_115_19_330_fu_26698_p3() { p_Val2_115_19_330_fu_26698_p3 = (!underflow_18_19_reg_35566.read()[0].is_01())? sc_lv<8>(): ((underflow_18_19_reg_35566.read()[0].to_bool())? ap_const_lv8_80: p_Val2_115_19_reg_34874.read()); } void subconv_1x1_4_p::thread_p_Val2_115_19_fu_23682_p2() { p_Val2_115_19_fu_23682_p2 = (!tmp_344_19_fu_23671_p1.read().is_01() || !p_Val2_114_19_fu_23661_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_344_19_fu_23671_p1.read()) + sc_biguint<8>(p_Val2_114_19_fu_23661_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_115_1_292_fu_26128_p3() { p_Val2_115_1_292_fu_26128_p3 = (!underflow_18_1_reg_35091.read()[0].is_01())? sc_lv<8>(): ((underflow_18_1_reg_35091.read()[0].to_bool())? ap_const_lv8_80: p_Val2_115_1_reg_33981.read()); } void subconv_1x1_4_p::thread_p_Val2_115_1_fu_21497_p2() { p_Val2_115_1_fu_21497_p2 = (!tmp_344_1_fu_21486_p1.read().is_01() || !p_Val2_114_1_fu_21476_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_344_1_fu_21486_p1.read()) + sc_biguint<8>(p_Val2_114_1_fu_21476_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_115_20_332_fu_26728_p3() { p_Val2_115_20_332_fu_26728_p3 = (!underflow_18_20_reg_35591.read()[0].is_01())? sc_lv<8>(): ((underflow_18_20_reg_35591.read()[0].to_bool())? ap_const_lv8_80: p_Val2_115_20_reg_34921.read()); } void subconv_1x1_4_p::thread_p_Val2_115_20_fu_23797_p2() { p_Val2_115_20_fu_23797_p2 = (!tmp_344_20_fu_23786_p1.read().is_01() || !p_Val2_114_20_fu_23776_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_344_20_fu_23786_p1.read()) + sc_biguint<8>(p_Val2_114_20_fu_23776_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_115_21_334_fu_26758_p3() { p_Val2_115_21_334_fu_26758_p3 = (!underflow_18_21_reg_35616.read()[0].is_01())? sc_lv<8>(): ((underflow_18_21_reg_35616.read()[0].to_bool())? ap_const_lv8_80: p_Val2_115_21_reg_34968.read()); } void subconv_1x1_4_p::thread_p_Val2_115_21_fu_23912_p2() { p_Val2_115_21_fu_23912_p2 = (!tmp_344_21_fu_23901_p1.read().is_01() || !p_Val2_114_21_fu_23891_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_344_21_fu_23901_p1.read()) + sc_biguint<8>(p_Val2_114_21_fu_23891_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_115_22_336_fu_26788_p3() { p_Val2_115_22_336_fu_26788_p3 = (!underflow_18_22_reg_35641.read()[0].is_01())? sc_lv<8>(): ((underflow_18_22_reg_35641.read()[0].to_bool())? ap_const_lv8_80: p_Val2_115_22_reg_35015.read()); } void subconv_1x1_4_p::thread_p_Val2_115_22_fu_24027_p2() { p_Val2_115_22_fu_24027_p2 = (!tmp_344_22_fu_24016_p1.read().is_01() || !p_Val2_114_22_fu_24006_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_344_22_fu_24016_p1.read()) + sc_biguint<8>(p_Val2_114_22_fu_24006_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_115_2_294_fu_26158_p3() { p_Val2_115_2_294_fu_26158_p3 = (!underflow_18_2_reg_35116.read()[0].is_01())? sc_lv<8>(): ((underflow_18_2_reg_35116.read()[0].to_bool())? ap_const_lv8_80: p_Val2_115_2_reg_34028.read()); } void subconv_1x1_4_p::thread_p_Val2_115_2_fu_21612_p2() { p_Val2_115_2_fu_21612_p2 = (!tmp_344_2_fu_21601_p1.read().is_01() || !p_Val2_114_2_fu_21591_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_344_2_fu_21601_p1.read()) + sc_biguint<8>(p_Val2_114_2_fu_21591_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_115_3_296_fu_26188_p3() { p_Val2_115_3_296_fu_26188_p3 = (!underflow_18_3_reg_35141.read()[0].is_01())? sc_lv<8>(): ((underflow_18_3_reg_35141.read()[0].to_bool())? ap_const_lv8_80: p_Val2_115_3_reg_34075.read()); } void subconv_1x1_4_p::thread_p_Val2_115_3_fu_21727_p2() { p_Val2_115_3_fu_21727_p2 = (!tmp_344_3_fu_21716_p1.read().is_01() || !p_Val2_114_3_fu_21706_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_344_3_fu_21716_p1.read()) + sc_biguint<8>(p_Val2_114_3_fu_21706_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_115_4_298_fu_26218_p3() { p_Val2_115_4_298_fu_26218_p3 = (!underflow_18_4_reg_35166.read()[0].is_01())? sc_lv<8>(): ((underflow_18_4_reg_35166.read()[0].to_bool())? ap_const_lv8_80: p_Val2_115_4_reg_34122.read()); } void subconv_1x1_4_p::thread_p_Val2_115_4_fu_21842_p2() { p_Val2_115_4_fu_21842_p2 = (!tmp_344_4_fu_21831_p1.read().is_01() || !p_Val2_114_4_fu_21821_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_344_4_fu_21831_p1.read()) + sc_biguint<8>(p_Val2_114_4_fu_21821_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_115_5_300_fu_26248_p3() { p_Val2_115_5_300_fu_26248_p3 = (!underflow_18_5_reg_35191.read()[0].is_01())? sc_lv<8>(): ((underflow_18_5_reg_35191.read()[0].to_bool())? ap_const_lv8_80: p_Val2_115_5_reg_34169.read()); } void subconv_1x1_4_p::thread_p_Val2_115_5_fu_21957_p2() { p_Val2_115_5_fu_21957_p2 = (!tmp_344_5_fu_21946_p1.read().is_01() || !p_Val2_114_5_fu_21936_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_344_5_fu_21946_p1.read()) + sc_biguint<8>(p_Val2_114_5_fu_21936_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_115_6_302_fu_26278_p3() { p_Val2_115_6_302_fu_26278_p3 = (!underflow_18_6_reg_35216.read()[0].is_01())? sc_lv<8>(): ((underflow_18_6_reg_35216.read()[0].to_bool())? ap_const_lv8_80: p_Val2_115_6_reg_34216.read()); } void subconv_1x1_4_p::thread_p_Val2_115_6_fu_22072_p2() { p_Val2_115_6_fu_22072_p2 = (!tmp_344_6_fu_22061_p1.read().is_01() || !p_Val2_114_6_fu_22051_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_344_6_fu_22061_p1.read()) + sc_biguint<8>(p_Val2_114_6_fu_22051_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_115_7_304_fu_26308_p3() { p_Val2_115_7_304_fu_26308_p3 = (!underflow_18_7_reg_35241.read()[0].is_01())? sc_lv<8>(): ((underflow_18_7_reg_35241.read()[0].to_bool())? ap_const_lv8_80: p_Val2_115_7_reg_34263.read()); } void subconv_1x1_4_p::thread_p_Val2_115_7_fu_22187_p2() { p_Val2_115_7_fu_22187_p2 = (!tmp_344_7_fu_22176_p1.read().is_01() || !p_Val2_114_7_fu_22166_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_344_7_fu_22176_p1.read()) + sc_biguint<8>(p_Val2_114_7_fu_22166_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_115_8_306_fu_26338_p3() { p_Val2_115_8_306_fu_26338_p3 = (!underflow_18_8_reg_35266.read()[0].is_01())? sc_lv<8>(): ((underflow_18_8_reg_35266.read()[0].to_bool())? ap_const_lv8_80: p_Val2_115_8_reg_34310.read()); } void subconv_1x1_4_p::thread_p_Val2_115_8_fu_22302_p2() { p_Val2_115_8_fu_22302_p2 = (!tmp_344_8_fu_22291_p1.read().is_01() || !p_Val2_114_8_fu_22281_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_344_8_fu_22291_p1.read()) + sc_biguint<8>(p_Val2_114_8_fu_22281_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_115_9_308_fu_26368_p3() { p_Val2_115_9_308_fu_26368_p3 = (!underflow_18_9_reg_35291.read()[0].is_01())? sc_lv<8>(): ((underflow_18_9_reg_35291.read()[0].to_bool())? ap_const_lv8_80: p_Val2_115_9_reg_34357.read()); } void subconv_1x1_4_p::thread_p_Val2_115_9_fu_22417_p2() { p_Val2_115_9_fu_22417_p2 = (!tmp_344_9_fu_22406_p1.read().is_01() || !p_Val2_114_9_fu_22396_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_344_9_fu_22406_p1.read()) + sc_biguint<8>(p_Val2_114_9_fu_22396_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_115_mux_10_fu_26422_p3() { p_Val2_115_mux_10_fu_26422_p3 = (!brmerge_i_i_i2_s_reg_35346.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i2_s_reg_35346.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_115_10_reg_34451.read()); } void subconv_1x1_4_p::thread_p_Val2_115_mux_11_fu_26452_p3() { p_Val2_115_mux_11_fu_26452_p3 = (!brmerge_i_i_i2_11_reg_35371.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i2_11_reg_35371.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_115_11_reg_34498.read()); } void subconv_1x1_4_p::thread_p_Val2_115_mux_12_fu_26482_p3() { p_Val2_115_mux_12_fu_26482_p3 = (!brmerge_i_i_i2_12_reg_35396.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i2_12_reg_35396.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_115_12_reg_34545.read()); } void subconv_1x1_4_p::thread_p_Val2_115_mux_13_fu_26512_p3() { p_Val2_115_mux_13_fu_26512_p3 = (!brmerge_i_i_i2_13_reg_35421.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i2_13_reg_35421.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_115_13_reg_34592.read()); } void subconv_1x1_4_p::thread_p_Val2_115_mux_14_fu_26542_p3() { p_Val2_115_mux_14_fu_26542_p3 = (!brmerge_i_i_i2_14_reg_35446.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i2_14_reg_35446.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_115_14_reg_34639.read()); } void subconv_1x1_4_p::thread_p_Val2_115_mux_15_fu_26572_p3() { p_Val2_115_mux_15_fu_26572_p3 = (!brmerge_i_i_i2_15_reg_35471.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i2_15_reg_35471.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_115_15_reg_34686.read()); } void subconv_1x1_4_p::thread_p_Val2_115_mux_16_fu_26602_p3() { p_Val2_115_mux_16_fu_26602_p3 = (!brmerge_i_i_i2_16_reg_35496.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i2_16_reg_35496.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_115_16_reg_34733.read()); } void subconv_1x1_4_p::thread_p_Val2_115_mux_17_fu_26632_p3() { p_Val2_115_mux_17_fu_26632_p3 = (!brmerge_i_i_i2_17_reg_35521.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i2_17_reg_35521.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_115_17_reg_34780.read()); } void subconv_1x1_4_p::thread_p_Val2_115_mux_18_fu_26662_p3() { p_Val2_115_mux_18_fu_26662_p3 = (!brmerge_i_i_i2_18_reg_35546.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i2_18_reg_35546.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_115_18_reg_34827.read()); } void subconv_1x1_4_p::thread_p_Val2_115_mux_19_fu_26692_p3() { p_Val2_115_mux_19_fu_26692_p3 = (!brmerge_i_i_i2_19_reg_35571.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i2_19_reg_35571.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_115_19_reg_34874.read()); } void subconv_1x1_4_p::thread_p_Val2_115_mux_1_fu_26122_p3() { p_Val2_115_mux_1_fu_26122_p3 = (!brmerge_i_i_i2_1_reg_35096.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i2_1_reg_35096.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_115_1_reg_33981.read()); } void subconv_1x1_4_p::thread_p_Val2_115_mux_20_fu_26722_p3() { p_Val2_115_mux_20_fu_26722_p3 = (!brmerge_i_i_i2_20_reg_35596.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i2_20_reg_35596.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_115_20_reg_34921.read()); } void subconv_1x1_4_p::thread_p_Val2_115_mux_21_fu_26752_p3() { p_Val2_115_mux_21_fu_26752_p3 = (!brmerge_i_i_i2_21_reg_35621.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i2_21_reg_35621.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_115_21_reg_34968.read()); } void subconv_1x1_4_p::thread_p_Val2_115_mux_22_fu_26782_p3() { p_Val2_115_mux_22_fu_26782_p3 = (!brmerge_i_i_i2_22_reg_35646.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i2_22_reg_35646.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_115_22_reg_35015.read()); } void subconv_1x1_4_p::thread_p_Val2_115_mux_2_fu_26152_p3() { p_Val2_115_mux_2_fu_26152_p3 = (!brmerge_i_i_i2_2_reg_35121.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i2_2_reg_35121.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_115_2_reg_34028.read()); } void subconv_1x1_4_p::thread_p_Val2_115_mux_3_fu_26182_p3() { p_Val2_115_mux_3_fu_26182_p3 = (!brmerge_i_i_i2_3_reg_35146.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i2_3_reg_35146.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_115_3_reg_34075.read()); } void subconv_1x1_4_p::thread_p_Val2_115_mux_4_fu_26212_p3() { p_Val2_115_mux_4_fu_26212_p3 = (!brmerge_i_i_i2_4_reg_35171.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i2_4_reg_35171.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_115_4_reg_34122.read()); } void subconv_1x1_4_p::thread_p_Val2_115_mux_5_fu_26242_p3() { p_Val2_115_mux_5_fu_26242_p3 = (!brmerge_i_i_i2_5_reg_35196.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i2_5_reg_35196.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_115_5_reg_34169.read()); } void subconv_1x1_4_p::thread_p_Val2_115_mux_6_fu_26272_p3() { p_Val2_115_mux_6_fu_26272_p3 = (!brmerge_i_i_i2_6_reg_35221.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i2_6_reg_35221.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_115_6_reg_34216.read()); } void subconv_1x1_4_p::thread_p_Val2_115_mux_7_fu_26302_p3() { p_Val2_115_mux_7_fu_26302_p3 = (!brmerge_i_i_i2_7_reg_35246.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i2_7_reg_35246.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_115_7_reg_34263.read()); } void subconv_1x1_4_p::thread_p_Val2_115_mux_8_fu_26332_p3() { p_Val2_115_mux_8_fu_26332_p3 = (!brmerge_i_i_i2_8_reg_35271.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i2_8_reg_35271.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_115_8_reg_34310.read()); } void subconv_1x1_4_p::thread_p_Val2_115_mux_9_fu_26362_p3() { p_Val2_115_mux_9_fu_26362_p3 = (!brmerge_i_i_i2_9_reg_35296.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i2_9_reg_35296.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_115_9_reg_34357.read()); } void subconv_1x1_4_p::thread_p_Val2_115_mux_fu_26092_p3() { p_Val2_115_mux_fu_26092_p3 = (!brmerge_i_i_i2_reg_35071.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i2_reg_35071.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_39_reg_33934.read()); } void subconv_1x1_4_p::thread_p_Val2_115_mux_s_fu_26392_p3() { p_Val2_115_mux_s_fu_26392_p3 = (!brmerge_i_i_i2_10_reg_35321.read()[0].is_01())? sc_lv<8>(): ((brmerge_i_i_i2_10_reg_35321.read()[0].to_bool())? ap_const_lv8_7F: p_Val2_115_s_reg_34404.read()); } void subconv_1x1_4_p::thread_p_Val2_115_s_310_fu_26398_p3() { p_Val2_115_s_310_fu_26398_p3 = (!underflow_18_s_reg_35316.read()[0].is_01())? sc_lv<8>(): ((underflow_18_s_reg_35316.read()[0].to_bool())? ap_const_lv8_80: p_Val2_115_s_reg_34404.read()); } void subconv_1x1_4_p::thread_p_Val2_115_s_fu_22532_p2() { p_Val2_115_s_fu_22532_p2 = (!tmp_344_s_fu_22521_p1.read().is_01() || !p_Val2_114_s_fu_22511_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_344_s_fu_22521_p1.read()) + sc_biguint<8>(p_Val2_114_s_fu_22511_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_1_fu_14825_p3() { p_Val2_1_fu_14825_p3 = (!underflow_16_reg_30830.read()[0].is_01())? sc_lv<8>(): ((underflow_16_reg_30830.read()[0].to_bool())? ap_const_lv8_80: p_Val2_36_reg_29698.read()); } void subconv_1x1_4_p::thread_p_Val2_29_fu_4616_p4() { p_Val2_29_fu_4616_p4 = p_Val2_s_fu_4602_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_2_fu_26098_p3() { p_Val2_2_fu_26098_p3 = (!underflow_18_reg_35066.read()[0].is_01())? sc_lv<8>(): ((underflow_18_reg_35066.read()[0].to_bool())? ap_const_lv8_80: p_Val2_39_reg_33934.read()); } void subconv_1x1_4_p::thread_p_Val2_30_fu_4637_p2() { p_Val2_30_fu_4637_p2 = (!tmp_146_fu_4626_p1.read().is_01() || !p_Val2_29_fu_4616_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_146_fu_4626_p1.read()) + sc_biguint<8>(p_Val2_29_fu_4616_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_31_fu_15875_p2() { p_Val2_31_fu_15875_p2 = (!tmp_157_fu_15871_p1.read().is_01() || !tmp_214_cast_fu_15867_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_157_fu_15871_p1.read()) + sc_bigint<17>(tmp_214_cast_fu_15867_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_32_fu_15889_p4() { p_Val2_32_fu_15889_p4 = p_Val2_31_fu_15875_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_33_fu_15910_p2() { p_Val2_33_fu_15910_p2 = (!tmp_158_fu_15899_p1.read().is_01() || !p_Val2_32_fu_15889_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_158_fu_15899_p1.read()) + sc_biguint<8>(p_Val2_32_fu_15889_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_34_fu_10074_p2() { p_Val2_34_fu_10074_p2 = (!tmp_151_fu_10070_p1.read().is_01() || !tmp_226_cast_fu_10066_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_151_fu_10070_p1.read()) + sc_bigint<17>(tmp_226_cast_fu_10066_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_35_fu_10088_p4() { p_Val2_35_fu_10088_p4 = p_Val2_34_fu_10074_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_36_fu_10109_p2() { p_Val2_36_fu_10109_p2 = (!tmp_152_fu_10098_p1.read().is_01() || !p_Val2_35_fu_10088_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_152_fu_10098_p1.read()) + sc_biguint<8>(p_Val2_35_fu_10088_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_37_fu_21347_p2() { p_Val2_37_fu_21347_p2 = (!tmp_163_fu_21343_p1.read().is_01() || !tmp_232_cast_fu_21339_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_163_fu_21343_p1.read()) + sc_bigint<17>(tmp_232_cast_fu_21339_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_38_fu_21361_p4() { p_Val2_38_fu_21361_p4 = p_Val2_37_fu_21347_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_39_fu_21382_p2() { p_Val2_39_fu_21382_p2 = (!tmp_164_fu_21371_p1.read().is_01() || !p_Val2_38_fu_21361_p4.read().is_01())? sc_lv<8>(): (sc_biguint<8>(tmp_164_fu_21371_p1.read()) + sc_biguint<8>(p_Val2_38_fu_21361_p4.read())); } void subconv_1x1_4_p::thread_p_Val2_98_10_fu_5867_p2() { p_Val2_98_10_fu_5867_p2 = (!tmp_299_10_fu_5863_p1.read().is_01() || !tmp_298_10_cast_fu_5859_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_299_10_fu_5863_p1.read()) + sc_bigint<17>(tmp_298_10_cast_fu_5859_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_98_11_fu_5982_p2() { p_Val2_98_11_fu_5982_p2 = (!tmp_299_11_fu_5978_p1.read().is_01() || !tmp_298_11_cast_fu_5974_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_299_11_fu_5978_p1.read()) + sc_bigint<17>(tmp_298_11_cast_fu_5974_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_98_12_fu_6097_p2() { p_Val2_98_12_fu_6097_p2 = (!tmp_299_12_fu_6093_p1.read().is_01() || !tmp_298_12_cast_fu_6089_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_299_12_fu_6093_p1.read()) + sc_bigint<17>(tmp_298_12_cast_fu_6089_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_98_13_fu_6212_p2() { p_Val2_98_13_fu_6212_p2 = (!tmp_299_13_fu_6208_p1.read().is_01() || !tmp_298_13_cast_fu_6204_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_299_13_fu_6208_p1.read()) + sc_bigint<17>(tmp_298_13_cast_fu_6204_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_98_14_fu_6327_p2() { p_Val2_98_14_fu_6327_p2 = (!tmp_299_14_fu_6323_p1.read().is_01() || !tmp_298_14_cast_fu_6319_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_299_14_fu_6323_p1.read()) + sc_bigint<17>(tmp_298_14_cast_fu_6319_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_98_15_fu_6442_p2() { p_Val2_98_15_fu_6442_p2 = (!tmp_299_15_fu_6438_p1.read().is_01() || !tmp_298_15_cast_fu_6434_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_299_15_fu_6438_p1.read()) + sc_bigint<17>(tmp_298_15_cast_fu_6434_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_98_16_fu_6557_p2() { p_Val2_98_16_fu_6557_p2 = (!tmp_299_16_fu_6553_p1.read().is_01() || !tmp_298_16_cast_fu_6549_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_299_16_fu_6553_p1.read()) + sc_bigint<17>(tmp_298_16_cast_fu_6549_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_98_17_fu_6672_p2() { p_Val2_98_17_fu_6672_p2 = (!tmp_299_17_fu_6668_p1.read().is_01() || !tmp_298_17_cast_fu_6664_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_299_17_fu_6668_p1.read()) + sc_bigint<17>(tmp_298_17_cast_fu_6664_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_98_18_fu_6787_p2() { p_Val2_98_18_fu_6787_p2 = (!tmp_299_18_fu_6783_p1.read().is_01() || !tmp_298_18_cast_fu_6779_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_299_18_fu_6783_p1.read()) + sc_bigint<17>(tmp_298_18_cast_fu_6779_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_98_19_fu_6902_p2() { p_Val2_98_19_fu_6902_p2 = (!tmp_299_19_fu_6898_p1.read().is_01() || !tmp_298_19_cast_fu_6894_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_299_19_fu_6898_p1.read()) + sc_bigint<17>(tmp_298_19_cast_fu_6894_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_98_1_fu_4717_p2() { p_Val2_98_1_fu_4717_p2 = (!tmp_299_1_fu_4713_p1.read().is_01() || !tmp_298_1_cast_fu_4709_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_299_1_fu_4713_p1.read()) + sc_bigint<17>(tmp_298_1_cast_fu_4709_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_98_20_fu_7017_p2() { p_Val2_98_20_fu_7017_p2 = (!tmp_299_20_fu_7013_p1.read().is_01() || !tmp_298_20_cast_fu_7009_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_299_20_fu_7013_p1.read()) + sc_bigint<17>(tmp_298_20_cast_fu_7009_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_98_21_fu_7132_p2() { p_Val2_98_21_fu_7132_p2 = (!tmp_299_21_fu_7128_p1.read().is_01() || !tmp_298_21_cast_fu_7124_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_299_21_fu_7128_p1.read()) + sc_bigint<17>(tmp_298_21_cast_fu_7124_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_98_22_fu_7247_p2() { p_Val2_98_22_fu_7247_p2 = (!tmp_299_22_fu_7243_p1.read().is_01() || !tmp_298_22_cast_fu_7239_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_299_22_fu_7243_p1.read()) + sc_bigint<17>(tmp_298_22_cast_fu_7239_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_98_2_fu_4832_p2() { p_Val2_98_2_fu_4832_p2 = (!tmp_299_2_fu_4828_p1.read().is_01() || !tmp_298_2_cast_fu_4824_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_299_2_fu_4828_p1.read()) + sc_bigint<17>(tmp_298_2_cast_fu_4824_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_98_3_fu_4947_p2() { p_Val2_98_3_fu_4947_p2 = (!tmp_299_3_fu_4943_p1.read().is_01() || !tmp_298_3_cast_fu_4939_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_299_3_fu_4943_p1.read()) + sc_bigint<17>(tmp_298_3_cast_fu_4939_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_98_4_fu_5062_p2() { p_Val2_98_4_fu_5062_p2 = (!tmp_299_4_fu_5058_p1.read().is_01() || !tmp_298_4_cast_fu_5054_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_299_4_fu_5058_p1.read()) + sc_bigint<17>(tmp_298_4_cast_fu_5054_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_98_5_fu_5177_p2() { p_Val2_98_5_fu_5177_p2 = (!tmp_299_5_fu_5173_p1.read().is_01() || !tmp_298_5_cast_fu_5169_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_299_5_fu_5173_p1.read()) + sc_bigint<17>(tmp_298_5_cast_fu_5169_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_98_6_fu_5292_p2() { p_Val2_98_6_fu_5292_p2 = (!tmp_299_6_fu_5288_p1.read().is_01() || !tmp_298_6_cast_fu_5284_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_299_6_fu_5288_p1.read()) + sc_bigint<17>(tmp_298_6_cast_fu_5284_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_98_7_fu_5407_p2() { p_Val2_98_7_fu_5407_p2 = (!tmp_299_7_fu_5403_p1.read().is_01() || !tmp_298_7_cast_fu_5399_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_299_7_fu_5403_p1.read()) + sc_bigint<17>(tmp_298_7_cast_fu_5399_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_98_8_fu_5522_p2() { p_Val2_98_8_fu_5522_p2 = (!tmp_299_8_fu_5518_p1.read().is_01() || !tmp_298_8_cast_fu_5514_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_299_8_fu_5518_p1.read()) + sc_bigint<17>(tmp_298_8_cast_fu_5514_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_98_9_fu_5637_p2() { p_Val2_98_9_fu_5637_p2 = (!tmp_299_9_fu_5633_p1.read().is_01() || !tmp_298_9_cast_fu_5629_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_299_9_fu_5633_p1.read()) + sc_bigint<17>(tmp_298_9_cast_fu_5629_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_98_s_fu_5752_p2() { p_Val2_98_s_fu_5752_p2 = (!tmp_299_s_fu_5748_p1.read().is_01() || !tmp_298_cast_fu_5744_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_299_s_fu_5748_p1.read()) + sc_bigint<17>(tmp_298_cast_fu_5744_p1.read())); } void subconv_1x1_4_p::thread_p_Val2_99_10_fu_5881_p4() { p_Val2_99_10_fu_5881_p4 = p_Val2_98_10_fu_5867_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_99_11_fu_5996_p4() { p_Val2_99_11_fu_5996_p4 = p_Val2_98_11_fu_5982_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_99_12_fu_6111_p4() { p_Val2_99_12_fu_6111_p4 = p_Val2_98_12_fu_6097_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_99_13_fu_6226_p4() { p_Val2_99_13_fu_6226_p4 = p_Val2_98_13_fu_6212_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_99_14_fu_6341_p4() { p_Val2_99_14_fu_6341_p4 = p_Val2_98_14_fu_6327_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_99_15_fu_6456_p4() { p_Val2_99_15_fu_6456_p4 = p_Val2_98_15_fu_6442_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_99_16_fu_6571_p4() { p_Val2_99_16_fu_6571_p4 = p_Val2_98_16_fu_6557_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_99_17_fu_6686_p4() { p_Val2_99_17_fu_6686_p4 = p_Val2_98_17_fu_6672_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_99_18_fu_6801_p4() { p_Val2_99_18_fu_6801_p4 = p_Val2_98_18_fu_6787_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_99_19_fu_6916_p4() { p_Val2_99_19_fu_6916_p4 = p_Val2_98_19_fu_6902_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_99_1_fu_4731_p4() { p_Val2_99_1_fu_4731_p4 = p_Val2_98_1_fu_4717_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_99_20_fu_7031_p4() { p_Val2_99_20_fu_7031_p4 = p_Val2_98_20_fu_7017_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_99_21_fu_7146_p4() { p_Val2_99_21_fu_7146_p4 = p_Val2_98_21_fu_7132_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_99_22_fu_7261_p4() { p_Val2_99_22_fu_7261_p4 = p_Val2_98_22_fu_7247_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_99_2_fu_4846_p4() { p_Val2_99_2_fu_4846_p4 = p_Val2_98_2_fu_4832_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_99_3_fu_4961_p4() { p_Val2_99_3_fu_4961_p4 = p_Val2_98_3_fu_4947_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_99_4_fu_5076_p4() { p_Val2_99_4_fu_5076_p4 = p_Val2_98_4_fu_5062_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_99_5_fu_5191_p4() { p_Val2_99_5_fu_5191_p4 = p_Val2_98_5_fu_5177_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_99_6_fu_5306_p4() { p_Val2_99_6_fu_5306_p4 = p_Val2_98_6_fu_5292_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_99_7_fu_5421_p4() { p_Val2_99_7_fu_5421_p4 = p_Val2_98_7_fu_5407_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_99_8_fu_5536_p4() { p_Val2_99_8_fu_5536_p4 = p_Val2_98_8_fu_5522_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_99_9_fu_5651_p4() { p_Val2_99_9_fu_5651_p4 = p_Val2_98_9_fu_5637_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_99_s_fu_5766_p4() { p_Val2_99_s_fu_5766_p4 = p_Val2_98_s_fu_5752_p2.read().range(13, 6); } void subconv_1x1_4_p::thread_p_Val2_9_fu_20626_p3() { p_Val2_9_fu_20626_p3 = (!underflow_17_reg_33338.read()[0].is_01())? sc_lv<8>(): ((underflow_17_reg_33338.read()[0].to_bool())? ap_const_lv8_80: p_Val2_33_reg_32206.read()); } void subconv_1x1_4_p::thread_p_Val2_s_241_fu_9353_p3() { p_Val2_s_241_fu_9353_p3 = (!underflow_reg_29102.read()[0].is_01())? sc_lv<8>(): ((underflow_reg_29102.read()[0].to_bool())? ap_const_lv8_80: p_Val2_30_reg_27970.read()); } void subconv_1x1_4_p::thread_p_Val2_s_fu_4602_p2() { p_Val2_s_fu_4602_p2 = (!tmp_145_fu_4598_p1.read().is_01() || !tmp_208_cast_fu_4594_p1.read().is_01())? sc_lv<17>(): (sc_bigint<17>(tmp_145_fu_4598_p1.read()) + sc_bigint<17>(tmp_208_cast_fu_4594_p1.read())); } void subconv_1x1_4_p::thread_p_not_i_i1_10_fu_13681_p2() { p_not_i_i1_10_fu_13681_p2 = (deleted_zeros_10_s_fu_13655_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i1_11_fu_13847_p2() { p_not_i_i1_11_fu_13847_p2 = (deleted_zeros_10_11_fu_13821_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i1_12_fu_13930_p2() { p_not_i_i1_12_fu_13930_p2 = (deleted_zeros_10_12_fu_13904_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i1_13_fu_14013_p2() { p_not_i_i1_13_fu_14013_p2 = (deleted_zeros_10_13_fu_13987_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i1_14_fu_14096_p2() { p_not_i_i1_14_fu_14096_p2 = (deleted_zeros_10_14_fu_14070_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i1_15_fu_14179_p2() { p_not_i_i1_15_fu_14179_p2 = (deleted_zeros_10_15_fu_14153_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i1_16_fu_14262_p2() { p_not_i_i1_16_fu_14262_p2 = (deleted_zeros_10_16_fu_14236_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i1_17_fu_14345_p2() { p_not_i_i1_17_fu_14345_p2 = (deleted_zeros_10_17_fu_14319_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i1_18_fu_14428_p2() { p_not_i_i1_18_fu_14428_p2 = (deleted_zeros_10_18_fu_14402_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i1_19_fu_14511_p2() { p_not_i_i1_19_fu_14511_p2 = (deleted_zeros_10_19_fu_14485_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i1_1_fu_12934_p2() { p_not_i_i1_1_fu_12934_p2 = (deleted_zeros_10_1_fu_12908_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i1_20_fu_14594_p2() { p_not_i_i1_20_fu_14594_p2 = (deleted_zeros_10_20_fu_14568_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i1_21_fu_14677_p2() { p_not_i_i1_21_fu_14677_p2 = (deleted_zeros_10_21_fu_14651_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i1_22_fu_14760_p2() { p_not_i_i1_22_fu_14760_p2 = (deleted_zeros_10_22_fu_14734_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i1_2_fu_13017_p2() { p_not_i_i1_2_fu_13017_p2 = (deleted_zeros_10_2_fu_12991_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i1_3_fu_13100_p2() { p_not_i_i1_3_fu_13100_p2 = (deleted_zeros_10_3_fu_13074_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i1_4_fu_13183_p2() { p_not_i_i1_4_fu_13183_p2 = (deleted_zeros_10_4_fu_13157_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i1_5_fu_13266_p2() { p_not_i_i1_5_fu_13266_p2 = (deleted_zeros_10_5_fu_13240_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i1_6_fu_13349_p2() { p_not_i_i1_6_fu_13349_p2 = (deleted_zeros_10_6_fu_13323_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i1_7_fu_13432_p2() { p_not_i_i1_7_fu_13432_p2 = (deleted_zeros_10_7_fu_13406_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i1_8_fu_13515_p2() { p_not_i_i1_8_fu_13515_p2 = (deleted_zeros_10_8_fu_13489_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i1_9_fu_13598_p2() { p_not_i_i1_9_fu_13598_p2 = (deleted_zeros_10_9_fu_13572_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i1_fu_12851_p2() { p_not_i_i1_fu_12851_p2 = (deleted_zeros_10_fu_12825_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i1_s_fu_13764_p2() { p_not_i_i1_s_fu_13764_p2 = (deleted_zeros_10_10_fu_13738_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i2_10_fu_24954_p2() { p_not_i_i2_10_fu_24954_p2 = (deleted_zeros_11_s_fu_24928_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i2_11_fu_25120_p2() { p_not_i_i2_11_fu_25120_p2 = (deleted_zeros_11_11_fu_25094_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i2_12_fu_25203_p2() { p_not_i_i2_12_fu_25203_p2 = (deleted_zeros_11_12_fu_25177_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i2_13_fu_25286_p2() { p_not_i_i2_13_fu_25286_p2 = (deleted_zeros_11_13_fu_25260_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i2_14_fu_25369_p2() { p_not_i_i2_14_fu_25369_p2 = (deleted_zeros_11_14_fu_25343_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i2_15_fu_25452_p2() { p_not_i_i2_15_fu_25452_p2 = (deleted_zeros_11_15_fu_25426_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i2_16_fu_25535_p2() { p_not_i_i2_16_fu_25535_p2 = (deleted_zeros_11_16_fu_25509_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i2_17_fu_25618_p2() { p_not_i_i2_17_fu_25618_p2 = (deleted_zeros_11_17_fu_25592_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i2_18_fu_25701_p2() { p_not_i_i2_18_fu_25701_p2 = (deleted_zeros_11_18_fu_25675_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i2_19_fu_25784_p2() { p_not_i_i2_19_fu_25784_p2 = (deleted_zeros_11_19_fu_25758_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i2_1_fu_24207_p2() { p_not_i_i2_1_fu_24207_p2 = (deleted_zeros_11_1_fu_24181_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i2_20_fu_25867_p2() { p_not_i_i2_20_fu_25867_p2 = (deleted_zeros_11_20_fu_25841_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i2_21_fu_25950_p2() { p_not_i_i2_21_fu_25950_p2 = (deleted_zeros_11_21_fu_25924_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i2_22_fu_26033_p2() { p_not_i_i2_22_fu_26033_p2 = (deleted_zeros_11_22_fu_26007_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i2_2_fu_24290_p2() { p_not_i_i2_2_fu_24290_p2 = (deleted_zeros_11_2_fu_24264_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i2_3_fu_24373_p2() { p_not_i_i2_3_fu_24373_p2 = (deleted_zeros_11_3_fu_24347_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i2_4_fu_24456_p2() { p_not_i_i2_4_fu_24456_p2 = (deleted_zeros_11_4_fu_24430_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i2_5_fu_24539_p2() { p_not_i_i2_5_fu_24539_p2 = (deleted_zeros_11_5_fu_24513_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i2_6_fu_24622_p2() { p_not_i_i2_6_fu_24622_p2 = (deleted_zeros_11_6_fu_24596_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i2_7_fu_24705_p2() { p_not_i_i2_7_fu_24705_p2 = (deleted_zeros_11_7_fu_24679_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i2_8_fu_24788_p2() { p_not_i_i2_8_fu_24788_p2 = (deleted_zeros_11_8_fu_24762_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i2_9_fu_24871_p2() { p_not_i_i2_9_fu_24871_p2 = (deleted_zeros_11_9_fu_24845_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i2_fu_24124_p2() { p_not_i_i2_fu_24124_p2 = (deleted_zeros_11_fu_24098_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i2_s_fu_25037_p2() { p_not_i_i2_s_fu_25037_p2 = (deleted_zeros_11_10_fu_25011_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i9_10_fu_19565_p2() { p_not_i_i9_10_fu_19565_p2 = (deleted_zeros_9_10_fu_19539_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i9_11_fu_19648_p2() { p_not_i_i9_11_fu_19648_p2 = (deleted_zeros_9_11_fu_19622_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i9_12_fu_19731_p2() { p_not_i_i9_12_fu_19731_p2 = (deleted_zeros_9_12_fu_19705_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i9_13_fu_19814_p2() { p_not_i_i9_13_fu_19814_p2 = (deleted_zeros_9_13_fu_19788_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i9_14_fu_19897_p2() { p_not_i_i9_14_fu_19897_p2 = (deleted_zeros_9_14_fu_19871_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i9_15_fu_19980_p2() { p_not_i_i9_15_fu_19980_p2 = (deleted_zeros_9_15_fu_19954_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i9_16_fu_20063_p2() { p_not_i_i9_16_fu_20063_p2 = (deleted_zeros_9_16_fu_20037_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i9_17_fu_20146_p2() { p_not_i_i9_17_fu_20146_p2 = (deleted_zeros_9_17_fu_20120_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i9_18_fu_20229_p2() { p_not_i_i9_18_fu_20229_p2 = (deleted_zeros_9_18_fu_20203_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i9_19_fu_20312_p2() { p_not_i_i9_19_fu_20312_p2 = (deleted_zeros_9_19_fu_20286_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i9_1_fu_18735_p2() { p_not_i_i9_1_fu_18735_p2 = (deleted_zeros_9_1_fu_18709_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i9_20_fu_20395_p2() { p_not_i_i9_20_fu_20395_p2 = (deleted_zeros_9_20_fu_20369_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i9_21_fu_20478_p2() { p_not_i_i9_21_fu_20478_p2 = (deleted_zeros_9_21_fu_20452_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i9_22_fu_20561_p2() { p_not_i_i9_22_fu_20561_p2 = (deleted_zeros_9_22_fu_20535_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i9_2_fu_18818_p2() { p_not_i_i9_2_fu_18818_p2 = (deleted_zeros_9_2_fu_18792_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i9_3_fu_18901_p2() { p_not_i_i9_3_fu_18901_p2 = (deleted_zeros_9_3_fu_18875_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i9_4_fu_18984_p2() { p_not_i_i9_4_fu_18984_p2 = (deleted_zeros_9_4_fu_18958_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i9_5_fu_19067_p2() { p_not_i_i9_5_fu_19067_p2 = (deleted_zeros_9_5_fu_19041_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i9_6_fu_19150_p2() { p_not_i_i9_6_fu_19150_p2 = (deleted_zeros_9_6_fu_19124_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i9_7_fu_19233_p2() { p_not_i_i9_7_fu_19233_p2 = (deleted_zeros_9_7_fu_19207_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i9_8_fu_19316_p2() { p_not_i_i9_8_fu_19316_p2 = (deleted_zeros_9_8_fu_19290_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i9_9_fu_19399_p2() { p_not_i_i9_9_fu_19399_p2 = (deleted_zeros_9_9_fu_19373_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i9_fu_18652_p2() { p_not_i_i9_fu_18652_p2 = (deleted_zeros_9_fu_18626_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i9_s_fu_19482_p2() { p_not_i_i9_s_fu_19482_p2 = (deleted_zeros_9_s_fu_19456_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i_10_fu_8209_p2() { p_not_i_i_10_fu_8209_p2 = (deleted_zeros_24_fu_8183_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i_11_fu_8292_p2() { p_not_i_i_11_fu_8292_p2 = (deleted_zeros_25_fu_8266_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i_12_fu_8375_p2() { p_not_i_i_12_fu_8375_p2 = (deleted_zeros_12_fu_8349_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i_13_fu_8458_p2() { p_not_i_i_13_fu_8458_p2 = (deleted_zeros_13_fu_8432_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i_14_fu_8541_p2() { p_not_i_i_14_fu_8541_p2 = (deleted_zeros_14_fu_8515_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i_15_fu_8624_p2() { p_not_i_i_15_fu_8624_p2 = (deleted_zeros_15_fu_8598_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i_16_fu_8707_p2() { p_not_i_i_16_fu_8707_p2 = (deleted_zeros_16_fu_8681_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i_17_fu_8790_p2() { p_not_i_i_17_fu_8790_p2 = (deleted_zeros_17_fu_8764_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i_18_fu_8873_p2() { p_not_i_i_18_fu_8873_p2 = (deleted_zeros_18_fu_8847_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i_19_fu_8956_p2() { p_not_i_i_19_fu_8956_p2 = (deleted_zeros_19_fu_8930_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i_1_fu_7462_p2() { p_not_i_i_1_fu_7462_p2 = (deleted_zeros_1_fu_7436_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i_20_fu_9039_p2() { p_not_i_i_20_fu_9039_p2 = (deleted_zeros_20_fu_9013_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i_21_fu_9122_p2() { p_not_i_i_21_fu_9122_p2 = (deleted_zeros_21_fu_9096_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i_22_fu_9205_p2() { p_not_i_i_22_fu_9205_p2 = (deleted_zeros_22_fu_9179_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i_2_fu_7545_p2() { p_not_i_i_2_fu_7545_p2 = (deleted_zeros_2_fu_7519_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i_3_fu_7628_p2() { p_not_i_i_3_fu_7628_p2 = (deleted_zeros_3_fu_7602_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i_4_fu_7711_p2() { p_not_i_i_4_fu_7711_p2 = (deleted_zeros_4_fu_7685_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i_5_fu_7794_p2() { p_not_i_i_5_fu_7794_p2 = (deleted_zeros_5_fu_7768_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i_6_fu_7877_p2() { p_not_i_i_6_fu_7877_p2 = (deleted_zeros_6_fu_7851_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i_7_fu_7960_p2() { p_not_i_i_7_fu_7960_p2 = (deleted_zeros_7_fu_7934_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i_8_fu_8043_p2() { p_not_i_i_8_fu_8043_p2 = (deleted_zeros_8_fu_8017_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i_9_fu_8126_p2() { p_not_i_i_9_fu_8126_p2 = (deleted_zeros_s_fu_8100_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i_fu_7379_p2() { p_not_i_i_fu_7379_p2 = (deleted_zeros_fu_7353_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_not_i_i_s_fu_9288_p2() { p_not_i_i_s_fu_9288_p2 = (deleted_zeros_23_fu_9262_p3.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_p_shl10_cast_fu_15546_p1() { p_shl10_cast_fu_15546_p1 = esl_zext<7,6>(tmp_326_fu_15538_p3.read()); } void subconv_1x1_4_p::thread_p_shl11_cast_fu_15558_p1() { p_shl11_cast_fu_15558_p1 = esl_zext<7,4>(tmp_327_fu_15550_p3.read()); } void subconv_1x1_4_p::thread_p_shl12_cast_fu_15731_p3() { p_shl12_cast_fu_15731_p3 = esl_concat<10,3>(tmp_1266_fu_15727_p1.read(), ap_const_lv3_0); } void subconv_1x1_4_p::thread_p_shl13_cast_fu_15739_p3() { p_shl13_cast_fu_15739_p3 = esl_concat<12,1>(tmp_354_fu_15722_p2.read(), ap_const_lv1_0); } void subconv_1x1_4_p::thread_p_shl14_cast_fu_15696_p1() { p_shl14_cast_fu_15696_p1 = esl_zext<11,10>(tmp_351_fu_15688_p3.read()); } void subconv_1x1_4_p::thread_p_shl15_cast_fu_15708_p1() { p_shl15_cast_fu_15708_p1 = esl_zext<11,8>(tmp_352_fu_15700_p3.read()); } void subconv_1x1_4_p::thread_p_shl16_cast_fu_26983_p3() { p_shl16_cast_fu_26983_p3 = esl_concat<6,3>(tmp_1023_fu_26979_p1.read(), ap_const_lv3_0); } void subconv_1x1_4_p::thread_p_shl17_cast_fu_26995_p3() { p_shl17_cast_fu_26995_p3 = esl_concat<8,1>(tmp_1024_fu_26991_p1.read(), ap_const_lv1_0); } void subconv_1x1_4_p::thread_p_shl18_cast_fu_26941_p1() { p_shl18_cast_fu_26941_p1 = esl_zext<11,10>(tmp_344_fu_26937_p1.read()); } void subconv_1x1_4_p::thread_p_shl19_cast_fu_26956_p1() { p_shl19_cast_fu_26956_p1 = esl_zext<11,8>(tmp_345_fu_26952_p1.read()); } void subconv_1x1_4_p::thread_p_shl1_cast_fu_4219_p3() { p_shl1_cast_fu_4219_p3 = esl_concat<8,1>(tmp_1017_fu_4215_p1.read(), ap_const_lv1_0); } void subconv_1x1_4_p::thread_p_shl2_cast_fu_4165_p1() { p_shl2_cast_fu_4165_p1 = esl_zext<11,10>(tmp_315_fu_4161_p1.read()); } void subconv_1x1_4_p::thread_p_shl3_cast_fu_4180_p1() { p_shl3_cast_fu_4180_p1 = esl_zext<11,8>(tmp_316_fu_4176_p1.read()); } void subconv_1x1_4_p::thread_p_shl4_cast_fu_4289_p1() { p_shl4_cast_fu_4289_p1 = esl_zext<7,6>(tmp_322_fu_4281_p3.read()); } void subconv_1x1_4_p::thread_p_shl5_cast_fu_4301_p1() { p_shl5_cast_fu_4301_p1 = esl_zext<7,4>(tmp_323_fu_4293_p3.read()); } void subconv_1x1_4_p::thread_p_shl6_cast_fu_4464_p3() { p_shl6_cast_fu_4464_p3 = esl_concat<10,3>(tmp_1018_fu_4460_p1.read(), ap_const_lv3_0); } void subconv_1x1_4_p::thread_p_shl7_cast_fu_4472_p3() { p_shl7_cast_fu_4472_p3 = esl_concat<12,1>(tmp_338_fu_4455_p2.read(), ap_const_lv1_0); } void subconv_1x1_4_p::thread_p_shl8_cast_fu_4429_p1() { p_shl8_cast_fu_4429_p1 = esl_zext<11,10>(tmp_335_fu_4421_p3.read()); } void subconv_1x1_4_p::thread_p_shl9_cast_fu_4441_p1() { p_shl9_cast_fu_4441_p1 = esl_zext<11,8>(tmp_336_fu_4433_p3.read()); } void subconv_1x1_4_p::thread_p_shl_cast_fu_4207_p3() { p_shl_cast_fu_4207_p3 = esl_concat<6,3>(tmp_1016_fu_4203_p1.read(), ap_const_lv3_0); } void subconv_1x1_4_p::thread_this_assign_1_10_fu_9659_p3() { this_assign_1_10_fu_9659_p3 = (!underflow_not_10_fu_9642_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_not_10_fu_9642_p2.read()[0].to_bool())? p_Val2_100_mux_s_fu_9647_p3.read(): p_Val2_100_s_260_fu_9653_p3.read()); } void subconv_1x1_4_p::thread_this_assign_1_11_fu_9689_p3() { this_assign_1_11_fu_9689_p3 = (!underflow_not_11_fu_9672_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_not_11_fu_9672_p2.read()[0].to_bool())? p_Val2_100_mux_10_fu_9677_p3.read(): p_Val2_100_10_262_fu_9683_p3.read()); } void subconv_1x1_4_p::thread_this_assign_1_12_fu_9719_p3() { this_assign_1_12_fu_9719_p3 = (!underflow_not_12_fu_9702_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_not_12_fu_9702_p2.read()[0].to_bool())? p_Val2_100_mux_11_fu_9707_p3.read(): p_Val2_100_11_264_fu_9713_p3.read()); } void subconv_1x1_4_p::thread_this_assign_1_13_fu_9749_p3() { this_assign_1_13_fu_9749_p3 = (!underflow_not_13_fu_9732_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_not_13_fu_9732_p2.read()[0].to_bool())? p_Val2_100_mux_12_fu_9737_p3.read(): p_Val2_100_12_266_fu_9743_p3.read()); } void subconv_1x1_4_p::thread_this_assign_1_14_fu_9779_p3() { this_assign_1_14_fu_9779_p3 = (!underflow_not_14_fu_9762_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_not_14_fu_9762_p2.read()[0].to_bool())? p_Val2_100_mux_13_fu_9767_p3.read(): p_Val2_100_13_268_fu_9773_p3.read()); } void subconv_1x1_4_p::thread_this_assign_1_15_fu_9809_p3() { this_assign_1_15_fu_9809_p3 = (!underflow_not_15_fu_9792_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_not_15_fu_9792_p2.read()[0].to_bool())? p_Val2_100_mux_14_fu_9797_p3.read(): p_Val2_100_14_270_fu_9803_p3.read()); } void subconv_1x1_4_p::thread_this_assign_1_16_fu_9839_p3() { this_assign_1_16_fu_9839_p3 = (!underflow_not_16_fu_9822_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_not_16_fu_9822_p2.read()[0].to_bool())? p_Val2_100_mux_15_fu_9827_p3.read(): p_Val2_100_15_272_fu_9833_p3.read()); } void subconv_1x1_4_p::thread_this_assign_1_17_fu_9869_p3() { this_assign_1_17_fu_9869_p3 = (!underflow_not_17_fu_9852_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_not_17_fu_9852_p2.read()[0].to_bool())? p_Val2_100_mux_16_fu_9857_p3.read(): p_Val2_100_16_274_fu_9863_p3.read()); } void subconv_1x1_4_p::thread_this_assign_1_18_fu_9899_p3() { this_assign_1_18_fu_9899_p3 = (!underflow_not_18_fu_9882_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_not_18_fu_9882_p2.read()[0].to_bool())? p_Val2_100_mux_17_fu_9887_p3.read(): p_Val2_100_17_276_fu_9893_p3.read()); } void subconv_1x1_4_p::thread_this_assign_1_19_fu_9929_p3() { this_assign_1_19_fu_9929_p3 = (!underflow_not_19_fu_9912_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_not_19_fu_9912_p2.read()[0].to_bool())? p_Val2_100_mux_18_fu_9917_p3.read(): p_Val2_100_18_278_fu_9923_p3.read()); } void subconv_1x1_4_p::thread_this_assign_1_1_fu_9389_p3() { this_assign_1_1_fu_9389_p3 = (!underflow_not_1_fu_9372_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_not_1_fu_9372_p2.read()[0].to_bool())? p_Val2_100_mux_1_fu_9377_p3.read(): p_Val2_100_1_242_fu_9383_p3.read()); } void subconv_1x1_4_p::thread_this_assign_1_20_fu_9959_p3() { this_assign_1_20_fu_9959_p3 = (!underflow_not_20_fu_9942_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_not_20_fu_9942_p2.read()[0].to_bool())? p_Val2_100_mux_19_fu_9947_p3.read(): p_Val2_100_19_280_fu_9953_p3.read()); } void subconv_1x1_4_p::thread_this_assign_1_21_fu_9989_p3() { this_assign_1_21_fu_9989_p3 = (!underflow_not_21_fu_9972_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_not_21_fu_9972_p2.read()[0].to_bool())? p_Val2_100_mux_20_fu_9977_p3.read(): p_Val2_100_20_282_fu_9983_p3.read()); } void subconv_1x1_4_p::thread_this_assign_1_22_fu_10019_p3() { this_assign_1_22_fu_10019_p3 = (!underflow_not_22_fu_10002_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_not_22_fu_10002_p2.read()[0].to_bool())? p_Val2_100_mux_21_fu_10007_p3.read(): p_Val2_100_21_284_fu_10013_p3.read()); } void subconv_1x1_4_p::thread_this_assign_1_2_fu_9419_p3() { this_assign_1_2_fu_9419_p3 = (!underflow_not_2_fu_9402_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_not_2_fu_9402_p2.read()[0].to_bool())? p_Val2_100_mux_2_fu_9407_p3.read(): p_Val2_100_2_244_fu_9413_p3.read()); } void subconv_1x1_4_p::thread_this_assign_1_3_fu_9449_p3() { this_assign_1_3_fu_9449_p3 = (!underflow_not_3_fu_9432_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_not_3_fu_9432_p2.read()[0].to_bool())? p_Val2_100_mux_3_fu_9437_p3.read(): p_Val2_100_3_246_fu_9443_p3.read()); } void subconv_1x1_4_p::thread_this_assign_1_4_fu_9479_p3() { this_assign_1_4_fu_9479_p3 = (!underflow_not_4_fu_9462_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_not_4_fu_9462_p2.read()[0].to_bool())? p_Val2_100_mux_4_fu_9467_p3.read(): p_Val2_100_4_248_fu_9473_p3.read()); } void subconv_1x1_4_p::thread_this_assign_1_5_fu_9509_p3() { this_assign_1_5_fu_9509_p3 = (!underflow_not_5_fu_9492_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_not_5_fu_9492_p2.read()[0].to_bool())? p_Val2_100_mux_5_fu_9497_p3.read(): p_Val2_100_5_250_fu_9503_p3.read()); } void subconv_1x1_4_p::thread_this_assign_1_6_fu_9539_p3() { this_assign_1_6_fu_9539_p3 = (!underflow_not_6_fu_9522_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_not_6_fu_9522_p2.read()[0].to_bool())? p_Val2_100_mux_6_fu_9527_p3.read(): p_Val2_100_6_252_fu_9533_p3.read()); } void subconv_1x1_4_p::thread_this_assign_1_7_fu_9569_p3() { this_assign_1_7_fu_9569_p3 = (!underflow_not_7_fu_9552_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_not_7_fu_9552_p2.read()[0].to_bool())? p_Val2_100_mux_7_fu_9557_p3.read(): p_Val2_100_7_254_fu_9563_p3.read()); } void subconv_1x1_4_p::thread_this_assign_1_8_fu_9599_p3() { this_assign_1_8_fu_9599_p3 = (!underflow_not_8_fu_9582_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_not_8_fu_9582_p2.read()[0].to_bool())? p_Val2_100_mux_8_fu_9587_p3.read(): p_Val2_100_8_256_fu_9593_p3.read()); } void subconv_1x1_4_p::thread_this_assign_1_9_fu_9629_p3() { this_assign_1_9_fu_9629_p3 = (!underflow_not_9_fu_9612_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_not_9_fu_9612_p2.read()[0].to_bool())? p_Val2_100_mux_9_fu_9617_p3.read(): p_Val2_100_9_258_fu_9623_p3.read()); } void subconv_1x1_4_p::thread_this_assign_1_fu_9359_p3() { this_assign_1_fu_9359_p3 = (!underflow_not_fu_9342_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_not_fu_9342_p2.read()[0].to_bool())? p_Val2_100_mux_fu_9347_p3.read(): p_Val2_s_241_fu_9353_p3.read()); } void subconv_1x1_4_p::thread_this_assign_1_s_fu_10049_p3() { this_assign_1_s_fu_10049_p3 = (!underflow_not_s_fu_10032_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_not_s_fu_10032_p2.read()[0].to_bool())? p_Val2_100_mux_22_fu_10037_p3.read(): p_Val2_100_22_286_fu_10043_p3.read()); } void subconv_1x1_4_p::thread_this_assign_46_1_10_fu_15161_p3() { this_assign_46_1_10_fu_15161_p3 = (!underflow_16_not_10_fu_15144_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_16_not_10_fu_15144_p2.read()[0].to_bool())? p_Val2_110_mux_10_fu_15149_p3.read(): p_Val2_110_10_263_fu_15155_p3.read()); } void subconv_1x1_4_p::thread_this_assign_46_1_11_fu_15191_p3() { this_assign_46_1_11_fu_15191_p3 = (!underflow_16_not_11_fu_15174_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_16_not_11_fu_15174_p2.read()[0].to_bool())? p_Val2_110_mux_11_fu_15179_p3.read(): p_Val2_110_11_265_fu_15185_p3.read()); } void subconv_1x1_4_p::thread_this_assign_46_1_12_fu_15221_p3() { this_assign_46_1_12_fu_15221_p3 = (!underflow_16_not_12_fu_15204_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_16_not_12_fu_15204_p2.read()[0].to_bool())? p_Val2_110_mux_12_fu_15209_p3.read(): p_Val2_110_12_267_fu_15215_p3.read()); } void subconv_1x1_4_p::thread_this_assign_46_1_13_fu_15251_p3() { this_assign_46_1_13_fu_15251_p3 = (!underflow_16_not_13_fu_15234_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_16_not_13_fu_15234_p2.read()[0].to_bool())? p_Val2_110_mux_13_fu_15239_p3.read(): p_Val2_110_13_269_fu_15245_p3.read()); } void subconv_1x1_4_p::thread_this_assign_46_1_14_fu_15281_p3() { this_assign_46_1_14_fu_15281_p3 = (!underflow_16_not_14_fu_15264_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_16_not_14_fu_15264_p2.read()[0].to_bool())? p_Val2_110_mux_14_fu_15269_p3.read(): p_Val2_110_14_271_fu_15275_p3.read()); } void subconv_1x1_4_p::thread_this_assign_46_1_15_fu_15311_p3() { this_assign_46_1_15_fu_15311_p3 = (!underflow_16_not_15_fu_15294_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_16_not_15_fu_15294_p2.read()[0].to_bool())? p_Val2_110_mux_15_fu_15299_p3.read(): p_Val2_110_15_273_fu_15305_p3.read()); } void subconv_1x1_4_p::thread_this_assign_46_1_16_fu_15341_p3() { this_assign_46_1_16_fu_15341_p3 = (!underflow_16_not_16_fu_15324_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_16_not_16_fu_15324_p2.read()[0].to_bool())? p_Val2_110_mux_16_fu_15329_p3.read(): p_Val2_110_16_275_fu_15335_p3.read()); } void subconv_1x1_4_p::thread_this_assign_46_1_17_fu_15371_p3() { this_assign_46_1_17_fu_15371_p3 = (!underflow_16_not_17_fu_15354_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_16_not_17_fu_15354_p2.read()[0].to_bool())? p_Val2_110_mux_17_fu_15359_p3.read(): p_Val2_110_17_277_fu_15365_p3.read()); } void subconv_1x1_4_p::thread_this_assign_46_1_18_fu_15401_p3() { this_assign_46_1_18_fu_15401_p3 = (!underflow_16_not_18_fu_15384_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_16_not_18_fu_15384_p2.read()[0].to_bool())? p_Val2_110_mux_18_fu_15389_p3.read(): p_Val2_110_18_279_fu_15395_p3.read()); } void subconv_1x1_4_p::thread_this_assign_46_1_19_fu_15431_p3() { this_assign_46_1_19_fu_15431_p3 = (!underflow_16_not_19_fu_15414_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_16_not_19_fu_15414_p2.read()[0].to_bool())? p_Val2_110_mux_19_fu_15419_p3.read(): p_Val2_110_19_281_fu_15425_p3.read()); } void subconv_1x1_4_p::thread_this_assign_46_1_1_fu_14861_p3() { this_assign_46_1_1_fu_14861_p3 = (!underflow_16_not_1_fu_14844_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_16_not_1_fu_14844_p2.read()[0].to_bool())? p_Val2_110_mux_1_fu_14849_p3.read(): p_Val2_110_1_243_fu_14855_p3.read()); } void subconv_1x1_4_p::thread_this_assign_46_1_20_fu_15461_p3() { this_assign_46_1_20_fu_15461_p3 = (!underflow_16_not_20_fu_15444_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_16_not_20_fu_15444_p2.read()[0].to_bool())? p_Val2_110_mux_20_fu_15449_p3.read(): p_Val2_110_20_283_fu_15455_p3.read()); } void subconv_1x1_4_p::thread_this_assign_46_1_21_fu_15491_p3() { this_assign_46_1_21_fu_15491_p3 = (!underflow_16_not_21_fu_15474_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_16_not_21_fu_15474_p2.read()[0].to_bool())? p_Val2_110_mux_21_fu_15479_p3.read(): p_Val2_110_21_285_fu_15485_p3.read()); } void subconv_1x1_4_p::thread_this_assign_46_1_22_fu_15521_p3() { this_assign_46_1_22_fu_15521_p3 = (!underflow_16_not_22_fu_15504_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_16_not_22_fu_15504_p2.read()[0].to_bool())? p_Val2_110_mux_22_fu_15509_p3.read(): p_Val2_110_22_287_fu_15515_p3.read()); } void subconv_1x1_4_p::thread_this_assign_46_1_2_fu_14891_p3() { this_assign_46_1_2_fu_14891_p3 = (!underflow_16_not_2_fu_14874_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_16_not_2_fu_14874_p2.read()[0].to_bool())? p_Val2_110_mux_2_fu_14879_p3.read(): p_Val2_110_2_245_fu_14885_p3.read()); } void subconv_1x1_4_p::thread_this_assign_46_1_3_fu_14921_p3() { this_assign_46_1_3_fu_14921_p3 = (!underflow_16_not_3_fu_14904_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_16_not_3_fu_14904_p2.read()[0].to_bool())? p_Val2_110_mux_3_fu_14909_p3.read(): p_Val2_110_3_247_fu_14915_p3.read()); } void subconv_1x1_4_p::thread_this_assign_46_1_4_fu_14951_p3() { this_assign_46_1_4_fu_14951_p3 = (!underflow_16_not_4_fu_14934_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_16_not_4_fu_14934_p2.read()[0].to_bool())? p_Val2_110_mux_4_fu_14939_p3.read(): p_Val2_110_4_249_fu_14945_p3.read()); } void subconv_1x1_4_p::thread_this_assign_46_1_5_fu_14981_p3() { this_assign_46_1_5_fu_14981_p3 = (!underflow_16_not_5_fu_14964_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_16_not_5_fu_14964_p2.read()[0].to_bool())? p_Val2_110_mux_5_fu_14969_p3.read(): p_Val2_110_5_251_fu_14975_p3.read()); } void subconv_1x1_4_p::thread_this_assign_46_1_6_fu_15011_p3() { this_assign_46_1_6_fu_15011_p3 = (!underflow_16_not_6_fu_14994_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_16_not_6_fu_14994_p2.read()[0].to_bool())? p_Val2_110_mux_6_fu_14999_p3.read(): p_Val2_110_6_253_fu_15005_p3.read()); } void subconv_1x1_4_p::thread_this_assign_46_1_7_fu_15041_p3() { this_assign_46_1_7_fu_15041_p3 = (!underflow_16_not_7_fu_15024_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_16_not_7_fu_15024_p2.read()[0].to_bool())? p_Val2_110_mux_7_fu_15029_p3.read(): p_Val2_110_7_255_fu_15035_p3.read()); } void subconv_1x1_4_p::thread_this_assign_46_1_8_fu_15071_p3() { this_assign_46_1_8_fu_15071_p3 = (!underflow_16_not_8_fu_15054_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_16_not_8_fu_15054_p2.read()[0].to_bool())? p_Val2_110_mux_8_fu_15059_p3.read(): p_Val2_110_8_257_fu_15065_p3.read()); } void subconv_1x1_4_p::thread_this_assign_46_1_9_fu_15101_p3() { this_assign_46_1_9_fu_15101_p3 = (!underflow_16_not_9_fu_15084_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_16_not_9_fu_15084_p2.read()[0].to_bool())? p_Val2_110_mux_9_fu_15089_p3.read(): p_Val2_110_9_259_fu_15095_p3.read()); } void subconv_1x1_4_p::thread_this_assign_46_1_fu_14831_p3() { this_assign_46_1_fu_14831_p3 = (!underflow_16_not_fu_14814_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_16_not_fu_14814_p2.read()[0].to_bool())? p_Val2_110_mux_fu_14819_p3.read(): p_Val2_1_fu_14825_p3.read()); } void subconv_1x1_4_p::thread_this_assign_46_1_s_fu_15131_p3() { this_assign_46_1_s_fu_15131_p3 = (!underflow_16_not_s_fu_15114_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_16_not_s_fu_15114_p2.read()[0].to_bool())? p_Val2_110_mux_s_fu_15119_p3.read(): p_Val2_110_s_261_fu_15125_p3.read()); } void subconv_1x1_4_p::thread_this_assign_47_1_10_fu_20962_p3() { this_assign_47_1_10_fu_20962_p3 = (!underflow_17_not_10_fu_20945_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_17_not_10_fu_20945_p2.read()[0].to_bool())? p_Val2_105_mux_10_fu_20950_p3.read(): p_Val2_105_10_311_fu_20956_p3.read()); } void subconv_1x1_4_p::thread_this_assign_47_1_11_fu_20992_p3() { this_assign_47_1_11_fu_20992_p3 = (!underflow_17_not_11_fu_20975_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_17_not_11_fu_20975_p2.read()[0].to_bool())? p_Val2_105_mux_11_fu_20980_p3.read(): p_Val2_105_11_313_fu_20986_p3.read()); } void subconv_1x1_4_p::thread_this_assign_47_1_12_fu_21022_p3() { this_assign_47_1_12_fu_21022_p3 = (!underflow_17_not_12_fu_21005_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_17_not_12_fu_21005_p2.read()[0].to_bool())? p_Val2_105_mux_12_fu_21010_p3.read(): p_Val2_105_12_315_fu_21016_p3.read()); } void subconv_1x1_4_p::thread_this_assign_47_1_13_fu_21052_p3() { this_assign_47_1_13_fu_21052_p3 = (!underflow_17_not_13_fu_21035_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_17_not_13_fu_21035_p2.read()[0].to_bool())? p_Val2_105_mux_13_fu_21040_p3.read(): p_Val2_105_13_317_fu_21046_p3.read()); } void subconv_1x1_4_p::thread_this_assign_47_1_14_fu_21082_p3() { this_assign_47_1_14_fu_21082_p3 = (!underflow_17_not_14_fu_21065_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_17_not_14_fu_21065_p2.read()[0].to_bool())? p_Val2_105_mux_14_fu_21070_p3.read(): p_Val2_105_14_319_fu_21076_p3.read()); } void subconv_1x1_4_p::thread_this_assign_47_1_15_fu_21112_p3() { this_assign_47_1_15_fu_21112_p3 = (!underflow_17_not_15_fu_21095_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_17_not_15_fu_21095_p2.read()[0].to_bool())? p_Val2_105_mux_15_fu_21100_p3.read(): p_Val2_105_15_321_fu_21106_p3.read()); } void subconv_1x1_4_p::thread_this_assign_47_1_16_fu_21142_p3() { this_assign_47_1_16_fu_21142_p3 = (!underflow_17_not_16_fu_21125_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_17_not_16_fu_21125_p2.read()[0].to_bool())? p_Val2_105_mux_16_fu_21130_p3.read(): p_Val2_105_16_323_fu_21136_p3.read()); } void subconv_1x1_4_p::thread_this_assign_47_1_17_fu_21172_p3() { this_assign_47_1_17_fu_21172_p3 = (!underflow_17_not_17_fu_21155_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_17_not_17_fu_21155_p2.read()[0].to_bool())? p_Val2_105_mux_17_fu_21160_p3.read(): p_Val2_105_17_325_fu_21166_p3.read()); } void subconv_1x1_4_p::thread_this_assign_47_1_18_fu_21202_p3() { this_assign_47_1_18_fu_21202_p3 = (!underflow_17_not_18_fu_21185_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_17_not_18_fu_21185_p2.read()[0].to_bool())? p_Val2_105_mux_18_fu_21190_p3.read(): p_Val2_105_18_327_fu_21196_p3.read()); } void subconv_1x1_4_p::thread_this_assign_47_1_19_fu_21232_p3() { this_assign_47_1_19_fu_21232_p3 = (!underflow_17_not_19_fu_21215_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_17_not_19_fu_21215_p2.read()[0].to_bool())? p_Val2_105_mux_19_fu_21220_p3.read(): p_Val2_105_19_329_fu_21226_p3.read()); } void subconv_1x1_4_p::thread_this_assign_47_1_1_fu_20662_p3() { this_assign_47_1_1_fu_20662_p3 = (!underflow_17_not_1_fu_20645_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_17_not_1_fu_20645_p2.read()[0].to_bool())? p_Val2_105_mux_1_fu_20650_p3.read(): p_Val2_105_1_291_fu_20656_p3.read()); } void subconv_1x1_4_p::thread_this_assign_47_1_20_fu_21262_p3() { this_assign_47_1_20_fu_21262_p3 = (!underflow_17_not_20_fu_21245_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_17_not_20_fu_21245_p2.read()[0].to_bool())? p_Val2_105_mux_20_fu_21250_p3.read(): p_Val2_105_20_331_fu_21256_p3.read()); } void subconv_1x1_4_p::thread_this_assign_47_1_21_fu_21292_p3() { this_assign_47_1_21_fu_21292_p3 = (!underflow_17_not_21_fu_21275_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_17_not_21_fu_21275_p2.read()[0].to_bool())? p_Val2_105_mux_21_fu_21280_p3.read(): p_Val2_105_21_333_fu_21286_p3.read()); } void subconv_1x1_4_p::thread_this_assign_47_1_22_fu_21322_p3() { this_assign_47_1_22_fu_21322_p3 = (!underflow_17_not_22_fu_21305_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_17_not_22_fu_21305_p2.read()[0].to_bool())? p_Val2_105_mux_22_fu_21310_p3.read(): p_Val2_105_22_335_fu_21316_p3.read()); } void subconv_1x1_4_p::thread_this_assign_47_1_2_fu_20692_p3() { this_assign_47_1_2_fu_20692_p3 = (!underflow_17_not_2_fu_20675_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_17_not_2_fu_20675_p2.read()[0].to_bool())? p_Val2_105_mux_2_fu_20680_p3.read(): p_Val2_105_2_293_fu_20686_p3.read()); } void subconv_1x1_4_p::thread_this_assign_47_1_3_fu_20722_p3() { this_assign_47_1_3_fu_20722_p3 = (!underflow_17_not_3_fu_20705_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_17_not_3_fu_20705_p2.read()[0].to_bool())? p_Val2_105_mux_3_fu_20710_p3.read(): p_Val2_105_3_295_fu_20716_p3.read()); } void subconv_1x1_4_p::thread_this_assign_47_1_4_fu_20752_p3() { this_assign_47_1_4_fu_20752_p3 = (!underflow_17_not_4_fu_20735_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_17_not_4_fu_20735_p2.read()[0].to_bool())? p_Val2_105_mux_4_fu_20740_p3.read(): p_Val2_105_4_297_fu_20746_p3.read()); } void subconv_1x1_4_p::thread_this_assign_47_1_5_fu_20782_p3() { this_assign_47_1_5_fu_20782_p3 = (!underflow_17_not_5_fu_20765_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_17_not_5_fu_20765_p2.read()[0].to_bool())? p_Val2_105_mux_5_fu_20770_p3.read(): p_Val2_105_5_299_fu_20776_p3.read()); } void subconv_1x1_4_p::thread_this_assign_47_1_6_fu_20812_p3() { this_assign_47_1_6_fu_20812_p3 = (!underflow_17_not_6_fu_20795_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_17_not_6_fu_20795_p2.read()[0].to_bool())? p_Val2_105_mux_6_fu_20800_p3.read(): p_Val2_105_6_301_fu_20806_p3.read()); } void subconv_1x1_4_p::thread_this_assign_47_1_7_fu_20842_p3() { this_assign_47_1_7_fu_20842_p3 = (!underflow_17_not_7_fu_20825_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_17_not_7_fu_20825_p2.read()[0].to_bool())? p_Val2_105_mux_7_fu_20830_p3.read(): p_Val2_105_7_303_fu_20836_p3.read()); } void subconv_1x1_4_p::thread_this_assign_47_1_8_fu_20872_p3() { this_assign_47_1_8_fu_20872_p3 = (!underflow_17_not_8_fu_20855_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_17_not_8_fu_20855_p2.read()[0].to_bool())? p_Val2_105_mux_8_fu_20860_p3.read(): p_Val2_105_8_305_fu_20866_p3.read()); } void subconv_1x1_4_p::thread_this_assign_47_1_9_fu_20902_p3() { this_assign_47_1_9_fu_20902_p3 = (!underflow_17_not_9_fu_20885_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_17_not_9_fu_20885_p2.read()[0].to_bool())? p_Val2_105_mux_9_fu_20890_p3.read(): p_Val2_105_9_307_fu_20896_p3.read()); } void subconv_1x1_4_p::thread_this_assign_47_1_fu_20632_p3() { this_assign_47_1_fu_20632_p3 = (!underflow_17_not_fu_20615_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_17_not_fu_20615_p2.read()[0].to_bool())? p_Val2_105_mux_fu_20620_p3.read(): p_Val2_9_fu_20626_p3.read()); } void subconv_1x1_4_p::thread_this_assign_47_1_s_fu_20932_p3() { this_assign_47_1_s_fu_20932_p3 = (!underflow_17_not_s_fu_20915_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_17_not_s_fu_20915_p2.read()[0].to_bool())? p_Val2_105_mux_s_fu_20920_p3.read(): p_Val2_105_s_309_fu_20926_p3.read()); } void subconv_1x1_4_p::thread_this_assign_48_1_10_fu_26434_p3() { this_assign_48_1_10_fu_26434_p3 = (!underflow_18_not_10_fu_26417_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_18_not_10_fu_26417_p2.read()[0].to_bool())? p_Val2_115_mux_10_fu_26422_p3.read(): p_Val2_115_10_312_fu_26428_p3.read()); } void subconv_1x1_4_p::thread_this_assign_48_1_11_fu_26464_p3() { this_assign_48_1_11_fu_26464_p3 = (!underflow_18_not_11_fu_26447_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_18_not_11_fu_26447_p2.read()[0].to_bool())? p_Val2_115_mux_11_fu_26452_p3.read(): p_Val2_115_11_314_fu_26458_p3.read()); } void subconv_1x1_4_p::thread_this_assign_48_1_12_fu_26494_p3() { this_assign_48_1_12_fu_26494_p3 = (!underflow_18_not_12_fu_26477_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_18_not_12_fu_26477_p2.read()[0].to_bool())? p_Val2_115_mux_12_fu_26482_p3.read(): p_Val2_115_12_316_fu_26488_p3.read()); } void subconv_1x1_4_p::thread_this_assign_48_1_13_fu_26524_p3() { this_assign_48_1_13_fu_26524_p3 = (!underflow_18_not_13_fu_26507_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_18_not_13_fu_26507_p2.read()[0].to_bool())? p_Val2_115_mux_13_fu_26512_p3.read(): p_Val2_115_13_318_fu_26518_p3.read()); } void subconv_1x1_4_p::thread_this_assign_48_1_14_fu_26554_p3() { this_assign_48_1_14_fu_26554_p3 = (!underflow_18_not_14_fu_26537_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_18_not_14_fu_26537_p2.read()[0].to_bool())? p_Val2_115_mux_14_fu_26542_p3.read(): p_Val2_115_14_320_fu_26548_p3.read()); } void subconv_1x1_4_p::thread_this_assign_48_1_15_fu_26584_p3() { this_assign_48_1_15_fu_26584_p3 = (!underflow_18_not_15_fu_26567_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_18_not_15_fu_26567_p2.read()[0].to_bool())? p_Val2_115_mux_15_fu_26572_p3.read(): p_Val2_115_15_322_fu_26578_p3.read()); } void subconv_1x1_4_p::thread_this_assign_48_1_16_fu_26614_p3() { this_assign_48_1_16_fu_26614_p3 = (!underflow_18_not_16_fu_26597_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_18_not_16_fu_26597_p2.read()[0].to_bool())? p_Val2_115_mux_16_fu_26602_p3.read(): p_Val2_115_16_324_fu_26608_p3.read()); } void subconv_1x1_4_p::thread_this_assign_48_1_17_fu_26644_p3() { this_assign_48_1_17_fu_26644_p3 = (!underflow_18_not_17_fu_26627_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_18_not_17_fu_26627_p2.read()[0].to_bool())? p_Val2_115_mux_17_fu_26632_p3.read(): p_Val2_115_17_326_fu_26638_p3.read()); } void subconv_1x1_4_p::thread_this_assign_48_1_18_fu_26674_p3() { this_assign_48_1_18_fu_26674_p3 = (!underflow_18_not_18_fu_26657_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_18_not_18_fu_26657_p2.read()[0].to_bool())? p_Val2_115_mux_18_fu_26662_p3.read(): p_Val2_115_18_328_fu_26668_p3.read()); } void subconv_1x1_4_p::thread_this_assign_48_1_19_fu_26704_p3() { this_assign_48_1_19_fu_26704_p3 = (!underflow_18_not_19_fu_26687_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_18_not_19_fu_26687_p2.read()[0].to_bool())? p_Val2_115_mux_19_fu_26692_p3.read(): p_Val2_115_19_330_fu_26698_p3.read()); } void subconv_1x1_4_p::thread_this_assign_48_1_1_fu_26134_p3() { this_assign_48_1_1_fu_26134_p3 = (!underflow_18_not_1_fu_26117_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_18_not_1_fu_26117_p2.read()[0].to_bool())? p_Val2_115_mux_1_fu_26122_p3.read(): p_Val2_115_1_292_fu_26128_p3.read()); } void subconv_1x1_4_p::thread_this_assign_48_1_20_fu_26734_p3() { this_assign_48_1_20_fu_26734_p3 = (!underflow_18_not_20_fu_26717_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_18_not_20_fu_26717_p2.read()[0].to_bool())? p_Val2_115_mux_20_fu_26722_p3.read(): p_Val2_115_20_332_fu_26728_p3.read()); } void subconv_1x1_4_p::thread_this_assign_48_1_21_fu_26764_p3() { this_assign_48_1_21_fu_26764_p3 = (!underflow_18_not_21_fu_26747_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_18_not_21_fu_26747_p2.read()[0].to_bool())? p_Val2_115_mux_21_fu_26752_p3.read(): p_Val2_115_21_334_fu_26758_p3.read()); } void subconv_1x1_4_p::thread_this_assign_48_1_22_fu_26794_p3() { this_assign_48_1_22_fu_26794_p3 = (!underflow_18_not_22_fu_26777_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_18_not_22_fu_26777_p2.read()[0].to_bool())? p_Val2_115_mux_22_fu_26782_p3.read(): p_Val2_115_22_336_fu_26788_p3.read()); } void subconv_1x1_4_p::thread_this_assign_48_1_2_fu_26164_p3() { this_assign_48_1_2_fu_26164_p3 = (!underflow_18_not_2_fu_26147_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_18_not_2_fu_26147_p2.read()[0].to_bool())? p_Val2_115_mux_2_fu_26152_p3.read(): p_Val2_115_2_294_fu_26158_p3.read()); } void subconv_1x1_4_p::thread_this_assign_48_1_3_fu_26194_p3() { this_assign_48_1_3_fu_26194_p3 = (!underflow_18_not_3_fu_26177_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_18_not_3_fu_26177_p2.read()[0].to_bool())? p_Val2_115_mux_3_fu_26182_p3.read(): p_Val2_115_3_296_fu_26188_p3.read()); } void subconv_1x1_4_p::thread_this_assign_48_1_4_fu_26224_p3() { this_assign_48_1_4_fu_26224_p3 = (!underflow_18_not_4_fu_26207_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_18_not_4_fu_26207_p2.read()[0].to_bool())? p_Val2_115_mux_4_fu_26212_p3.read(): p_Val2_115_4_298_fu_26218_p3.read()); } void subconv_1x1_4_p::thread_this_assign_48_1_5_fu_26254_p3() { this_assign_48_1_5_fu_26254_p3 = (!underflow_18_not_5_fu_26237_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_18_not_5_fu_26237_p2.read()[0].to_bool())? p_Val2_115_mux_5_fu_26242_p3.read(): p_Val2_115_5_300_fu_26248_p3.read()); } void subconv_1x1_4_p::thread_this_assign_48_1_6_fu_26284_p3() { this_assign_48_1_6_fu_26284_p3 = (!underflow_18_not_6_fu_26267_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_18_not_6_fu_26267_p2.read()[0].to_bool())? p_Val2_115_mux_6_fu_26272_p3.read(): p_Val2_115_6_302_fu_26278_p3.read()); } void subconv_1x1_4_p::thread_this_assign_48_1_7_fu_26314_p3() { this_assign_48_1_7_fu_26314_p3 = (!underflow_18_not_7_fu_26297_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_18_not_7_fu_26297_p2.read()[0].to_bool())? p_Val2_115_mux_7_fu_26302_p3.read(): p_Val2_115_7_304_fu_26308_p3.read()); } void subconv_1x1_4_p::thread_this_assign_48_1_8_fu_26344_p3() { this_assign_48_1_8_fu_26344_p3 = (!underflow_18_not_8_fu_26327_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_18_not_8_fu_26327_p2.read()[0].to_bool())? p_Val2_115_mux_8_fu_26332_p3.read(): p_Val2_115_8_306_fu_26338_p3.read()); } void subconv_1x1_4_p::thread_this_assign_48_1_9_fu_26374_p3() { this_assign_48_1_9_fu_26374_p3 = (!underflow_18_not_9_fu_26357_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_18_not_9_fu_26357_p2.read()[0].to_bool())? p_Val2_115_mux_9_fu_26362_p3.read(): p_Val2_115_9_308_fu_26368_p3.read()); } void subconv_1x1_4_p::thread_this_assign_48_1_fu_26104_p3() { this_assign_48_1_fu_26104_p3 = (!underflow_18_not_fu_26087_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_18_not_fu_26087_p2.read()[0].to_bool())? p_Val2_115_mux_fu_26092_p3.read(): p_Val2_2_fu_26098_p3.read()); } void subconv_1x1_4_p::thread_this_assign_48_1_s_fu_26404_p3() { this_assign_48_1_s_fu_26404_p3 = (!underflow_18_not_s_fu_26387_p2.read()[0].is_01())? sc_lv<8>(): ((underflow_18_not_s_fu_26387_p2.read()[0].to_bool())? p_Val2_115_mux_s_fu_26392_p3.read(): p_Val2_115_s_310_fu_26398_p3.read()); } void subconv_1x1_4_p::thread_tmp100_fu_26083_p2() { tmp100_fu_26083_p2 = (brmerge40_demorgan_i_188_reg_35061.read() | tmp_167_reg_35056.read()); } void subconv_1x1_4_p::thread_tmp101_demorgan_fu_18762_p2() { tmp101_demorgan_fu_18762_p2 = (p_38_i_i1_1_fu_18731_p2.read() | brmerge40_demorgan_i_189_fu_18757_p2.read()); } void subconv_1x1_4_p::thread_tmp101_fu_18768_p2() { tmp101_fu_18768_p2 = (tmp101_demorgan_fu_18762_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp102_fu_20641_p2() { tmp102_fu_20641_p2 = (brmerge40_demorgan_i_189_reg_33358.read() | tmp_328_1_reg_33353.read()); } void subconv_1x1_4_p::thread_tmp103_demorgan_fu_24234_p2() { tmp103_demorgan_fu_24234_p2 = (p_38_i_i_1_fu_24203_p2.read() | brmerge40_demorgan_i_190_fu_24229_p2.read()); } void subconv_1x1_4_p::thread_tmp103_fu_24240_p2() { tmp103_fu_24240_p2 = (tmp103_demorgan_fu_24234_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp104_fu_26113_p2() { tmp104_fu_26113_p2 = (brmerge40_demorgan_i_190_reg_35086.read() | tmp_358_1_reg_35081.read()); } void subconv_1x1_4_p::thread_tmp105_demorgan_fu_18845_p2() { tmp105_demorgan_fu_18845_p2 = (p_38_i_i1_2_fu_18814_p2.read() | brmerge40_demorgan_i_191_fu_18840_p2.read()); } void subconv_1x1_4_p::thread_tmp105_fu_18851_p2() { tmp105_fu_18851_p2 = (tmp105_demorgan_fu_18845_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp106_fu_20671_p2() { tmp106_fu_20671_p2 = (brmerge40_demorgan_i_191_reg_33383.read() | tmp_328_2_reg_33378.read()); } void subconv_1x1_4_p::thread_tmp107_demorgan_fu_24317_p2() { tmp107_demorgan_fu_24317_p2 = (p_38_i_i_2_fu_24286_p2.read() | brmerge40_demorgan_i_192_fu_24312_p2.read()); } void subconv_1x1_4_p::thread_tmp107_fu_24323_p2() { tmp107_fu_24323_p2 = (tmp107_demorgan_fu_24317_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp108_fu_26143_p2() { tmp108_fu_26143_p2 = (brmerge40_demorgan_i_192_reg_35111.read() | tmp_358_2_reg_35106.read()); } void subconv_1x1_4_p::thread_tmp109_demorgan_fu_18928_p2() { tmp109_demorgan_fu_18928_p2 = (p_38_i_i1_3_fu_18897_p2.read() | brmerge40_demorgan_i_193_fu_18923_p2.read()); } void subconv_1x1_4_p::thread_tmp109_fu_18934_p2() { tmp109_fu_18934_p2 = (tmp109_demorgan_fu_18928_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp10_fu_9398_p2() { tmp10_fu_9398_p2 = (brmerge40_demorgan_i_143_reg_29147.read() | tmp_325_2_reg_29142.read()); } void subconv_1x1_4_p::thread_tmp110_fu_20701_p2() { tmp110_fu_20701_p2 = (brmerge40_demorgan_i_193_reg_33408.read() | tmp_328_3_reg_33403.read()); } void subconv_1x1_4_p::thread_tmp111_demorgan_fu_24400_p2() { tmp111_demorgan_fu_24400_p2 = (p_38_i_i_3_fu_24369_p2.read() | brmerge40_demorgan_i_194_fu_24395_p2.read()); } void subconv_1x1_4_p::thread_tmp111_fu_24406_p2() { tmp111_fu_24406_p2 = (tmp111_demorgan_fu_24400_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp112_fu_26173_p2() { tmp112_fu_26173_p2 = (brmerge40_demorgan_i_194_reg_35136.read() | tmp_358_3_reg_35131.read()); } void subconv_1x1_4_p::thread_tmp113_demorgan_fu_19011_p2() { tmp113_demorgan_fu_19011_p2 = (p_38_i_i1_4_fu_18980_p2.read() | brmerge40_demorgan_i_195_fu_19006_p2.read()); } void subconv_1x1_4_p::thread_tmp113_fu_19017_p2() { tmp113_fu_19017_p2 = (tmp113_demorgan_fu_19011_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp114_fu_20731_p2() { tmp114_fu_20731_p2 = (brmerge40_demorgan_i_195_reg_33433.read() | tmp_328_4_reg_33428.read()); } void subconv_1x1_4_p::thread_tmp115_demorgan_fu_24483_p2() { tmp115_demorgan_fu_24483_p2 = (p_38_i_i_4_fu_24452_p2.read() | brmerge40_demorgan_i_196_fu_24478_p2.read()); } void subconv_1x1_4_p::thread_tmp115_fu_24489_p2() { tmp115_fu_24489_p2 = (tmp115_demorgan_fu_24483_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp116_fu_26203_p2() { tmp116_fu_26203_p2 = (brmerge40_demorgan_i_196_reg_35161.read() | tmp_358_4_reg_35156.read()); } void subconv_1x1_4_p::thread_tmp117_demorgan_fu_19094_p2() { tmp117_demorgan_fu_19094_p2 = (p_38_i_i1_5_fu_19063_p2.read() | brmerge40_demorgan_i_197_fu_19089_p2.read()); } void subconv_1x1_4_p::thread_tmp117_fu_19100_p2() { tmp117_fu_19100_p2 = (tmp117_demorgan_fu_19094_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp118_fu_20761_p2() { tmp118_fu_20761_p2 = (brmerge40_demorgan_i_197_reg_33458.read() | tmp_328_5_reg_33453.read()); } void subconv_1x1_4_p::thread_tmp119_demorgan_fu_24566_p2() { tmp119_demorgan_fu_24566_p2 = (p_38_i_i_5_fu_24535_p2.read() | brmerge40_demorgan_i_198_fu_24561_p2.read()); } void subconv_1x1_4_p::thread_tmp119_fu_24572_p2() { tmp119_fu_24572_p2 = (tmp119_demorgan_fu_24566_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp11_demorgan_fu_13044_p2() { tmp11_demorgan_fu_13044_p2 = (p_38_i_i2_2_fu_13013_p2.read() | brmerge40_demorgan_i_144_fu_13039_p2.read()); } void subconv_1x1_4_p::thread_tmp11_fu_13050_p2() { tmp11_fu_13050_p2 = (tmp11_demorgan_fu_13044_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp120_fu_26233_p2() { tmp120_fu_26233_p2 = (brmerge40_demorgan_i_198_reg_35186.read() | tmp_358_5_reg_35181.read()); } void subconv_1x1_4_p::thread_tmp121_demorgan_fu_19177_p2() { tmp121_demorgan_fu_19177_p2 = (p_38_i_i1_6_fu_19146_p2.read() | brmerge40_demorgan_i_199_fu_19172_p2.read()); } void subconv_1x1_4_p::thread_tmp121_fu_19183_p2() { tmp121_fu_19183_p2 = (tmp121_demorgan_fu_19177_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp122_fu_20791_p2() { tmp122_fu_20791_p2 = (brmerge40_demorgan_i_199_reg_33483.read() | tmp_328_6_reg_33478.read()); } void subconv_1x1_4_p::thread_tmp123_demorgan_fu_24649_p2() { tmp123_demorgan_fu_24649_p2 = (p_38_i_i_6_fu_24618_p2.read() | brmerge40_demorgan_i_200_fu_24644_p2.read()); } void subconv_1x1_4_p::thread_tmp123_fu_24655_p2() { tmp123_fu_24655_p2 = (tmp123_demorgan_fu_24649_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp124_fu_26263_p2() { tmp124_fu_26263_p2 = (brmerge40_demorgan_i_200_reg_35211.read() | tmp_358_6_reg_35206.read()); } void subconv_1x1_4_p::thread_tmp125_demorgan_fu_19260_p2() { tmp125_demorgan_fu_19260_p2 = (p_38_i_i1_7_fu_19229_p2.read() | brmerge40_demorgan_i_201_fu_19255_p2.read()); } void subconv_1x1_4_p::thread_tmp125_fu_19266_p2() { tmp125_fu_19266_p2 = (tmp125_demorgan_fu_19260_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp126_fu_20821_p2() { tmp126_fu_20821_p2 = (brmerge40_demorgan_i_201_reg_33508.read() | tmp_328_7_reg_33503.read()); } void subconv_1x1_4_p::thread_tmp127_demorgan_fu_24732_p2() { tmp127_demorgan_fu_24732_p2 = (p_38_i_i_7_fu_24701_p2.read() | brmerge40_demorgan_i_202_fu_24727_p2.read()); } void subconv_1x1_4_p::thread_tmp127_fu_24738_p2() { tmp127_fu_24738_p2 = (tmp127_demorgan_fu_24732_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp128_fu_26293_p2() { tmp128_fu_26293_p2 = (brmerge40_demorgan_i_202_reg_35236.read() | tmp_358_7_reg_35231.read()); } void subconv_1x1_4_p::thread_tmp129_demorgan_fu_19343_p2() { tmp129_demorgan_fu_19343_p2 = (p_38_i_i1_8_fu_19312_p2.read() | brmerge40_demorgan_i_203_fu_19338_p2.read()); } void subconv_1x1_4_p::thread_tmp129_fu_19349_p2() { tmp129_fu_19349_p2 = (tmp129_demorgan_fu_19343_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp12_fu_14870_p2() { tmp12_fu_14870_p2 = (brmerge40_demorgan_i_144_reg_30875.read() | tmp_355_2_reg_30870.read()); } void subconv_1x1_4_p::thread_tmp130_fu_20851_p2() { tmp130_fu_20851_p2 = (brmerge40_demorgan_i_203_reg_33533.read() | tmp_328_8_reg_33528.read()); } void subconv_1x1_4_p::thread_tmp131_demorgan_fu_24815_p2() { tmp131_demorgan_fu_24815_p2 = (p_38_i_i_8_fu_24784_p2.read() | brmerge40_demorgan_i_204_fu_24810_p2.read()); } void subconv_1x1_4_p::thread_tmp131_fu_24821_p2() { tmp131_fu_24821_p2 = (tmp131_demorgan_fu_24815_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp132_fu_26323_p2() { tmp132_fu_26323_p2 = (brmerge40_demorgan_i_204_reg_35261.read() | tmp_358_8_reg_35256.read()); } void subconv_1x1_4_p::thread_tmp133_demorgan_fu_19426_p2() { tmp133_demorgan_fu_19426_p2 = (p_38_i_i1_9_fu_19395_p2.read() | brmerge40_demorgan_i_205_fu_19421_p2.read()); } void subconv_1x1_4_p::thread_tmp133_fu_19432_p2() { tmp133_fu_19432_p2 = (tmp133_demorgan_fu_19426_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp134_fu_20881_p2() { tmp134_fu_20881_p2 = (brmerge40_demorgan_i_205_reg_33558.read() | tmp_328_9_reg_33553.read()); } void subconv_1x1_4_p::thread_tmp135_demorgan_fu_24898_p2() { tmp135_demorgan_fu_24898_p2 = (p_38_i_i_9_fu_24867_p2.read() | brmerge40_demorgan_i_206_fu_24893_p2.read()); } void subconv_1x1_4_p::thread_tmp135_fu_24904_p2() { tmp135_fu_24904_p2 = (tmp135_demorgan_fu_24898_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp136_fu_26353_p2() { tmp136_fu_26353_p2 = (brmerge40_demorgan_i_206_reg_35286.read() | tmp_358_9_reg_35281.read()); } void subconv_1x1_4_p::thread_tmp137_demorgan_fu_19509_p2() { tmp137_demorgan_fu_19509_p2 = (p_38_i_i1_10_fu_19478_p2.read() | brmerge40_demorgan_i_207_fu_19504_p2.read()); } void subconv_1x1_4_p::thread_tmp137_fu_19515_p2() { tmp137_fu_19515_p2 = (tmp137_demorgan_fu_19509_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp138_fu_20911_p2() { tmp138_fu_20911_p2 = (brmerge40_demorgan_i_207_reg_33583.read() | tmp_328_s_reg_33578.read()); } void subconv_1x1_4_p::thread_tmp139_demorgan_fu_24981_p2() { tmp139_demorgan_fu_24981_p2 = (p_38_i_i_10_fu_24950_p2.read() | brmerge40_demorgan_i_208_fu_24976_p2.read()); } void subconv_1x1_4_p::thread_tmp139_fu_24987_p2() { tmp139_fu_24987_p2 = (tmp139_demorgan_fu_24981_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp13_demorgan_fu_7655_p2() { tmp13_demorgan_fu_7655_p2 = (p_38_i_i9_3_fu_7624_p2.read() | brmerge40_demorgan_i_145_fu_7650_p2.read()); } void subconv_1x1_4_p::thread_tmp13_fu_7661_p2() { tmp13_fu_7661_p2 = (tmp13_demorgan_fu_7655_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp140_fu_26383_p2() { tmp140_fu_26383_p2 = (brmerge40_demorgan_i_208_reg_35311.read() | tmp_358_s_reg_35306.read()); } void subconv_1x1_4_p::thread_tmp141_demorgan_fu_19592_p2() { tmp141_demorgan_fu_19592_p2 = (p_38_i_i1_s_fu_19561_p2.read() | brmerge40_demorgan_i_209_fu_19587_p2.read()); } void subconv_1x1_4_p::thread_tmp141_fu_19598_p2() { tmp141_fu_19598_p2 = (tmp141_demorgan_fu_19592_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp142_fu_20941_p2() { tmp142_fu_20941_p2 = (brmerge40_demorgan_i_209_reg_33608.read() | tmp_328_10_reg_33603.read()); } void subconv_1x1_4_p::thread_tmp143_demorgan_fu_25064_p2() { tmp143_demorgan_fu_25064_p2 = (p_38_i_i_11_fu_25033_p2.read() | brmerge40_demorgan_i_210_fu_25059_p2.read()); } void subconv_1x1_4_p::thread_tmp143_fu_25070_p2() { tmp143_fu_25070_p2 = (tmp143_demorgan_fu_25064_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp144_fu_26413_p2() { tmp144_fu_26413_p2 = (brmerge40_demorgan_i_210_reg_35336.read() | tmp_358_10_reg_35331.read()); } void subconv_1x1_4_p::thread_tmp145_demorgan_fu_19675_p2() { tmp145_demorgan_fu_19675_p2 = (p_38_i_i1_11_fu_19644_p2.read() | brmerge40_demorgan_i_211_fu_19670_p2.read()); } void subconv_1x1_4_p::thread_tmp145_fu_19681_p2() { tmp145_fu_19681_p2 = (tmp145_demorgan_fu_19675_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp146_fu_20971_p2() { tmp146_fu_20971_p2 = (brmerge40_demorgan_i_211_reg_33633.read() | tmp_328_11_reg_33628.read()); } void subconv_1x1_4_p::thread_tmp147_demorgan_fu_25147_p2() { tmp147_demorgan_fu_25147_p2 = (p_38_i_i_12_fu_25116_p2.read() | brmerge40_demorgan_i_212_fu_25142_p2.read()); } void subconv_1x1_4_p::thread_tmp147_fu_25153_p2() { tmp147_fu_25153_p2 = (tmp147_demorgan_fu_25147_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp148_fu_26443_p2() { tmp148_fu_26443_p2 = (brmerge40_demorgan_i_212_reg_35361.read() | tmp_358_11_reg_35356.read()); } void subconv_1x1_4_p::thread_tmp149_demorgan_fu_19758_p2() { tmp149_demorgan_fu_19758_p2 = (p_38_i_i1_12_fu_19727_p2.read() | brmerge40_demorgan_i_213_fu_19753_p2.read()); } void subconv_1x1_4_p::thread_tmp149_fu_19764_p2() { tmp149_fu_19764_p2 = (tmp149_demorgan_fu_19758_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp14_fu_9428_p2() { tmp14_fu_9428_p2 = (brmerge40_demorgan_i_145_reg_29172.read() | tmp_325_3_reg_29167.read()); } void subconv_1x1_4_p::thread_tmp150_fu_21001_p2() { tmp150_fu_21001_p2 = (brmerge40_demorgan_i_213_reg_33658.read() | tmp_328_12_reg_33653.read()); } void subconv_1x1_4_p::thread_tmp151_demorgan_fu_25230_p2() { tmp151_demorgan_fu_25230_p2 = (p_38_i_i_13_fu_25199_p2.read() | brmerge40_demorgan_i_214_fu_25225_p2.read()); } void subconv_1x1_4_p::thread_tmp151_fu_25236_p2() { tmp151_fu_25236_p2 = (tmp151_demorgan_fu_25230_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp152_fu_26473_p2() { tmp152_fu_26473_p2 = (brmerge40_demorgan_i_214_reg_35386.read() | tmp_358_12_reg_35381.read()); } void subconv_1x1_4_p::thread_tmp153_demorgan_fu_19841_p2() { tmp153_demorgan_fu_19841_p2 = (p_38_i_i1_13_fu_19810_p2.read() | brmerge40_demorgan_i_215_fu_19836_p2.read()); } void subconv_1x1_4_p::thread_tmp153_fu_19847_p2() { tmp153_fu_19847_p2 = (tmp153_demorgan_fu_19841_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp154_fu_21031_p2() { tmp154_fu_21031_p2 = (brmerge40_demorgan_i_215_reg_33683.read() | tmp_328_13_reg_33678.read()); } void subconv_1x1_4_p::thread_tmp155_demorgan_fu_25313_p2() { tmp155_demorgan_fu_25313_p2 = (p_38_i_i_14_fu_25282_p2.read() | brmerge40_demorgan_i_216_fu_25308_p2.read()); } void subconv_1x1_4_p::thread_tmp155_fu_25319_p2() { tmp155_fu_25319_p2 = (tmp155_demorgan_fu_25313_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp156_fu_26503_p2() { tmp156_fu_26503_p2 = (brmerge40_demorgan_i_216_reg_35411.read() | tmp_358_13_reg_35406.read()); } void subconv_1x1_4_p::thread_tmp157_demorgan_fu_19924_p2() { tmp157_demorgan_fu_19924_p2 = (p_38_i_i1_14_fu_19893_p2.read() | brmerge40_demorgan_i_217_fu_19919_p2.read()); } void subconv_1x1_4_p::thread_tmp157_fu_19930_p2() { tmp157_fu_19930_p2 = (tmp157_demorgan_fu_19924_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp158_fu_21061_p2() { tmp158_fu_21061_p2 = (brmerge40_demorgan_i_217_reg_33708.read() | tmp_328_14_reg_33703.read()); } void subconv_1x1_4_p::thread_tmp159_demorgan_fu_25396_p2() { tmp159_demorgan_fu_25396_p2 = (p_38_i_i_15_fu_25365_p2.read() | brmerge40_demorgan_i_218_fu_25391_p2.read()); } void subconv_1x1_4_p::thread_tmp159_fu_25402_p2() { tmp159_fu_25402_p2 = (tmp159_demorgan_fu_25396_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp15_demorgan_fu_13127_p2() { tmp15_demorgan_fu_13127_p2 = (p_38_i_i2_3_fu_13096_p2.read() | brmerge40_demorgan_i_146_fu_13122_p2.read()); } void subconv_1x1_4_p::thread_tmp15_fu_13133_p2() { tmp15_fu_13133_p2 = (tmp15_demorgan_fu_13127_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp160_fu_26533_p2() { tmp160_fu_26533_p2 = (brmerge40_demorgan_i_218_reg_35436.read() | tmp_358_14_reg_35431.read()); } void subconv_1x1_4_p::thread_tmp161_demorgan_fu_20007_p2() { tmp161_demorgan_fu_20007_p2 = (p_38_i_i1_15_fu_19976_p2.read() | brmerge40_demorgan_i_219_fu_20002_p2.read()); } void subconv_1x1_4_p::thread_tmp161_fu_20013_p2() { tmp161_fu_20013_p2 = (tmp161_demorgan_fu_20007_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp162_fu_21091_p2() { tmp162_fu_21091_p2 = (brmerge40_demorgan_i_219_reg_33733.read() | tmp_328_15_reg_33728.read()); } void subconv_1x1_4_p::thread_tmp163_demorgan_fu_25479_p2() { tmp163_demorgan_fu_25479_p2 = (p_38_i_i_16_fu_25448_p2.read() | brmerge40_demorgan_i_220_fu_25474_p2.read()); } void subconv_1x1_4_p::thread_tmp163_fu_25485_p2() { tmp163_fu_25485_p2 = (tmp163_demorgan_fu_25479_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp164_fu_26563_p2() { tmp164_fu_26563_p2 = (brmerge40_demorgan_i_220_reg_35461.read() | tmp_358_15_reg_35456.read()); } void subconv_1x1_4_p::thread_tmp165_demorgan_fu_20090_p2() { tmp165_demorgan_fu_20090_p2 = (p_38_i_i1_16_fu_20059_p2.read() | brmerge40_demorgan_i_221_fu_20085_p2.read()); } void subconv_1x1_4_p::thread_tmp165_fu_20096_p2() { tmp165_fu_20096_p2 = (tmp165_demorgan_fu_20090_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp166_fu_21121_p2() { tmp166_fu_21121_p2 = (brmerge40_demorgan_i_221_reg_33758.read() | tmp_328_16_reg_33753.read()); } void subconv_1x1_4_p::thread_tmp167_demorgan_fu_25562_p2() { tmp167_demorgan_fu_25562_p2 = (p_38_i_i_17_fu_25531_p2.read() | brmerge40_demorgan_i_222_fu_25557_p2.read()); } void subconv_1x1_4_p::thread_tmp167_fu_25568_p2() { tmp167_fu_25568_p2 = (tmp167_demorgan_fu_25562_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp168_fu_26593_p2() { tmp168_fu_26593_p2 = (brmerge40_demorgan_i_222_reg_35486.read() | tmp_358_16_reg_35481.read()); } void subconv_1x1_4_p::thread_tmp169_demorgan_fu_20173_p2() { tmp169_demorgan_fu_20173_p2 = (p_38_i_i1_17_fu_20142_p2.read() | brmerge40_demorgan_i_223_fu_20168_p2.read()); } void subconv_1x1_4_p::thread_tmp169_fu_20179_p2() { tmp169_fu_20179_p2 = (tmp169_demorgan_fu_20173_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp16_fu_14900_p2() { tmp16_fu_14900_p2 = (brmerge40_demorgan_i_146_reg_30900.read() | tmp_355_3_reg_30895.read()); } void subconv_1x1_4_p::thread_tmp170_fu_21151_p2() { tmp170_fu_21151_p2 = (brmerge40_demorgan_i_223_reg_33783.read() | tmp_328_17_reg_33778.read()); } void subconv_1x1_4_p::thread_tmp171_demorgan_fu_25645_p2() { tmp171_demorgan_fu_25645_p2 = (p_38_i_i_18_fu_25614_p2.read() | brmerge40_demorgan_i_224_fu_25640_p2.read()); } void subconv_1x1_4_p::thread_tmp171_fu_25651_p2() { tmp171_fu_25651_p2 = (tmp171_demorgan_fu_25645_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp172_fu_26623_p2() { tmp172_fu_26623_p2 = (brmerge40_demorgan_i_224_reg_35511.read() | tmp_358_17_reg_35506.read()); } void subconv_1x1_4_p::thread_tmp173_demorgan_fu_20256_p2() { tmp173_demorgan_fu_20256_p2 = (p_38_i_i1_18_fu_20225_p2.read() | brmerge40_demorgan_i_225_fu_20251_p2.read()); } void subconv_1x1_4_p::thread_tmp173_fu_20262_p2() { tmp173_fu_20262_p2 = (tmp173_demorgan_fu_20256_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp174_fu_21181_p2() { tmp174_fu_21181_p2 = (brmerge40_demorgan_i_225_reg_33808.read() | tmp_328_18_reg_33803.read()); } void subconv_1x1_4_p::thread_tmp175_demorgan_fu_25728_p2() { tmp175_demorgan_fu_25728_p2 = (p_38_i_i_19_fu_25697_p2.read() | brmerge40_demorgan_i_226_fu_25723_p2.read()); } void subconv_1x1_4_p::thread_tmp175_fu_25734_p2() { tmp175_fu_25734_p2 = (tmp175_demorgan_fu_25728_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp176_fu_26653_p2() { tmp176_fu_26653_p2 = (brmerge40_demorgan_i_226_reg_35536.read() | tmp_358_18_reg_35531.read()); } void subconv_1x1_4_p::thread_tmp177_demorgan_fu_20339_p2() { tmp177_demorgan_fu_20339_p2 = (p_38_i_i1_19_fu_20308_p2.read() | brmerge40_demorgan_i_227_fu_20334_p2.read()); } void subconv_1x1_4_p::thread_tmp177_fu_20345_p2() { tmp177_fu_20345_p2 = (tmp177_demorgan_fu_20339_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp178_fu_21211_p2() { tmp178_fu_21211_p2 = (brmerge40_demorgan_i_227_reg_33833.read() | tmp_328_19_reg_33828.read()); } void subconv_1x1_4_p::thread_tmp179_demorgan_fu_25811_p2() { tmp179_demorgan_fu_25811_p2 = (p_38_i_i_20_fu_25780_p2.read() | brmerge40_demorgan_i_228_fu_25806_p2.read()); } void subconv_1x1_4_p::thread_tmp179_fu_25817_p2() { tmp179_fu_25817_p2 = (tmp179_demorgan_fu_25811_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp17_demorgan_fu_7738_p2() { tmp17_demorgan_fu_7738_p2 = (p_38_i_i9_4_fu_7707_p2.read() | brmerge40_demorgan_i_147_fu_7733_p2.read()); } void subconv_1x1_4_p::thread_tmp17_fu_7744_p2() { tmp17_fu_7744_p2 = (tmp17_demorgan_fu_7738_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp180_fu_26683_p2() { tmp180_fu_26683_p2 = (brmerge40_demorgan_i_228_reg_35561.read() | tmp_358_19_reg_35556.read()); } void subconv_1x1_4_p::thread_tmp181_demorgan_fu_20422_p2() { tmp181_demorgan_fu_20422_p2 = (p_38_i_i1_20_fu_20391_p2.read() | brmerge40_demorgan_i_229_fu_20417_p2.read()); } void subconv_1x1_4_p::thread_tmp181_fu_20428_p2() { tmp181_fu_20428_p2 = (tmp181_demorgan_fu_20422_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp182_fu_21241_p2() { tmp182_fu_21241_p2 = (brmerge40_demorgan_i_229_reg_33858.read() | tmp_328_20_reg_33853.read()); } void subconv_1x1_4_p::thread_tmp183_demorgan_fu_25894_p2() { tmp183_demorgan_fu_25894_p2 = (p_38_i_i_21_fu_25863_p2.read() | brmerge40_demorgan_i_230_fu_25889_p2.read()); } void subconv_1x1_4_p::thread_tmp183_fu_25900_p2() { tmp183_fu_25900_p2 = (tmp183_demorgan_fu_25894_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp184_fu_26713_p2() { tmp184_fu_26713_p2 = (brmerge40_demorgan_i_230_reg_35586.read() | tmp_358_20_reg_35581.read()); } void subconv_1x1_4_p::thread_tmp185_demorgan_fu_20505_p2() { tmp185_demorgan_fu_20505_p2 = (p_38_i_i1_21_fu_20474_p2.read() | brmerge40_demorgan_i_231_fu_20500_p2.read()); } void subconv_1x1_4_p::thread_tmp185_fu_20511_p2() { tmp185_fu_20511_p2 = (tmp185_demorgan_fu_20505_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp186_fu_21271_p2() { tmp186_fu_21271_p2 = (brmerge40_demorgan_i_231_reg_33883.read() | tmp_328_21_reg_33878.read()); } void subconv_1x1_4_p::thread_tmp187_demorgan_fu_25977_p2() { tmp187_demorgan_fu_25977_p2 = (p_38_i_i_22_fu_25946_p2.read() | brmerge40_demorgan_i_232_fu_25972_p2.read()); } void subconv_1x1_4_p::thread_tmp187_fu_25983_p2() { tmp187_fu_25983_p2 = (tmp187_demorgan_fu_25977_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp188_fu_26743_p2() { tmp188_fu_26743_p2 = (brmerge40_demorgan_i_232_reg_35611.read() | tmp_358_21_reg_35606.read()); } void subconv_1x1_4_p::thread_tmp189_demorgan_fu_20588_p2() { tmp189_demorgan_fu_20588_p2 = (p_38_i_i1_22_fu_20557_p2.read() | brmerge40_demorgan_i_233_fu_20583_p2.read()); } void subconv_1x1_4_p::thread_tmp189_fu_20594_p2() { tmp189_fu_20594_p2 = (tmp189_demorgan_fu_20588_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp18_fu_9458_p2() { tmp18_fu_9458_p2 = (brmerge40_demorgan_i_147_reg_29197.read() | tmp_325_4_reg_29192.read()); } void subconv_1x1_4_p::thread_tmp190_fu_21301_p2() { tmp190_fu_21301_p2 = (brmerge40_demorgan_i_233_reg_33908.read() | tmp_328_22_reg_33903.read()); } void subconv_1x1_4_p::thread_tmp191_demorgan_fu_26060_p2() { tmp191_demorgan_fu_26060_p2 = (p_38_i_i_s_fu_26029_p2.read() | brmerge40_demorgan_i_234_fu_26055_p2.read()); } void subconv_1x1_4_p::thread_tmp191_fu_26066_p2() { tmp191_fu_26066_p2 = (tmp191_demorgan_fu_26060_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp192_fu_26773_p2() { tmp192_fu_26773_p2 = (brmerge40_demorgan_i_234_reg_35636.read() | tmp_358_22_reg_35631.read()); } void subconv_1x1_4_p::thread_tmp19_demorgan_fu_13210_p2() { tmp19_demorgan_fu_13210_p2 = (p_38_i_i2_4_fu_13179_p2.read() | brmerge40_demorgan_i_148_fu_13205_p2.read()); } void subconv_1x1_4_p::thread_tmp19_fu_13216_p2() { tmp19_fu_13216_p2 = (tmp19_demorgan_fu_13210_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp1_demorgan_fu_7406_p2() { tmp1_demorgan_fu_7406_p2 = (p_38_i_i9_fu_7375_p2.read() | brmerge40_demorgan_i_fu_7401_p2.read()); } void subconv_1x1_4_p::thread_tmp1_fu_7412_p2() { tmp1_fu_7412_p2 = (tmp1_demorgan_fu_7406_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp20_fu_14930_p2() { tmp20_fu_14930_p2 = (brmerge40_demorgan_i_148_reg_30925.read() | tmp_355_4_reg_30920.read()); } void subconv_1x1_4_p::thread_tmp21_demorgan_fu_7821_p2() { tmp21_demorgan_fu_7821_p2 = (p_38_i_i9_5_fu_7790_p2.read() | brmerge40_demorgan_i_149_fu_7816_p2.read()); } void subconv_1x1_4_p::thread_tmp21_fu_7827_p2() { tmp21_fu_7827_p2 = (tmp21_demorgan_fu_7821_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp22_fu_9488_p2() { tmp22_fu_9488_p2 = (brmerge40_demorgan_i_149_reg_29222.read() | tmp_325_5_reg_29217.read()); } void subconv_1x1_4_p::thread_tmp23_demorgan_fu_13293_p2() { tmp23_demorgan_fu_13293_p2 = (p_38_i_i2_5_fu_13262_p2.read() | brmerge40_demorgan_i_150_fu_13288_p2.read()); } void subconv_1x1_4_p::thread_tmp23_fu_13299_p2() { tmp23_fu_13299_p2 = (tmp23_demorgan_fu_13293_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp24_fu_14960_p2() { tmp24_fu_14960_p2 = (brmerge40_demorgan_i_150_reg_30950.read() | tmp_355_5_reg_30945.read()); } void subconv_1x1_4_p::thread_tmp25_demorgan_fu_7904_p2() { tmp25_demorgan_fu_7904_p2 = (p_38_i_i9_6_fu_7873_p2.read() | brmerge40_demorgan_i_151_fu_7899_p2.read()); } void subconv_1x1_4_p::thread_tmp25_fu_7910_p2() { tmp25_fu_7910_p2 = (tmp25_demorgan_fu_7904_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp26_fu_9518_p2() { tmp26_fu_9518_p2 = (brmerge40_demorgan_i_151_reg_29247.read() | tmp_325_6_reg_29242.read()); } void subconv_1x1_4_p::thread_tmp27_demorgan_fu_13376_p2() { tmp27_demorgan_fu_13376_p2 = (p_38_i_i2_6_fu_13345_p2.read() | brmerge40_demorgan_i_152_fu_13371_p2.read()); } void subconv_1x1_4_p::thread_tmp27_fu_13382_p2() { tmp27_fu_13382_p2 = (tmp27_demorgan_fu_13376_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp28_fu_14990_p2() { tmp28_fu_14990_p2 = (brmerge40_demorgan_i_152_reg_30975.read() | tmp_355_6_reg_30970.read()); } void subconv_1x1_4_p::thread_tmp29_demorgan_fu_7987_p2() { tmp29_demorgan_fu_7987_p2 = (p_38_i_i9_7_fu_7956_p2.read() | brmerge40_demorgan_i_153_fu_7982_p2.read()); } void subconv_1x1_4_p::thread_tmp29_fu_7993_p2() { tmp29_fu_7993_p2 = (tmp29_demorgan_fu_7987_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp2_fu_9338_p2() { tmp2_fu_9338_p2 = (brmerge40_demorgan_i_reg_29097.read() | tmp_149_reg_29092.read()); } void subconv_1x1_4_p::thread_tmp30_fu_9548_p2() { tmp30_fu_9548_p2 = (brmerge40_demorgan_i_153_reg_29272.read() | tmp_325_7_reg_29267.read()); } void subconv_1x1_4_p::thread_tmp31_demorgan_fu_13459_p2() { tmp31_demorgan_fu_13459_p2 = (p_38_i_i2_7_fu_13428_p2.read() | brmerge40_demorgan_i_154_fu_13454_p2.read()); } void subconv_1x1_4_p::thread_tmp31_fu_13465_p2() { tmp31_fu_13465_p2 = (tmp31_demorgan_fu_13459_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp32_fu_15020_p2() { tmp32_fu_15020_p2 = (brmerge40_demorgan_i_154_reg_31000.read() | tmp_355_7_reg_30995.read()); } void subconv_1x1_4_p::thread_tmp33_demorgan_fu_8070_p2() { tmp33_demorgan_fu_8070_p2 = (p_38_i_i9_8_fu_8039_p2.read() | brmerge40_demorgan_i_155_fu_8065_p2.read()); } void subconv_1x1_4_p::thread_tmp33_fu_8076_p2() { tmp33_fu_8076_p2 = (tmp33_demorgan_fu_8070_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp34_fu_9578_p2() { tmp34_fu_9578_p2 = (brmerge40_demorgan_i_155_reg_29297.read() | tmp_325_8_reg_29292.read()); } void subconv_1x1_4_p::thread_tmp35_demorgan_fu_13542_p2() { tmp35_demorgan_fu_13542_p2 = (p_38_i_i2_8_fu_13511_p2.read() | brmerge40_demorgan_i_156_fu_13537_p2.read()); } void subconv_1x1_4_p::thread_tmp35_fu_13548_p2() { tmp35_fu_13548_p2 = (tmp35_demorgan_fu_13542_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp36_fu_15050_p2() { tmp36_fu_15050_p2 = (brmerge40_demorgan_i_156_reg_31025.read() | tmp_355_8_reg_31020.read()); } void subconv_1x1_4_p::thread_tmp37_demorgan_fu_8153_p2() { tmp37_demorgan_fu_8153_p2 = (p_38_i_i9_9_fu_8122_p2.read() | brmerge40_demorgan_i_157_fu_8148_p2.read()); } void subconv_1x1_4_p::thread_tmp37_fu_8159_p2() { tmp37_fu_8159_p2 = (tmp37_demorgan_fu_8153_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp38_fu_9608_p2() { tmp38_fu_9608_p2 = (brmerge40_demorgan_i_157_reg_29322.read() | tmp_325_9_reg_29317.read()); } void subconv_1x1_4_p::thread_tmp39_demorgan_fu_13625_p2() { tmp39_demorgan_fu_13625_p2 = (p_38_i_i2_9_fu_13594_p2.read() | brmerge40_demorgan_i_158_fu_13620_p2.read()); } void subconv_1x1_4_p::thread_tmp39_fu_13631_p2() { tmp39_fu_13631_p2 = (tmp39_demorgan_fu_13625_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp3_demorgan_fu_12878_p2() { tmp3_demorgan_fu_12878_p2 = (p_38_i_i2_fu_12847_p2.read() | brmerge40_demorgan_i_235_fu_12873_p2.read()); } void subconv_1x1_4_p::thread_tmp3_fu_12884_p2() { tmp3_fu_12884_p2 = (tmp3_demorgan_fu_12878_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp40_fu_15080_p2() { tmp40_fu_15080_p2 = (brmerge40_demorgan_i_158_reg_31050.read() | tmp_355_9_reg_31045.read()); } void subconv_1x1_4_p::thread_tmp41_demorgan_fu_8236_p2() { tmp41_demorgan_fu_8236_p2 = (p_38_i_i9_s_fu_8205_p2.read() | brmerge40_demorgan_i_159_fu_8231_p2.read()); } void subconv_1x1_4_p::thread_tmp41_fu_8242_p2() { tmp41_fu_8242_p2 = (tmp41_demorgan_fu_8236_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp42_fu_9638_p2() { tmp42_fu_9638_p2 = (brmerge40_demorgan_i_159_reg_29347.read() | tmp_325_s_reg_29342.read()); } void subconv_1x1_4_p::thread_tmp43_demorgan_fu_13708_p2() { tmp43_demorgan_fu_13708_p2 = (p_38_i_i2_10_fu_13677_p2.read() | brmerge40_demorgan_i_160_fu_13703_p2.read()); } void subconv_1x1_4_p::thread_tmp43_fu_13714_p2() { tmp43_fu_13714_p2 = (tmp43_demorgan_fu_13708_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp44_fu_15110_p2() { tmp44_fu_15110_p2 = (brmerge40_demorgan_i_160_reg_31075.read() | tmp_355_s_reg_31070.read()); } void subconv_1x1_4_p::thread_tmp45_demorgan_fu_8319_p2() { tmp45_demorgan_fu_8319_p2 = (p_38_i_i9_10_fu_8288_p2.read() | brmerge40_demorgan_i_161_fu_8314_p2.read()); } void subconv_1x1_4_p::thread_tmp45_fu_8325_p2() { tmp45_fu_8325_p2 = (tmp45_demorgan_fu_8319_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp46_fu_9668_p2() { tmp46_fu_9668_p2 = (brmerge40_demorgan_i_161_reg_29372.read() | tmp_325_10_reg_29367.read()); } void subconv_1x1_4_p::thread_tmp47_demorgan_fu_13791_p2() { tmp47_demorgan_fu_13791_p2 = (p_38_i_i2_s_fu_13760_p2.read() | brmerge40_demorgan_i_162_fu_13786_p2.read()); } void subconv_1x1_4_p::thread_tmp47_fu_13797_p2() { tmp47_fu_13797_p2 = (tmp47_demorgan_fu_13791_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp48_fu_15140_p2() { tmp48_fu_15140_p2 = (brmerge40_demorgan_i_162_reg_31100.read() | tmp_355_10_reg_31095.read()); } void subconv_1x1_4_p::thread_tmp49_demorgan_fu_8402_p2() { tmp49_demorgan_fu_8402_p2 = (p_38_i_i9_11_fu_8371_p2.read() | brmerge40_demorgan_i_163_fu_8397_p2.read()); } void subconv_1x1_4_p::thread_tmp49_fu_8408_p2() { tmp49_fu_8408_p2 = (tmp49_demorgan_fu_8402_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp4_fu_14810_p2() { tmp4_fu_14810_p2 = (brmerge40_demorgan_i_235_reg_30825.read() | tmp_155_reg_30820.read()); } void subconv_1x1_4_p::thread_tmp50_fu_9698_p2() { tmp50_fu_9698_p2 = (brmerge40_demorgan_i_163_reg_29397.read() | tmp_325_11_reg_29392.read()); } void subconv_1x1_4_p::thread_tmp51_demorgan_fu_13874_p2() { tmp51_demorgan_fu_13874_p2 = (p_38_i_i2_11_fu_13843_p2.read() | brmerge40_demorgan_i_164_fu_13869_p2.read()); } void subconv_1x1_4_p::thread_tmp51_fu_13880_p2() { tmp51_fu_13880_p2 = (tmp51_demorgan_fu_13874_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp52_fu_15170_p2() { tmp52_fu_15170_p2 = (brmerge40_demorgan_i_164_reg_31125.read() | tmp_355_11_reg_31120.read()); } void subconv_1x1_4_p::thread_tmp53_demorgan_fu_8485_p2() { tmp53_demorgan_fu_8485_p2 = (p_38_i_i9_12_fu_8454_p2.read() | brmerge40_demorgan_i_165_fu_8480_p2.read()); } void subconv_1x1_4_p::thread_tmp53_fu_8491_p2() { tmp53_fu_8491_p2 = (tmp53_demorgan_fu_8485_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp54_fu_9728_p2() { tmp54_fu_9728_p2 = (brmerge40_demorgan_i_165_reg_29422.read() | tmp_325_12_reg_29417.read()); } void subconv_1x1_4_p::thread_tmp55_demorgan_fu_13957_p2() { tmp55_demorgan_fu_13957_p2 = (p_38_i_i2_12_fu_13926_p2.read() | brmerge40_demorgan_i_166_fu_13952_p2.read()); } void subconv_1x1_4_p::thread_tmp55_fu_13963_p2() { tmp55_fu_13963_p2 = (tmp55_demorgan_fu_13957_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp56_fu_15200_p2() { tmp56_fu_15200_p2 = (brmerge40_demorgan_i_166_reg_31150.read() | tmp_355_12_reg_31145.read()); } void subconv_1x1_4_p::thread_tmp57_demorgan_fu_8568_p2() { tmp57_demorgan_fu_8568_p2 = (p_38_i_i9_13_fu_8537_p2.read() | brmerge40_demorgan_i_167_fu_8563_p2.read()); } void subconv_1x1_4_p::thread_tmp57_fu_8574_p2() { tmp57_fu_8574_p2 = (tmp57_demorgan_fu_8568_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp58_fu_9758_p2() { tmp58_fu_9758_p2 = (brmerge40_demorgan_i_167_reg_29447.read() | tmp_325_13_reg_29442.read()); } void subconv_1x1_4_p::thread_tmp59_demorgan_fu_14040_p2() { tmp59_demorgan_fu_14040_p2 = (p_38_i_i2_13_fu_14009_p2.read() | brmerge40_demorgan_i_168_fu_14035_p2.read()); } void subconv_1x1_4_p::thread_tmp59_fu_14046_p2() { tmp59_fu_14046_p2 = (tmp59_demorgan_fu_14040_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp5_demorgan_fu_7489_p2() { tmp5_demorgan_fu_7489_p2 = (p_38_i_i9_1_fu_7458_p2.read() | brmerge40_demorgan_i_141_fu_7484_p2.read()); } void subconv_1x1_4_p::thread_tmp5_fu_7495_p2() { tmp5_fu_7495_p2 = (tmp5_demorgan_fu_7489_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp60_fu_15230_p2() { tmp60_fu_15230_p2 = (brmerge40_demorgan_i_168_reg_31175.read() | tmp_355_13_reg_31170.read()); } void subconv_1x1_4_p::thread_tmp61_demorgan_fu_8651_p2() { tmp61_demorgan_fu_8651_p2 = (p_38_i_i9_14_fu_8620_p2.read() | brmerge40_demorgan_i_169_fu_8646_p2.read()); } void subconv_1x1_4_p::thread_tmp61_fu_8657_p2() { tmp61_fu_8657_p2 = (tmp61_demorgan_fu_8651_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp62_fu_9788_p2() { tmp62_fu_9788_p2 = (brmerge40_demorgan_i_169_reg_29472.read() | tmp_325_14_reg_29467.read()); } void subconv_1x1_4_p::thread_tmp63_demorgan_fu_14123_p2() { tmp63_demorgan_fu_14123_p2 = (p_38_i_i2_14_fu_14092_p2.read() | brmerge40_demorgan_i_170_fu_14118_p2.read()); } void subconv_1x1_4_p::thread_tmp63_fu_14129_p2() { tmp63_fu_14129_p2 = (tmp63_demorgan_fu_14123_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp64_fu_15260_p2() { tmp64_fu_15260_p2 = (brmerge40_demorgan_i_170_reg_31200.read() | tmp_355_14_reg_31195.read()); } void subconv_1x1_4_p::thread_tmp65_demorgan_fu_8734_p2() { tmp65_demorgan_fu_8734_p2 = (p_38_i_i9_15_fu_8703_p2.read() | brmerge40_demorgan_i_171_fu_8729_p2.read()); } void subconv_1x1_4_p::thread_tmp65_fu_8740_p2() { tmp65_fu_8740_p2 = (tmp65_demorgan_fu_8734_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp66_fu_9818_p2() { tmp66_fu_9818_p2 = (brmerge40_demorgan_i_171_reg_29497.read() | tmp_325_15_reg_29492.read()); } void subconv_1x1_4_p::thread_tmp67_demorgan_fu_14206_p2() { tmp67_demorgan_fu_14206_p2 = (p_38_i_i2_15_fu_14175_p2.read() | brmerge40_demorgan_i_172_fu_14201_p2.read()); } void subconv_1x1_4_p::thread_tmp67_fu_14212_p2() { tmp67_fu_14212_p2 = (tmp67_demorgan_fu_14206_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp68_fu_15290_p2() { tmp68_fu_15290_p2 = (brmerge40_demorgan_i_172_reg_31225.read() | tmp_355_15_reg_31220.read()); } void subconv_1x1_4_p::thread_tmp69_demorgan_fu_8817_p2() { tmp69_demorgan_fu_8817_p2 = (p_38_i_i9_16_fu_8786_p2.read() | brmerge40_demorgan_i_173_fu_8812_p2.read()); } void subconv_1x1_4_p::thread_tmp69_fu_8823_p2() { tmp69_fu_8823_p2 = (tmp69_demorgan_fu_8817_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp6_fu_9368_p2() { tmp6_fu_9368_p2 = (brmerge40_demorgan_i_141_reg_29122.read() | tmp_325_1_reg_29117.read()); } void subconv_1x1_4_p::thread_tmp70_fu_9848_p2() { tmp70_fu_9848_p2 = (brmerge40_demorgan_i_173_reg_29522.read() | tmp_325_16_reg_29517.read()); } void subconv_1x1_4_p::thread_tmp71_demorgan_fu_14289_p2() { tmp71_demorgan_fu_14289_p2 = (p_38_i_i2_16_fu_14258_p2.read() | brmerge40_demorgan_i_174_fu_14284_p2.read()); } void subconv_1x1_4_p::thread_tmp71_fu_14295_p2() { tmp71_fu_14295_p2 = (tmp71_demorgan_fu_14289_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp72_fu_15320_p2() { tmp72_fu_15320_p2 = (brmerge40_demorgan_i_174_reg_31250.read() | tmp_355_16_reg_31245.read()); } void subconv_1x1_4_p::thread_tmp73_demorgan_fu_8900_p2() { tmp73_demorgan_fu_8900_p2 = (p_38_i_i9_17_fu_8869_p2.read() | brmerge40_demorgan_i_175_fu_8895_p2.read()); } void subconv_1x1_4_p::thread_tmp73_fu_8906_p2() { tmp73_fu_8906_p2 = (tmp73_demorgan_fu_8900_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp74_fu_9878_p2() { tmp74_fu_9878_p2 = (brmerge40_demorgan_i_175_reg_29547.read() | tmp_325_17_reg_29542.read()); } void subconv_1x1_4_p::thread_tmp75_demorgan_fu_14372_p2() { tmp75_demorgan_fu_14372_p2 = (p_38_i_i2_17_fu_14341_p2.read() | brmerge40_demorgan_i_176_fu_14367_p2.read()); } void subconv_1x1_4_p::thread_tmp75_fu_14378_p2() { tmp75_fu_14378_p2 = (tmp75_demorgan_fu_14372_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp76_fu_15350_p2() { tmp76_fu_15350_p2 = (brmerge40_demorgan_i_176_reg_31275.read() | tmp_355_17_reg_31270.read()); } void subconv_1x1_4_p::thread_tmp77_demorgan_fu_8983_p2() { tmp77_demorgan_fu_8983_p2 = (p_38_i_i9_18_fu_8952_p2.read() | brmerge40_demorgan_i_177_fu_8978_p2.read()); } void subconv_1x1_4_p::thread_tmp77_fu_8989_p2() { tmp77_fu_8989_p2 = (tmp77_demorgan_fu_8983_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp78_fu_9908_p2() { tmp78_fu_9908_p2 = (brmerge40_demorgan_i_177_reg_29572.read() | tmp_325_18_reg_29567.read()); } void subconv_1x1_4_p::thread_tmp79_demorgan_fu_14455_p2() { tmp79_demorgan_fu_14455_p2 = (p_38_i_i2_18_fu_14424_p2.read() | brmerge40_demorgan_i_178_fu_14450_p2.read()); } void subconv_1x1_4_p::thread_tmp79_fu_14461_p2() { tmp79_fu_14461_p2 = (tmp79_demorgan_fu_14455_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp7_demorgan_fu_12961_p2() { tmp7_demorgan_fu_12961_p2 = (p_38_i_i2_1_fu_12930_p2.read() | brmerge40_demorgan_i_142_fu_12956_p2.read()); } void subconv_1x1_4_p::thread_tmp7_fu_12967_p2() { tmp7_fu_12967_p2 = (tmp7_demorgan_fu_12961_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp80_fu_15380_p2() { tmp80_fu_15380_p2 = (brmerge40_demorgan_i_178_reg_31300.read() | tmp_355_18_reg_31295.read()); } void subconv_1x1_4_p::thread_tmp81_demorgan_fu_9066_p2() { tmp81_demorgan_fu_9066_p2 = (p_38_i_i9_19_fu_9035_p2.read() | brmerge40_demorgan_i_179_fu_9061_p2.read()); } void subconv_1x1_4_p::thread_tmp81_fu_9072_p2() { tmp81_fu_9072_p2 = (tmp81_demorgan_fu_9066_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp82_fu_9938_p2() { tmp82_fu_9938_p2 = (brmerge40_demorgan_i_179_reg_29597.read() | tmp_325_19_reg_29592.read()); } void subconv_1x1_4_p::thread_tmp83_demorgan_fu_14538_p2() { tmp83_demorgan_fu_14538_p2 = (p_38_i_i2_19_fu_14507_p2.read() | brmerge40_demorgan_i_180_fu_14533_p2.read()); } void subconv_1x1_4_p::thread_tmp83_fu_14544_p2() { tmp83_fu_14544_p2 = (tmp83_demorgan_fu_14538_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp84_fu_15410_p2() { tmp84_fu_15410_p2 = (brmerge40_demorgan_i_180_reg_31325.read() | tmp_355_19_reg_31320.read()); } void subconv_1x1_4_p::thread_tmp85_demorgan_fu_9149_p2() { tmp85_demorgan_fu_9149_p2 = (p_38_i_i9_20_fu_9118_p2.read() | brmerge40_demorgan_i_181_fu_9144_p2.read()); } void subconv_1x1_4_p::thread_tmp85_fu_9155_p2() { tmp85_fu_9155_p2 = (tmp85_demorgan_fu_9149_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp86_fu_9968_p2() { tmp86_fu_9968_p2 = (brmerge40_demorgan_i_181_reg_29622.read() | tmp_325_20_reg_29617.read()); } void subconv_1x1_4_p::thread_tmp87_demorgan_fu_14621_p2() { tmp87_demorgan_fu_14621_p2 = (p_38_i_i2_20_fu_14590_p2.read() | brmerge40_demorgan_i_182_fu_14616_p2.read()); } void subconv_1x1_4_p::thread_tmp87_fu_14627_p2() { tmp87_fu_14627_p2 = (tmp87_demorgan_fu_14621_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp88_fu_15440_p2() { tmp88_fu_15440_p2 = (brmerge40_demorgan_i_182_reg_31350.read() | tmp_355_20_reg_31345.read()); } void subconv_1x1_4_p::thread_tmp89_demorgan_fu_9232_p2() { tmp89_demorgan_fu_9232_p2 = (p_38_i_i9_21_fu_9201_p2.read() | brmerge40_demorgan_i_183_fu_9227_p2.read()); } void subconv_1x1_4_p::thread_tmp89_fu_9238_p2() { tmp89_fu_9238_p2 = (tmp89_demorgan_fu_9232_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp8_fu_14840_p2() { tmp8_fu_14840_p2 = (brmerge40_demorgan_i_142_reg_30850.read() | tmp_355_1_reg_30845.read()); } void subconv_1x1_4_p::thread_tmp90_fu_9998_p2() { tmp90_fu_9998_p2 = (brmerge40_demorgan_i_183_reg_29647.read() | tmp_325_21_reg_29642.read()); } void subconv_1x1_4_p::thread_tmp91_demorgan_fu_14704_p2() { tmp91_demorgan_fu_14704_p2 = (p_38_i_i2_21_fu_14673_p2.read() | brmerge40_demorgan_i_184_fu_14699_p2.read()); } void subconv_1x1_4_p::thread_tmp91_fu_14710_p2() { tmp91_fu_14710_p2 = (tmp91_demorgan_fu_14704_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp92_fu_15470_p2() { tmp92_fu_15470_p2 = (brmerge40_demorgan_i_184_reg_31375.read() | tmp_355_21_reg_31370.read()); } void subconv_1x1_4_p::thread_tmp93_demorgan_fu_9315_p2() { tmp93_demorgan_fu_9315_p2 = (p_38_i_i9_22_fu_9284_p2.read() | brmerge40_demorgan_i_185_fu_9310_p2.read()); } void subconv_1x1_4_p::thread_tmp93_fu_9321_p2() { tmp93_fu_9321_p2 = (tmp93_demorgan_fu_9315_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp94_fu_10028_p2() { tmp94_fu_10028_p2 = (brmerge40_demorgan_i_185_reg_29672.read() | tmp_325_22_reg_29667.read()); } void subconv_1x1_4_p::thread_tmp95_demorgan_fu_14787_p2() { tmp95_demorgan_fu_14787_p2 = (p_38_i_i2_22_fu_14756_p2.read() | brmerge40_demorgan_i_186_fu_14782_p2.read()); } void subconv_1x1_4_p::thread_tmp95_fu_14793_p2() { tmp95_fu_14793_p2 = (tmp95_demorgan_fu_14787_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp96_fu_15500_p2() { tmp96_fu_15500_p2 = (brmerge40_demorgan_i_186_reg_31400.read() | tmp_355_22_reg_31395.read()); } void subconv_1x1_4_p::thread_tmp97_demorgan_fu_18679_p2() { tmp97_demorgan_fu_18679_p2 = (p_38_i_i1_fu_18648_p2.read() | brmerge40_demorgan_i_187_fu_18674_p2.read()); } void subconv_1x1_4_p::thread_tmp97_fu_18685_p2() { tmp97_fu_18685_p2 = (tmp97_demorgan_fu_18679_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp98_fu_20611_p2() { tmp98_fu_20611_p2 = (brmerge40_demorgan_i_187_reg_33333.read() | tmp_161_reg_33328.read()); } void subconv_1x1_4_p::thread_tmp99_demorgan_fu_24151_p2() { tmp99_demorgan_fu_24151_p2 = (p_38_i_i_fu_24120_p2.read() | brmerge40_demorgan_i_188_fu_24146_p2.read()); } void subconv_1x1_4_p::thread_tmp99_fu_24157_p2() { tmp99_fu_24157_p2 = (tmp99_demorgan_fu_24151_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp9_demorgan_fu_7572_p2() { tmp9_demorgan_fu_7572_p2 = (p_38_i_i9_2_fu_7541_p2.read() | brmerge40_demorgan_i_143_fu_7567_p2.read()); } void subconv_1x1_4_p::thread_tmp9_fu_7578_p2() { tmp9_fu_7578_p2 = (tmp9_demorgan_fu_7572_p2.read() ^ ap_const_lv1_1); } void subconv_1x1_4_p::thread_tmp_1012_fu_4242_p1() { tmp_1012_fu_4242_p1 = grp_fu_4075_p2.read().range(6-1, 0); } void subconv_1x1_4_p::thread_tmp_1014_fu_4154_p3() { tmp_1014_fu_4154_p3 = esl_concat<4,3>(tmp_1013_reg_27161.read(), ap_const_lv3_0); } void subconv_1x1_4_p::thread_tmp_1015_fu_4169_p3() { tmp_1015_fu_4169_p3 = esl_concat<4,1>(tmp_1013_reg_27161.read(), ap_const_lv1_0); } void subconv_1x1_4_p::thread_tmp_1016_fu_4203_p1() { tmp_1016_fu_4203_p1 = tmp_319_fu_4197_p2.read().range(6-1, 0); } void subconv_1x1_4_p::thread_tmp_1017_fu_4215_p1() { tmp_1017_fu_4215_p1 = tmp_319_fu_4197_p2.read().range(8-1, 0); } void subconv_1x1_4_p::thread_tmp_1018_fu_4460_p1() { tmp_1018_fu_4460_p1 = tmp_338_fu_4455_p2.read().range(10-1, 0); } void subconv_1x1_4_p::thread_tmp_1019_fu_27049_p1() { tmp_1019_fu_27049_p1 = grp_fu_26856_p2.read().range(6-1, 0); } void subconv_1x1_4_p::thread_tmp_1021_fu_26930_p3() { tmp_1021_fu_26930_p3 = esl_concat<4,3>(tmp_1020_reg_35679.read(), ap_const_lv3_0); } void subconv_1x1_4_p::thread_tmp_1022_fu_26945_p3() { tmp_1022_fu_26945_p3 = esl_concat<4,1>(tmp_1020_reg_35679.read(), ap_const_lv1_0); } void subconv_1x1_4_p::thread_tmp_1023_fu_26979_p1() { tmp_1023_fu_26979_p1 = tmp_348_fu_26973_p2.read().range(6-1, 0); } void subconv_1x1_4_p::thread_tmp_1024_fu_26991_p1() { tmp_1024_fu_26991_p1 = tmp_348_fu_26973_p2.read().range(8-1, 0); } void subconv_1x1_4_p::thread_tmp_1025_fu_27107_p3() { tmp_1025_fu_27107_p3 = tmp_144_fu_27053_p26.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1028_fu_4629_p3() { tmp_1028_fu_4629_p3 = p_Val2_s_fu_4602_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1029_fu_4643_p3() { tmp_1029_fu_4643_p3 = p_Val2_30_fu_4637_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1030_fu_7346_p3() { tmp_1030_fu_7346_p3 = p_Val2_s_reg_27959.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1033_fu_10101_p3() { tmp_1033_fu_10101_p3 = p_Val2_34_fu_10074_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1034_fu_10115_p3() { tmp_1034_fu_10115_p3 = p_Val2_36_fu_10109_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1035_fu_12818_p3() { tmp_1035_fu_12818_p3 = p_Val2_34_reg_29687.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1038_fu_4744_p3() { tmp_1038_fu_4744_p3 = p_Val2_98_1_fu_4717_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1039_fu_4758_p3() { tmp_1039_fu_4758_p3 = p_Val2_100_1_fu_4752_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1040_fu_7429_p3() { tmp_1040_fu_7429_p3 = p_Val2_98_1_reg_28006.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1043_fu_10216_p3() { tmp_1043_fu_10216_p3 = p_Val2_108_1_fu_10189_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1044_fu_10230_p3() { tmp_1044_fu_10230_p3 = p_Val2_110_1_fu_10224_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1045_fu_12901_p3() { tmp_1045_fu_12901_p3 = p_Val2_108_1_reg_29734.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1048_fu_4859_p3() { tmp_1048_fu_4859_p3 = p_Val2_98_2_fu_4832_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1049_fu_4873_p3() { tmp_1049_fu_4873_p3 = p_Val2_100_2_fu_4867_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1050_fu_7512_p3() { tmp_1050_fu_7512_p3 = p_Val2_98_2_reg_28053.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1053_fu_10331_p3() { tmp_1053_fu_10331_p3 = p_Val2_108_2_fu_10304_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1054_fu_10345_p3() { tmp_1054_fu_10345_p3 = p_Val2_110_2_fu_10339_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1055_fu_12984_p3() { tmp_1055_fu_12984_p3 = p_Val2_108_2_reg_29781.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1058_fu_4974_p3() { tmp_1058_fu_4974_p3 = p_Val2_98_3_fu_4947_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1059_fu_4988_p3() { tmp_1059_fu_4988_p3 = p_Val2_100_3_fu_4982_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1060_fu_7595_p3() { tmp_1060_fu_7595_p3 = p_Val2_98_3_reg_28100.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1063_fu_10446_p3() { tmp_1063_fu_10446_p3 = p_Val2_108_3_fu_10419_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1064_fu_10460_p3() { tmp_1064_fu_10460_p3 = p_Val2_110_3_fu_10454_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1065_fu_13067_p3() { tmp_1065_fu_13067_p3 = p_Val2_108_3_reg_29828.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1068_fu_5089_p3() { tmp_1068_fu_5089_p3 = p_Val2_98_4_fu_5062_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1069_fu_5103_p3() { tmp_1069_fu_5103_p3 = p_Val2_100_4_fu_5097_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1070_fu_7678_p3() { tmp_1070_fu_7678_p3 = p_Val2_98_4_reg_28147.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1073_fu_10561_p3() { tmp_1073_fu_10561_p3 = p_Val2_108_4_fu_10534_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1074_fu_10575_p3() { tmp_1074_fu_10575_p3 = p_Val2_110_4_fu_10569_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1075_fu_13150_p3() { tmp_1075_fu_13150_p3 = p_Val2_108_4_reg_29875.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1078_fu_5204_p3() { tmp_1078_fu_5204_p3 = p_Val2_98_5_fu_5177_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1079_fu_5218_p3() { tmp_1079_fu_5218_p3 = p_Val2_100_5_fu_5212_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1080_fu_7761_p3() { tmp_1080_fu_7761_p3 = p_Val2_98_5_reg_28194.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1083_fu_10676_p3() { tmp_1083_fu_10676_p3 = p_Val2_108_5_fu_10649_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1084_fu_10690_p3() { tmp_1084_fu_10690_p3 = p_Val2_110_5_fu_10684_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1085_fu_13233_p3() { tmp_1085_fu_13233_p3 = p_Val2_108_5_reg_29922.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1088_fu_5319_p3() { tmp_1088_fu_5319_p3 = p_Val2_98_6_fu_5292_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1089_fu_5333_p3() { tmp_1089_fu_5333_p3 = p_Val2_100_6_fu_5327_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1090_fu_7844_p3() { tmp_1090_fu_7844_p3 = p_Val2_98_6_reg_28241.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1093_fu_10791_p3() { tmp_1093_fu_10791_p3 = p_Val2_108_6_fu_10764_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1094_fu_10805_p3() { tmp_1094_fu_10805_p3 = p_Val2_110_6_fu_10799_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1095_fu_13316_p3() { tmp_1095_fu_13316_p3 = p_Val2_108_6_reg_29969.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1098_fu_5434_p3() { tmp_1098_fu_5434_p3 = p_Val2_98_7_fu_5407_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1099_fu_5448_p3() { tmp_1099_fu_5448_p3 = p_Val2_100_7_fu_5442_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1100_fu_7927_p3() { tmp_1100_fu_7927_p3 = p_Val2_98_7_reg_28288.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1103_fu_10906_p3() { tmp_1103_fu_10906_p3 = p_Val2_108_7_fu_10879_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1104_fu_10920_p3() { tmp_1104_fu_10920_p3 = p_Val2_110_7_fu_10914_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1105_fu_13399_p3() { tmp_1105_fu_13399_p3 = p_Val2_108_7_reg_30016.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1108_fu_5549_p3() { tmp_1108_fu_5549_p3 = p_Val2_98_8_fu_5522_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1109_fu_5563_p3() { tmp_1109_fu_5563_p3 = p_Val2_100_8_fu_5557_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1110_fu_8010_p3() { tmp_1110_fu_8010_p3 = p_Val2_98_8_reg_28335.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1113_fu_11021_p3() { tmp_1113_fu_11021_p3 = p_Val2_108_8_fu_10994_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1114_fu_11035_p3() { tmp_1114_fu_11035_p3 = p_Val2_110_8_fu_11029_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1115_fu_13482_p3() { tmp_1115_fu_13482_p3 = p_Val2_108_8_reg_30063.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1118_fu_5664_p3() { tmp_1118_fu_5664_p3 = p_Val2_98_9_fu_5637_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1119_fu_5678_p3() { tmp_1119_fu_5678_p3 = p_Val2_100_9_fu_5672_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1120_fu_8093_p3() { tmp_1120_fu_8093_p3 = p_Val2_98_9_reg_28382.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1123_fu_11136_p3() { tmp_1123_fu_11136_p3 = p_Val2_108_9_fu_11109_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1124_fu_11150_p3() { tmp_1124_fu_11150_p3 = p_Val2_110_9_fu_11144_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1125_fu_13565_p3() { tmp_1125_fu_13565_p3 = p_Val2_108_9_reg_30110.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1128_fu_5779_p3() { tmp_1128_fu_5779_p3 = p_Val2_98_s_fu_5752_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1129_fu_5793_p3() { tmp_1129_fu_5793_p3 = p_Val2_100_s_fu_5787_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1130_fu_8176_p3() { tmp_1130_fu_8176_p3 = p_Val2_98_s_reg_28429.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1133_fu_11251_p3() { tmp_1133_fu_11251_p3 = p_Val2_108_s_fu_11224_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1134_fu_11265_p3() { tmp_1134_fu_11265_p3 = p_Val2_110_s_fu_11259_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1135_fu_13648_p3() { tmp_1135_fu_13648_p3 = p_Val2_108_s_reg_30157.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1138_fu_5894_p3() { tmp_1138_fu_5894_p3 = p_Val2_98_10_fu_5867_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1139_fu_5908_p3() { tmp_1139_fu_5908_p3 = p_Val2_100_10_fu_5902_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1140_fu_8259_p3() { tmp_1140_fu_8259_p3 = p_Val2_98_10_reg_28476.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1143_fu_11366_p3() { tmp_1143_fu_11366_p3 = p_Val2_108_10_fu_11339_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1144_fu_11380_p3() { tmp_1144_fu_11380_p3 = p_Val2_110_10_fu_11374_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1145_fu_13731_p3() { tmp_1145_fu_13731_p3 = p_Val2_108_10_reg_30204.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1148_fu_6009_p3() { tmp_1148_fu_6009_p3 = p_Val2_98_11_fu_5982_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1149_fu_6023_p3() { tmp_1149_fu_6023_p3 = p_Val2_100_11_fu_6017_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1150_fu_8342_p3() { tmp_1150_fu_8342_p3 = p_Val2_98_11_reg_28523.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1153_fu_11481_p3() { tmp_1153_fu_11481_p3 = p_Val2_108_11_fu_11454_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1154_fu_11495_p3() { tmp_1154_fu_11495_p3 = p_Val2_110_11_fu_11489_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1155_fu_13814_p3() { tmp_1155_fu_13814_p3 = p_Val2_108_11_reg_30251.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1158_fu_6124_p3() { tmp_1158_fu_6124_p3 = p_Val2_98_12_fu_6097_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1159_fu_6138_p3() { tmp_1159_fu_6138_p3 = p_Val2_100_12_fu_6132_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1160_fu_8425_p3() { tmp_1160_fu_8425_p3 = p_Val2_98_12_reg_28570.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1163_fu_11596_p3() { tmp_1163_fu_11596_p3 = p_Val2_108_12_fu_11569_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1164_fu_11610_p3() { tmp_1164_fu_11610_p3 = p_Val2_110_12_fu_11604_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1165_fu_13897_p3() { tmp_1165_fu_13897_p3 = p_Val2_108_12_reg_30298.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1168_fu_6239_p3() { tmp_1168_fu_6239_p3 = p_Val2_98_13_fu_6212_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1169_fu_6253_p3() { tmp_1169_fu_6253_p3 = p_Val2_100_13_fu_6247_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1170_fu_8508_p3() { tmp_1170_fu_8508_p3 = p_Val2_98_13_reg_28617.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1173_fu_11711_p3() { tmp_1173_fu_11711_p3 = p_Val2_108_13_fu_11684_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1174_fu_11725_p3() { tmp_1174_fu_11725_p3 = p_Val2_110_13_fu_11719_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1175_fu_13980_p3() { tmp_1175_fu_13980_p3 = p_Val2_108_13_reg_30345.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1178_fu_6354_p3() { tmp_1178_fu_6354_p3 = p_Val2_98_14_fu_6327_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1179_fu_6368_p3() { tmp_1179_fu_6368_p3 = p_Val2_100_14_fu_6362_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1180_fu_8591_p3() { tmp_1180_fu_8591_p3 = p_Val2_98_14_reg_28664.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1183_fu_11826_p3() { tmp_1183_fu_11826_p3 = p_Val2_108_14_fu_11799_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1184_fu_11840_p3() { tmp_1184_fu_11840_p3 = p_Val2_110_14_fu_11834_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1185_fu_14063_p3() { tmp_1185_fu_14063_p3 = p_Val2_108_14_reg_30392.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1188_fu_6469_p3() { tmp_1188_fu_6469_p3 = p_Val2_98_15_fu_6442_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1189_fu_6483_p3() { tmp_1189_fu_6483_p3 = p_Val2_100_15_fu_6477_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1190_fu_8674_p3() { tmp_1190_fu_8674_p3 = p_Val2_98_15_reg_28711.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1193_fu_11941_p3() { tmp_1193_fu_11941_p3 = p_Val2_108_15_fu_11914_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1194_fu_11955_p3() { tmp_1194_fu_11955_p3 = p_Val2_110_15_fu_11949_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1195_fu_14146_p3() { tmp_1195_fu_14146_p3 = p_Val2_108_15_reg_30439.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1198_fu_6584_p3() { tmp_1198_fu_6584_p3 = p_Val2_98_16_fu_6557_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1199_fu_6598_p3() { tmp_1199_fu_6598_p3 = p_Val2_100_16_fu_6592_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1200_fu_8757_p3() { tmp_1200_fu_8757_p3 = p_Val2_98_16_reg_28758.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1203_fu_12056_p3() { tmp_1203_fu_12056_p3 = p_Val2_108_16_fu_12029_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1204_fu_12070_p3() { tmp_1204_fu_12070_p3 = p_Val2_110_16_fu_12064_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1205_fu_14229_p3() { tmp_1205_fu_14229_p3 = p_Val2_108_16_reg_30486.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1208_fu_6699_p3() { tmp_1208_fu_6699_p3 = p_Val2_98_17_fu_6672_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1209_fu_6713_p3() { tmp_1209_fu_6713_p3 = p_Val2_100_17_fu_6707_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1210_fu_8840_p3() { tmp_1210_fu_8840_p3 = p_Val2_98_17_reg_28805.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1213_fu_12171_p3() { tmp_1213_fu_12171_p3 = p_Val2_108_17_fu_12144_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1214_fu_12185_p3() { tmp_1214_fu_12185_p3 = p_Val2_110_17_fu_12179_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1215_fu_14312_p3() { tmp_1215_fu_14312_p3 = p_Val2_108_17_reg_30533.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1218_fu_6814_p3() { tmp_1218_fu_6814_p3 = p_Val2_98_18_fu_6787_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1219_fu_6828_p3() { tmp_1219_fu_6828_p3 = p_Val2_100_18_fu_6822_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1220_fu_8923_p3() { tmp_1220_fu_8923_p3 = p_Val2_98_18_reg_28852.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1223_fu_12286_p3() { tmp_1223_fu_12286_p3 = p_Val2_108_18_fu_12259_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1224_fu_12300_p3() { tmp_1224_fu_12300_p3 = p_Val2_110_18_fu_12294_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1225_fu_14395_p3() { tmp_1225_fu_14395_p3 = p_Val2_108_18_reg_30580.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1228_fu_6929_p3() { tmp_1228_fu_6929_p3 = p_Val2_98_19_fu_6902_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1229_fu_6943_p3() { tmp_1229_fu_6943_p3 = p_Val2_100_19_fu_6937_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1230_fu_9006_p3() { tmp_1230_fu_9006_p3 = p_Val2_98_19_reg_28899.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1233_fu_12401_p3() { tmp_1233_fu_12401_p3 = p_Val2_108_19_fu_12374_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1234_fu_12415_p3() { tmp_1234_fu_12415_p3 = p_Val2_110_19_fu_12409_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1235_fu_14478_p3() { tmp_1235_fu_14478_p3 = p_Val2_108_19_reg_30627.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1238_fu_7044_p3() { tmp_1238_fu_7044_p3 = p_Val2_98_20_fu_7017_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1239_fu_7058_p3() { tmp_1239_fu_7058_p3 = p_Val2_100_20_fu_7052_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1240_fu_9089_p3() { tmp_1240_fu_9089_p3 = p_Val2_98_20_reg_28946.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1243_fu_12516_p3() { tmp_1243_fu_12516_p3 = p_Val2_108_20_fu_12489_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1244_fu_12530_p3() { tmp_1244_fu_12530_p3 = p_Val2_110_20_fu_12524_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1245_fu_14561_p3() { tmp_1245_fu_14561_p3 = p_Val2_108_20_reg_30674.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1248_fu_7159_p3() { tmp_1248_fu_7159_p3 = p_Val2_98_21_fu_7132_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1249_fu_7173_p3() { tmp_1249_fu_7173_p3 = p_Val2_100_21_fu_7167_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1250_fu_9172_p3() { tmp_1250_fu_9172_p3 = p_Val2_98_21_reg_28993.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1253_fu_12631_p3() { tmp_1253_fu_12631_p3 = p_Val2_108_21_fu_12604_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1254_fu_12645_p3() { tmp_1254_fu_12645_p3 = p_Val2_110_21_fu_12639_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1255_fu_14644_p3() { tmp_1255_fu_14644_p3 = p_Val2_108_21_reg_30721.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1258_fu_7274_p3() { tmp_1258_fu_7274_p3 = p_Val2_98_22_fu_7247_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1259_fu_7288_p3() { tmp_1259_fu_7288_p3 = p_Val2_100_22_fu_7282_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1260_fu_9255_p3() { tmp_1260_fu_9255_p3 = p_Val2_98_22_reg_29040.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1263_fu_12746_p3() { tmp_1263_fu_12746_p3 = p_Val2_108_22_fu_12719_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1264_fu_12760_p3() { tmp_1264_fu_12760_p3 = p_Val2_110_22_fu_12754_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1265_fu_14727_p3() { tmp_1265_fu_14727_p3 = p_Val2_108_22_reg_30768.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1266_fu_15727_p1() { tmp_1266_fu_15727_p1 = tmp_354_fu_15722_p2.read().range(10-1, 0); } void subconv_1x1_4_p::thread_tmp_1269_fu_15902_p3() { tmp_1269_fu_15902_p3 = p_Val2_31_fu_15875_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1270_fu_15916_p3() { tmp_1270_fu_15916_p3 = p_Val2_33_fu_15910_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1271_fu_18619_p3() { tmp_1271_fu_18619_p3 = p_Val2_31_reg_32195.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1274_fu_21374_p3() { tmp_1274_fu_21374_p3 = p_Val2_37_fu_21347_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1275_fu_21388_p3() { tmp_1275_fu_21388_p3 = p_Val2_39_fu_21382_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1276_fu_24091_p3() { tmp_1276_fu_24091_p3 = p_Val2_37_reg_33923.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1279_fu_16017_p3() { tmp_1279_fu_16017_p3 = p_Val2_103_1_fu_15990_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1280_fu_16031_p3() { tmp_1280_fu_16031_p3 = p_Val2_105_1_fu_16025_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1281_fu_18702_p3() { tmp_1281_fu_18702_p3 = p_Val2_103_1_reg_32242.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1284_fu_21489_p3() { tmp_1284_fu_21489_p3 = p_Val2_113_1_fu_21462_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1285_fu_21503_p3() { tmp_1285_fu_21503_p3 = p_Val2_115_1_fu_21497_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1286_fu_24174_p3() { tmp_1286_fu_24174_p3 = p_Val2_113_1_reg_33970.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1289_fu_16132_p3() { tmp_1289_fu_16132_p3 = p_Val2_103_2_fu_16105_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1290_fu_16146_p3() { tmp_1290_fu_16146_p3 = p_Val2_105_2_fu_16140_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1291_fu_18785_p3() { tmp_1291_fu_18785_p3 = p_Val2_103_2_reg_32289.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1294_fu_21604_p3() { tmp_1294_fu_21604_p3 = p_Val2_113_2_fu_21577_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1295_fu_21618_p3() { tmp_1295_fu_21618_p3 = p_Val2_115_2_fu_21612_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1296_fu_24257_p3() { tmp_1296_fu_24257_p3 = p_Val2_113_2_reg_34017.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1299_fu_16247_p3() { tmp_1299_fu_16247_p3 = p_Val2_103_3_fu_16220_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1300_fu_16261_p3() { tmp_1300_fu_16261_p3 = p_Val2_105_3_fu_16255_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1301_fu_18868_p3() { tmp_1301_fu_18868_p3 = p_Val2_103_3_reg_32336.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1304_fu_21719_p3() { tmp_1304_fu_21719_p3 = p_Val2_113_3_fu_21692_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1305_fu_21733_p3() { tmp_1305_fu_21733_p3 = p_Val2_115_3_fu_21727_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1306_fu_24340_p3() { tmp_1306_fu_24340_p3 = p_Val2_113_3_reg_34064.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1309_fu_16362_p3() { tmp_1309_fu_16362_p3 = p_Val2_103_4_fu_16335_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1310_fu_16376_p3() { tmp_1310_fu_16376_p3 = p_Val2_105_4_fu_16370_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1311_fu_18951_p3() { tmp_1311_fu_18951_p3 = p_Val2_103_4_reg_32383.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1314_fu_21834_p3() { tmp_1314_fu_21834_p3 = p_Val2_113_4_fu_21807_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1315_fu_21848_p3() { tmp_1315_fu_21848_p3 = p_Val2_115_4_fu_21842_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1316_fu_24423_p3() { tmp_1316_fu_24423_p3 = p_Val2_113_4_reg_34111.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1319_fu_16477_p3() { tmp_1319_fu_16477_p3 = p_Val2_103_5_fu_16450_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1320_fu_16491_p3() { tmp_1320_fu_16491_p3 = p_Val2_105_5_fu_16485_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1321_fu_19034_p3() { tmp_1321_fu_19034_p3 = p_Val2_103_5_reg_32430.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1324_fu_21949_p3() { tmp_1324_fu_21949_p3 = p_Val2_113_5_fu_21922_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1325_fu_21963_p3() { tmp_1325_fu_21963_p3 = p_Val2_115_5_fu_21957_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1326_fu_24506_p3() { tmp_1326_fu_24506_p3 = p_Val2_113_5_reg_34158.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1329_fu_16592_p3() { tmp_1329_fu_16592_p3 = p_Val2_103_6_fu_16565_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1330_fu_16606_p3() { tmp_1330_fu_16606_p3 = p_Val2_105_6_fu_16600_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1331_fu_19117_p3() { tmp_1331_fu_19117_p3 = p_Val2_103_6_reg_32477.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1334_fu_22064_p3() { tmp_1334_fu_22064_p3 = p_Val2_113_6_fu_22037_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1335_fu_22078_p3() { tmp_1335_fu_22078_p3 = p_Val2_115_6_fu_22072_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1336_fu_24589_p3() { tmp_1336_fu_24589_p3 = p_Val2_113_6_reg_34205.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1339_fu_16707_p3() { tmp_1339_fu_16707_p3 = p_Val2_103_7_fu_16680_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1340_fu_16721_p3() { tmp_1340_fu_16721_p3 = p_Val2_105_7_fu_16715_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1341_fu_19200_p3() { tmp_1341_fu_19200_p3 = p_Val2_103_7_reg_32524.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1344_fu_22179_p3() { tmp_1344_fu_22179_p3 = p_Val2_113_7_fu_22152_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1345_fu_22193_p3() { tmp_1345_fu_22193_p3 = p_Val2_115_7_fu_22187_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1346_fu_24672_p3() { tmp_1346_fu_24672_p3 = p_Val2_113_7_reg_34252.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1349_fu_16822_p3() { tmp_1349_fu_16822_p3 = p_Val2_103_8_fu_16795_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1350_fu_16836_p3() { tmp_1350_fu_16836_p3 = p_Val2_105_8_fu_16830_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1351_fu_19283_p3() { tmp_1351_fu_19283_p3 = p_Val2_103_8_reg_32571.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1354_fu_22294_p3() { tmp_1354_fu_22294_p3 = p_Val2_113_8_fu_22267_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1355_fu_22308_p3() { tmp_1355_fu_22308_p3 = p_Val2_115_8_fu_22302_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1356_fu_24755_p3() { tmp_1356_fu_24755_p3 = p_Val2_113_8_reg_34299.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1359_fu_16937_p3() { tmp_1359_fu_16937_p3 = p_Val2_103_9_fu_16910_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1360_fu_16951_p3() { tmp_1360_fu_16951_p3 = p_Val2_105_9_fu_16945_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1361_fu_19366_p3() { tmp_1361_fu_19366_p3 = p_Val2_103_9_reg_32618.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1364_fu_22409_p3() { tmp_1364_fu_22409_p3 = p_Val2_113_9_fu_22382_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1365_fu_22423_p3() { tmp_1365_fu_22423_p3 = p_Val2_115_9_fu_22417_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1366_fu_24838_p3() { tmp_1366_fu_24838_p3 = p_Val2_113_9_reg_34346.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1369_fu_17052_p3() { tmp_1369_fu_17052_p3 = p_Val2_103_s_fu_17025_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1370_fu_17066_p3() { tmp_1370_fu_17066_p3 = p_Val2_105_s_fu_17060_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1371_fu_19449_p3() { tmp_1371_fu_19449_p3 = p_Val2_103_s_reg_32665.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1374_fu_22524_p3() { tmp_1374_fu_22524_p3 = p_Val2_113_s_fu_22497_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1375_fu_22538_p3() { tmp_1375_fu_22538_p3 = p_Val2_115_s_fu_22532_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1376_fu_24921_p3() { tmp_1376_fu_24921_p3 = p_Val2_113_s_reg_34393.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1379_fu_17167_p3() { tmp_1379_fu_17167_p3 = p_Val2_103_10_fu_17140_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1380_fu_17181_p3() { tmp_1380_fu_17181_p3 = p_Val2_105_10_fu_17175_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1381_fu_19532_p3() { tmp_1381_fu_19532_p3 = p_Val2_103_10_reg_32712.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1384_fu_22639_p3() { tmp_1384_fu_22639_p3 = p_Val2_113_10_fu_22612_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1385_fu_22653_p3() { tmp_1385_fu_22653_p3 = p_Val2_115_10_fu_22647_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1386_fu_25004_p3() { tmp_1386_fu_25004_p3 = p_Val2_113_10_reg_34440.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1389_fu_17282_p3() { tmp_1389_fu_17282_p3 = p_Val2_103_11_fu_17255_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1390_fu_17296_p3() { tmp_1390_fu_17296_p3 = p_Val2_105_11_fu_17290_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1391_fu_19615_p3() { tmp_1391_fu_19615_p3 = p_Val2_103_11_reg_32759.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1394_fu_22754_p3() { tmp_1394_fu_22754_p3 = p_Val2_113_11_fu_22727_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1395_fu_22768_p3() { tmp_1395_fu_22768_p3 = p_Val2_115_11_fu_22762_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1396_fu_25087_p3() { tmp_1396_fu_25087_p3 = p_Val2_113_11_reg_34487.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1399_fu_17397_p3() { tmp_1399_fu_17397_p3 = p_Val2_103_12_fu_17370_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1400_fu_17411_p3() { tmp_1400_fu_17411_p3 = p_Val2_105_12_fu_17405_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1401_fu_19698_p3() { tmp_1401_fu_19698_p3 = p_Val2_103_12_reg_32806.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1404_fu_22869_p3() { tmp_1404_fu_22869_p3 = p_Val2_113_12_fu_22842_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1405_fu_22883_p3() { tmp_1405_fu_22883_p3 = p_Val2_115_12_fu_22877_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1406_fu_25170_p3() { tmp_1406_fu_25170_p3 = p_Val2_113_12_reg_34534.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1409_fu_17512_p3() { tmp_1409_fu_17512_p3 = p_Val2_103_13_fu_17485_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1410_fu_17526_p3() { tmp_1410_fu_17526_p3 = p_Val2_105_13_fu_17520_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1411_fu_19781_p3() { tmp_1411_fu_19781_p3 = p_Val2_103_13_reg_32853.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1414_fu_22984_p3() { tmp_1414_fu_22984_p3 = p_Val2_113_13_fu_22957_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1415_fu_22998_p3() { tmp_1415_fu_22998_p3 = p_Val2_115_13_fu_22992_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1416_fu_25253_p3() { tmp_1416_fu_25253_p3 = p_Val2_113_13_reg_34581.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1419_fu_17627_p3() { tmp_1419_fu_17627_p3 = p_Val2_103_14_fu_17600_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1420_fu_17641_p3() { tmp_1420_fu_17641_p3 = p_Val2_105_14_fu_17635_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1421_fu_19864_p3() { tmp_1421_fu_19864_p3 = p_Val2_103_14_reg_32900.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1424_fu_23099_p3() { tmp_1424_fu_23099_p3 = p_Val2_113_14_fu_23072_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1425_fu_23113_p3() { tmp_1425_fu_23113_p3 = p_Val2_115_14_fu_23107_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1426_fu_25336_p3() { tmp_1426_fu_25336_p3 = p_Val2_113_14_reg_34628.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1429_fu_17742_p3() { tmp_1429_fu_17742_p3 = p_Val2_103_15_fu_17715_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1430_fu_17756_p3() { tmp_1430_fu_17756_p3 = p_Val2_105_15_fu_17750_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1431_fu_19947_p3() { tmp_1431_fu_19947_p3 = p_Val2_103_15_reg_32947.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1434_fu_23214_p3() { tmp_1434_fu_23214_p3 = p_Val2_113_15_fu_23187_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1435_fu_23228_p3() { tmp_1435_fu_23228_p3 = p_Val2_115_15_fu_23222_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1436_fu_25419_p3() { tmp_1436_fu_25419_p3 = p_Val2_113_15_reg_34675.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1439_fu_17857_p3() { tmp_1439_fu_17857_p3 = p_Val2_103_16_fu_17830_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1440_fu_17871_p3() { tmp_1440_fu_17871_p3 = p_Val2_105_16_fu_17865_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1441_fu_20030_p3() { tmp_1441_fu_20030_p3 = p_Val2_103_16_reg_32994.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1444_fu_23329_p3() { tmp_1444_fu_23329_p3 = p_Val2_113_16_fu_23302_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1445_fu_23343_p3() { tmp_1445_fu_23343_p3 = p_Val2_115_16_fu_23337_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1446_fu_25502_p3() { tmp_1446_fu_25502_p3 = p_Val2_113_16_reg_34722.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1449_fu_17972_p3() { tmp_1449_fu_17972_p3 = p_Val2_103_17_fu_17945_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_144_fu_27053_p25() { tmp_144_fu_27053_p25 = esl_zext<32,7>(grp_fu_26856_p2.read()); } void subconv_1x1_4_p::thread_tmp_1450_fu_17986_p3() { tmp_1450_fu_17986_p3 = p_Val2_105_17_fu_17980_p2.read().range(7, 7); } void subconv_1x1_4_p::thread_tmp_1451_fu_20113_p3() { tmp_1451_fu_20113_p3 = p_Val2_103_17_reg_33041.read().range(14, 14); } void subconv_1x1_4_p::thread_tmp_1454_fu_23444_p3() { tmp_1454_fu_23444_p3 = p_Val2_113_17_fu_23417_p2.read().range(13, 13); } void subconv_1x1_4_p::thread_tmp_1455_fu_23458_p3() { tmp_1455_fu_23458_p3 = p_Val2_115_17_fu_23452_p2.read().range(7, 7); } }
[ "jzfengziyan@gmail.com" ]
jzfengziyan@gmail.com
5ae9859185afcb4eba5f4a7da968e9c6785e301f
bb2381d2c243729a063dd137b38c13905427790f
/Source/Components/editingcamera.cpp
7391a7c783e9705d214e3cdf30b100a57bc0c4f0
[ "MIT" ]
permissive
JTippetts/U3DTerrainEditor
1840db2228d41f33ac2fbe8c7e6c1d6be0015ceb
90625d5ad9fb1720f10b8d054aa67d55465c7dff
refs/heads/master
2022-11-23T20:23:36.439180
2022-11-22T19:58:48
2022-11-22T19:58:48
29,431,415
120
41
null
2017-05-02T17:32:36
2015-01-18T16:03:52
HTML
UTF-8
C++
false
false
6,959
cpp
#include "editingcamera.h" #include <Urho3D/Graphics/Renderer.h> #include <Urho3D/Graphics/Graphics.h> #include <Urho3D/UI/UI.h> #include <Urho3D/Input/Input.h> #include <Urho3D/Graphics/Drawable.h> #include <Urho3D/Graphics/OctreeQuery.h> #include <Urho3D/Graphics/Octree.h> #include <Urho3D/IO/Log.h> #include "../terraincontext.h" EditingCamera::EditingCamera(Context *context) : LogicComponent(context), pitch_(30), yaw_(180), follow_(10), minfollow_(0), maxfollow_(20), curfollow_(10), followvel_(0), zoomspeed_(1000.0f), offset_(6.0f), clipdistance_(600), scrollspeed_(64.0f), allowpitch_(true), allowspin_(true), allowzoom_(true), clipsolid_(false), tracksurface_(true), anglenode_(nullptr), cameranode_(nullptr), terrainContext_(nullptr), camera_(nullptr) { SetUpdateEventMask(USE_UPDATE); } void EditingCamera::DelayedStart() { anglenode_ = node_->CreateChild("AngleNode"); cameranode_ = anglenode_->CreateChild("CameraNode"); camera_ = cameranode_->CreateComponent<Camera>(); viewport_ = new Viewport(context_, node_->GetScene(), camera_); GetSubsystem<Renderer>()->SetViewport(0, viewport_); node_->SetRotation(Quaternion(yaw_, Vector3(0,1,0))); cameranode_->SetPosition(Vector3(0,0,-follow_)); anglenode_->SetRotation(Quaternion(pitch_, Vector3(1,0,0))); node_->SetPosition(Vector3(0,0,0)); } Ray EditingCamera::GetScreenRay(const IntVector2 &mousepos) { auto graphics=GetSubsystem<Graphics>(); if(!camera_) return Ray(); return camera_->GetScreenRay((float)mousepos.x_ / (float)graphics->GetWidth(), (float)mousepos.y_/(float)graphics->GetHeight()); } Ray EditingCamera::GetMouseRay() { if(!camera_) return Ray(); auto input=GetSubsystem<Input>(); auto ui=GetSubsystem<UI>(); if(input->IsMouseVisible()) return GetScreenRay(input->GetMousePosition()); else return GetScreenRay(ui->GetCursor()->GetPosition()); } bool EditingCamera::GetScreenGround(Vector3 &out, const IntVector2 &mousepos) { if(!camera_) return false; Ray ray=GetScreenRay(mousepos); float hitdist=ray.HitDistance(Plane(Vector3(0,1,0), Vector3(0,0,0))); if(hitdist==M_INFINITY) return false; out=ray.origin_ + ray.direction_*hitdist; return true; } bool EditingCamera::GetMouseGround(Vector3 &out) { if(!camera_) return false; auto input=GetSubsystem<Input>(); auto ui=GetSubsystem<UI>(); if(input->IsMouseVisible()) return GetScreenGround(out, input->GetMousePosition()); else return GetScreenGround(out, ui->GetUICursorPosition()); } bool EditingCamera::PickGround(Vector3 &ground, const IntVector2 &mousepos, float maxdistance) { auto ui=GetSubsystem<UI>(); auto input=GetSubsystem<Input>(); Scene *scene=node_->GetScene(); Octree *octree=node_->GetScene()->GetComponent<Octree>(); float hitpos=0; Drawable *hitdrawable=nullptr; //if(ui->GetCursor() && ui->GetCursor()->IsVisible()==false && input->IsMouseVisible()==false) return false; Ray ray=GetScreenRay(mousepos); static ea::vector<RayQueryResult> result; result.clear(); RayOctreeQuery query(result, ray, RAY_TRIANGLE, maxdistance, DRAWABLE_GEOMETRY); octree->Raycast(query); if(result.size()==0) return false; for(unsigned int i=0; i<result.size(); ++i) { if(result[i].distance_>=0) { ground=ray.origin_+ray.direction_*result[i].distance_; return true; } } return false; } void EditingCamera::Update(float dt) { if(!camera_) return; auto ui=GetSubsystem<UI>(); auto input=GetSubsystem<Input>(); auto graphics=GetSubsystem<Graphics>(); IntVector2 mousepos; if(ui->GetCursor()) mousepos=ui->GetCursor()->GetPosition(); else mousepos=input->GetMousePosition(); if(allowzoom_ && !ui->GetElementAt(mousepos)) { float wheel=input->GetMouseMoveWheel(); follow_=follow_-wheel*dt*zoomspeed_; follow_=std::max(minfollow_, std::min(maxfollow_, follow_)); } if(input->GetMouseButtonDown(MOUSEB_MIDDLE) && (allowspin_ || allowpitch_)) { if(ui->GetCursor()) ui->GetCursor()->SetVisible(false); else input->SetMouseVisible(false); if(allowpitch_) { float mmovey=(float)input->GetMouseMoveY() / (float)graphics->GetHeight(); pitch_+=mmovey*600.0f; pitch_=std::max(-89.0f, std::min(89.0f, pitch_)); } if(allowspin_) { float mmovex=(float)input->GetMouseMoveX() / (float)graphics->GetWidth(); yaw_+=mmovex*800.0f; while(yaw_<0.0f) yaw_+=360.0f; while(yaw_>=360.0f) yaw_-=360.0f; } } else { if(ui->GetCursor()) ui->GetCursor()->SetVisible(true); else input->SetMouseVisible(true); } Vector3 trans(0,0,0); if(input->GetMouseButtonPress(MOUSEB_RIGHT)) { lastmouse_=mousepos; } if(input->GetMouseButtonDown(MOUSEB_RIGHT)) { trans=Vector3(0,0,0); Vector3 oldground; bool s=GetScreenGround(oldground, lastmouse_); if(s) { Vector3 newground; bool t=GetScreenGround(newground, mousepos); if(t) { trans=oldground-newground; lastmouse_=mousepos; } } } else { Quaternion quat(yaw_,Vector3(0,1,0)); if(input->GetKeyDown(KEY_W)) trans.z_+=1.0f; if(input->GetKeyDown(KEY_S)) trans.z_-=1.0f; if(input->GetKeyDown(KEY_A)) trans.x_-=1.0f; if(input->GetKeyDown(KEY_D)) trans.x_+=1.0f; trans=quat*trans*dt*scrollspeed_; } Vector3 mypos=node_->GetPosition(); Vector3 np=mypos+trans; np.x_=std::max(minbounds_.x_, std::min(maxbounds_.x_, np.x_)); np.z_=std::max(minbounds_.y_, std::min(maxbounds_.y_, np.z_)); if(tracksurface_ && terrainContext_) { float ht=terrainContext_->GetHeight(np); np.y_=ht+offset_; } node_->SetPosition(np); SpringFollow(dt); if(clipsolid_) { Ray ray=camera_->GetScreenRay(0.5f, 0.5f); Ray revray=Ray(node_->GetPosition(), ray.direction_*Vector3(-1,-1,-1)); curfollow_=CameraClipPick(revray, curfollow_); } node_->SetRotation(Quaternion(yaw_, Vector3(0,1,0))); cameranode_->SetPosition(Vector3(0,0,-curfollow_)); anglenode_->SetRotation(Quaternion(pitch_, Vector3(1,0,0))); camera_->SetFarClip(clipdistance_); } float EditingCamera::CameraClipPick(const Ray &ray, float followdist) { Scene *scene=node_->GetScene(); Octree *octree=scene->GetComponent<Octree>(); static ea::vector<RayQueryResult> result; result.clear(); RayOctreeQuery query(result, ray, RAY_TRIANGLE, followdist, DRAWABLE_GEOMETRY); octree->Raycast(query); if(result.size()==0) return followdist; for(unsigned int i=0; i<result.size(); ++i) { Node *n=TopLevelNodeFromDrawable(result[i].drawable_, scene); return std::min(result[i].distance_-0.0f, followdist); } return followdist; } void EditingCamera::SpringFollow(float dt) { float df=follow_-curfollow_; float af=9.0f*df-6.0f*followvel_; followvel_+=dt*af; curfollow_+=dt*followvel_; } void EditingCamera::SetGroundHeight(float e) { Vector3 pos=node_->GetPosition(); pos.y_=e+offset_; node_->SetPosition(pos); } Node *EditingCamera::TopLevelNodeFromDrawable(Drawable *d, Scene *s) { Node *n=d->GetNode(); if(!n) return nullptr; while(n->GetParent() != s) { if(n->GetParent()==nullptr) return n; n=n->GetParent(); } return n; }
[ "vertexnormal@gmail.com" ]
vertexnormal@gmail.com
c508cab01d95fcdcfc9801a7572d6f4f1e5f89b4
764a20f37b4dacfa02c096f5a6a0fed4b125ec5d
/cplusplus_com/02_variables.cpp
5e13edc97192864cc5ccd612b4965afd54588e9d
[]
no_license
mehblahwhatever/CppTutorials
b9d85386e45239d635a1da1ce6d144a0bc40ee0a
87195ff551ef0c3ef43213c52379db36f6501ca4
refs/heads/master
2021-08-21T20:59:15.379083
2017-11-29T02:28:58
2017-11-29T02:28:58
112,407,222
0
0
null
null
null
null
UTF-8
C++
false
false
236
cpp
// variables #include <iostream> using namespace std; int main(){ // declaring variables int a, b; int result; // process a = 5; b = 2; a = a + 1; result = a - b; // print result cout << result; // terminate return 0; }
[ "mehblahwhatever@gmail.com" ]
mehblahwhatever@gmail.com
6cf405ad181e845fe95f340a50901d7431c87cfc
7b9e626cfc3aa45ff44f79b0fb31b782a17d6c98
/src/boundary/zouHeBoundary3D.cpp
a5fc62a486be38ccdf6d9e5c4c7a4616a4922446
[]
no_license
lex16000/LBv1.2
e95b1b42925aaa892e6099be83496a0a56271dff
cee82cc6fe75d2f9b25a9f62ce8d50d3480c47ac
refs/heads/master
2021-04-06T01:41:48.099885
2018-04-04T12:01:09
2018-04-04T12:01:09
125,254,173
0
0
null
null
null
null
UTF-8
C++
false
false
1,926
cpp
/* This file is part of the OpenLB library * * Copyright (C) 2007 Orestis Malaspinas, Jonas Latt * E-mail contact: info@openlb.net * The most recent release of OpenLB can be downloaded at * <http://www.openlb.net/> * * 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., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. */ #include "zouHeBoundary3D.h" #include "zouHeBoundary3D.hh" #include "boundaryPostProcessors3D.h" #include "boundaryPostProcessors3D.hh" #include "core/postProcessing.h" #include "core/postProcessing.hh" #include "dynamics/latticeDescriptors.h" #include "dynamics/latticeDescriptors.hh" namespace olb { template class BoundaryConditionInstantiator3D < double, descriptors::D3Q19Descriptor, ZouHeBoundaryManager3D < double, descriptors::D3Q19Descriptor, BGKdynamics<double,descriptors::D3Q19Descriptor> > >; template OnLatticeBoundaryCondition3D<double,descriptors::D3Q19Descriptor>* createZouHeBoundaryCondition3D < double,descriptors::D3Q19Descriptor, BGKdynamics<double,descriptors::D3Q19Descriptor> > ( BlockLatticeStructure3D<double,descriptors::D3Q19Descriptor>& block ); } // namespace olb
[ "schulz_a_alexander@hotmail.com" ]
schulz_a_alexander@hotmail.com
9d603178a22dd652dc5379c6cddebb1ec8fa9706
ce429bc93488e42629f877dbc5fbd5e206e6df3e
/实验54 综合测试实验/NES/mapper/122.cpp
6254df85b0237a9e52284d3d733da484f0e6d972
[]
no_license
898311543/worship_stm32
eaaf0c8355f57ffd8f8dc844a37d03935da1a516
2f29108a776949bde3dd2b94e9c44636aaf148df
refs/heads/master
2021-04-27T00:16:48.914283
2018-03-04T11:59:52
2018-03-04T11:59:52
123,784,161
4
0
null
null
null
null
UTF-8
C++
false
false
751
cpp
#ifdef _NES_MAPPER_CPP_ ///////////////////////////////////////////////////////////////////// // Mapper 122 void NES_mapper122::Reset() { // set CPU bank pointers set_CPU_banks(0,1,2,3); } void NES_mapper122::MemoryWriteSaveRAM(uint32 addr, uint8 data) { if(addr = 0x6000) { uint8 chr_bank0 = data & 0x07; uint8 chr_bank1 = (data & 0x70) >> 4; set_PPU_bank0(chr_bank0*4+0); set_PPU_bank1(chr_bank0*4+1); set_PPU_bank2(chr_bank0*4+2); set_PPU_bank3(chr_bank0*4+3); set_PPU_bank4(chr_bank1*4+0); set_PPU_bank5(chr_bank1*4+1); set_PPU_bank6(chr_bank1*4+2); set_PPU_bank7(chr_bank1*4+3); } } ///////////////////////////////////////////////////////////////////// #endif
[ "898311543@qq.com" ]
898311543@qq.com
6fee9c28075e849795328e733d442b9923b531a6
bd2499c41e442b45ddd273a9d45880abe9b67047
/src/mainwindow.h
2ac2ea6c6a95fe8cc672cab46e3a917c0dc45bd3
[]
no_license
endmon/PCO_Labo4_QTrain
7b11c159fcc832f38f4d3a5cd98d8a93dc07fbcf
6e7de237041c075af8e4df02099e5995a4fa083d
refs/heads/master
2020-03-15T11:11:21.406329
2018-05-04T09:13:51
2018-05-04T09:13:51
132,115,407
0
0
null
null
null
null
UTF-8
C++
false
false
4,803
h
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <connect.h> #include <QMainWindow> #include <QFileDialog> #include <QDir> #include <QDebug> #include <simview.h> #include <QSignalMapper> #include <voieaiguillage.h> #include <voieaiguillageenroule.h> #include <voieaiguillagetriple.h> #include <voiebuttoir.h> #include <voiecourbe.h> #include <voiecroisement.h> #include <voiedroite.h> #include <voietraverseejonction.h> #include <QTextEdit> #include <contact.h> #include <QSemaphore> #include <ios> template< class Elem = char, class Tr = std::char_traits< Elem > > class StdRedirector : public std::basic_streambuf< Elem, Tr > { /** * Callback Function. */ typedef void (*pfncb) ( const Elem*, std::streamsize _Count, void* pUsrData ); public: /** * Constructor. * @param a_Stream the stream to redirect * @param a_Cb the callback function * @param a_pUsrData user data passed to callback */ StdRedirector( std::ostream& a_Stream, pfncb a_Cb, void* a_pUsrData ) : m_Stream( a_Stream ), m_pCbFunc( a_Cb ), m_pUserData( a_pUsrData ) { //redirect stream m_pBuf = m_Stream.rdbuf( this ); }; /** * Destructor. * Restores the original stream. */ ~StdRedirector() { m_Stream.rdbuf( m_pBuf ); } /** * Override xsputn and make it forward data to the callback function. */ std::streamsize xsputn( const Elem* _Ptr, std::streamsize _Count ) { m_pCbFunc( _Ptr, _Count, m_pUserData ); return _Count; } /** * Override overflow and make it forward data to the callback function. */ typename Tr::int_type overflow( typename Tr::int_type v ) { Elem ch = Tr::to_char_type( v ); m_pCbFunc( &ch, 1, m_pUserData ); return Tr::not_eof( v ); } protected: std::basic_ostream<Elem, Tr>& m_Stream; std::streambuf* m_pBuf; pfncb m_pCbFunc; void* m_pUserData; }; class LocoCtrl : public QObject { public: int loco; Loco* ptrLoco; enum STATE {RUNNING=0,PAUSE=1} state; QAction *toggle; QToolBar *toolBar; QTextEdit *console; QDockWidget *dock; }; class MainWindow : public QMainWindow { Q_OBJECT public: /** Constructeur de classe. * */ explicit MainWindow(QWidget *parent = 0); /** Destructeur de classe. * */ ~MainWindow(); QSemaphore semWaitMaquette; QSemaphore maquetteFinie; /** retourne un pointeur vers le SiMView contenant la simulation. * \return le SimView contenant la simulation. */ SimView* getSimView(); void setLocoState(LocoCtrl *loco,LocoCtrl::STATE state); QDockWidget *dockGeneralConsole; QTextEdit *generalConsole; StdRedirector<>* myRedirector; StdRedirector<>* myOtherRedirector; QDockWidget* inputDock; QLineEdit* inputWidget; void readSettings(); void writeSettings() const; /** Charge et construit la maquette dont le nom est filename * \param filename le nom de la maquette à charger. */ void chargerMaquette(QString filename); void createActions(); void createMenus(); void updateMenus(); void createToolbar(); enum {NOTSTARTED,RUNNING,PAUSE} m_state; int m_simStep; QAction *chargerMaquetteAct; QAction *exitAct; QAction *toggleSimAct; QAction *zoomInAct; QAction *zoomOutAct; QAction *zoomFitAct; QAction *rotatePlusAct; QAction *rotateMinusAct; QAction *viewContactNumberAct; QAction *viewAiguillageNumberAct; QAction *viewLocoLogAct; QAction *viewInputAct; QAction *inertieAct; QAction *emergencyStopAct; QAction *printAct; QMenu *actionMenu; QToolBar *toolBar; QSignalMapper* locoSignalMapper; QList<LocoCtrl *> locoCtrls; QLabel *statusLabel; signals: void commandSent(QString command); private slots: void on_actionCharger_Maquette_triggered(); private: SimView *simView; QMap <int, QList<double>*> infosVoies; public slots: void selectionMaquette(QString maquette); void addLoco(int no_loco); void closeEvent(QCloseEvent *event); void toggleSimulation(); void emergencyStop(); void simulationStep(); void finishedAnimation(); void zoomIn(); void zoomOut(); void zoomFit(); void rotatePlus(); void rotateMinus(); void viewContactNumber(); void viewAiguillageNumber(); void viewLocoLog(); void toggleLoco(QObject *locoCtrls); void toggleInertie(); void afficherMessage(QString message); void afficherMessageLoco(int numLoco,QString message); void print(); void onReturnPressed(); }; #endif // MAINWINDOW_H
[ "miguel.lopesgouveia@heig-vd.ch" ]
miguel.lopesgouveia@heig-vd.ch
a57c72e7688ac0fe839592c867deda95e29eaf3e
00c64e0967d197d8c6fc3427954e2d0b2ff13ca0
/sycl/test/warnings/interop_task_deprecation.cpp
4f99d91d1bf56a4b6965b139222e13a9d6dc4e94
[ "NCSA", "LLVM-exception", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
triSYCL/sycl
893048e80158cf3359c1ad8912da9ccf493faf69
5a95a7136a11b75f01ef839d9229780032bbeecf
refs/heads/sycl/unified/master
2023-08-23T22:06:46.238209
2023-05-24T22:54:31
2023-05-24T22:54:31
178,923,006
103
17
NOASSERTION
2023-09-12T20:03:26
2019-04-01T18:29:01
null
UTF-8
C++
false
false
680
cpp
// RUN: %clangxx %fsycl-host-only -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note %s #include <sycl/sycl.hpp> using namespace sycl; int main() { queue Q; buffer<int, 1> B(range<1>{1}); Q.submit([&](handler &H) { auto Acc = B.get_access<access::mode::read>(H); // expected-warning@+1 {{interop_handler class is deprecated, use interop_handle instead with host-task}} auto L = [Acc](interop_handler IH) { // empty }; // expected-warning@+2 {{interop_task() is deprecated, use host_task() instead}} // expected-warning@+1 {{interop_task() is deprecated, use host_task() instead}} H.interop_task(L); }); return 0; }
[ "noreply@github.com" ]
triSYCL.noreply@github.com
8345bb2d62d4fabddbae85472d305956aa6a7ddc
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5631572862566400_0/C++/Umnik/C.cpp
af210973459fca6ea88509f49a8738e7fdc27dc4
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
C++
false
false
1,375
cpp
#include <iostream> #include <cstdio> #include <cstdlib> #include <vector> using namespace std; const int N = 1010; int p[N]; int cycle[N]; int maxLen[N]; int n; bool used[N]; int getCycle(int v) { for (int i = 0; i < n; i++) used[i] = false; int u = v; int len = 0; while(!used[u]) { len++; used[u] = 1; u = p[u]; } if (u == v) return len; return -1; } void setLenToCycle(int v) { int len = 0; while(cycle[v] == -1) { len++; v = p[v]; } maxLen[v] = max(maxLen[v], len); return; } int solve() { scanf("%d", &n); for (int i = 0; i < n; i++) { scanf("%d", &p[i]); p[i]--; } for (int i = 0; i < n; i++) { cycle[i] = -1; maxLen[i] = 0; } for (int v = 0; v < n; v++) cycle[v] = getCycle(v); for (int v = 0; v < n; v++) setLenToCycle(v); int ans = 0; int c = 0; for (int v = 0; v < n; v++) { if (cycle[v] == -1) continue; if (cycle[v] < 2) throw; if (cycle[v] > 2) ans = max(ans, cycle[v]); else { int u = p[v]; if (p[u] != v) throw; if (u < v) continue; c += 2 + maxLen[v] + maxLen[u]; } } return max(ans, c); } int main() { freopen("input.txt", "r", stdin); freopen("output.txt", "w", stdout); int t; scanf("%d", &t); for (int i = 1; i <= t; i++) printf("Case #%d: %d\n", i, solve()); return 0; }
[ "alexandra1.back@gmail.com" ]
alexandra1.back@gmail.com
27579e1918a2c95481b288373b7237b357acce12
fa055f2b33ccd491c70a6ac866b5084caded7c0c
/src/qt/sendcoinsdialog.cpp
c3ea06389776b9dd3e5e2570e8a85adf39f69e70
[ "MIT" ]
permissive
iGotSpots/SPOTS
e98b45e6b319bbaf39305778de7bbd30ef94c2c1
35ee4afdb88fbca9baec0519d7ed1658bd88b5a2
refs/heads/master
2021-01-19T00:57:37.119786
2016-05-30T19:45:43
2016-05-30T19:45:43
60,034,810
0
0
null
null
null
null
UTF-8
C++
false
false
17,763
cpp
#include "sendcoinsdialog.h" #include "ui_sendcoinsdialog.h" #include "init.h" #include "walletmodel.h" #include "addresstablemodel.h" #include "bitcoinunits.h" #include "addressbookpage.h" #include "optionsmodel.h" #include "sendcoinsentry.h" #include "guiutil.h" #include "askpassphrasedialog.h" #include "coincontrol.h" #include "coincontroldialog.h" #include <QMessageBox> #include <QLocale> #include <QTextDocument> #include <QScrollBar> #include <QClipboard> SendCoinsDialog::SendCoinsDialog(QWidget *parent) : QDialog(parent), ui(new Ui::SendCoinsDialog), model(0) { ui->setupUi(this); #ifdef Q_WS_MAC // Icons on push buttons are very uncommon on Mac ui->addButton->setIcon(QIcon()); ui->clearButton->setIcon(QIcon()); ui->sendButton->setIcon(QIcon()); #endif #if QT_VERSION >= 0x040700 /* Do not move this to the XML file, Qt before 4.7 will choke on it */ ui->lineEditCoinControlChange->setPlaceholderText(tr("Enter a SPOTS address")); #endif addEntry(); connect(ui->addButton, SIGNAL(clicked()), this, SLOT(addEntry())); connect(ui->clearButton, SIGNAL(clicked()), this, SLOT(clear())); // Coin Control ui->lineEditCoinControlChange->setFont(GUIUtil::bitcoinAddressFont()); connect(ui->pushButtonCoinControl, SIGNAL(clicked()), this, SLOT(coinControlButtonClicked())); connect(ui->checkBoxCoinControlChange, SIGNAL(stateChanged(int)), this, SLOT(coinControlChangeChecked(int))); connect(ui->lineEditCoinControlChange, SIGNAL(textEdited(const QString &)), this, SLOT(coinControlChangeEdited(const QString &))); // Coin Control: clipboard actions QAction *clipboardQuantityAction = new QAction(tr("Copy quantity"), this); QAction *clipboardAmountAction = new QAction(tr("Copy amount"), this); QAction *clipboardFeeAction = new QAction(tr("Copy fee"), this); QAction *clipboardAfterFeeAction = new QAction(tr("Copy after fee"), this); QAction *clipboardBytesAction = new QAction(tr("Copy bytes"), this); QAction *clipboardPriorityAction = new QAction(tr("Copy priority"), this); QAction *clipboardLowOutputAction = new QAction(tr("Copy low output"), this); QAction *clipboardChangeAction = new QAction(tr("Copy change"), this); connect(clipboardQuantityAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardQuantity())); connect(clipboardAmountAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardAmount())); connect(clipboardFeeAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardFee())); connect(clipboardAfterFeeAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardAfterFee())); connect(clipboardBytesAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardBytes())); connect(clipboardPriorityAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardPriority())); connect(clipboardLowOutputAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardLowOutput())); connect(clipboardChangeAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardChange())); ui->labelCoinControlQuantity->addAction(clipboardQuantityAction); ui->labelCoinControlAmount->addAction(clipboardAmountAction); ui->labelCoinControlFee->addAction(clipboardFeeAction); ui->labelCoinControlAfterFee->addAction(clipboardAfterFeeAction); ui->labelCoinControlBytes->addAction(clipboardBytesAction); ui->labelCoinControlPriority->addAction(clipboardPriorityAction); ui->labelCoinControlLowOutput->addAction(clipboardLowOutputAction); ui->labelCoinControlChange->addAction(clipboardChangeAction); fNewRecipientAllowed = true; } void SendCoinsDialog::setModel(WalletModel *model) { this->model = model; for(int i = 0; i < ui->entries->count(); ++i) { SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget()); if(entry) { entry->setModel(model); } } if(model) { setBalance(model->getBalance(), model->getStake(), model->getUnconfirmedBalance()); connect(model, SIGNAL(balanceChanged(qint64, qint64, qint64)), this, SLOT(setBalance(qint64, qint64, qint64))); connect(model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(updateDisplayUnit())); // Coin Control connect(model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(coinControlUpdateLabels())); connect(model->getOptionsModel(), SIGNAL(coinControlFeaturesChanged(bool)), this, SLOT(coinControlFeatureChanged(bool))); connect(model->getOptionsModel(), SIGNAL(transactionFeeChanged(qint64)), this, SLOT(coinControlUpdateLabels())); ui->frameCoinControl->setVisible(model->getOptionsModel()->getCoinControlFeatures()); coinControlUpdateLabels(); } } SendCoinsDialog::~SendCoinsDialog() { delete ui; } void SendCoinsDialog::on_sendButton_clicked() { QList<SendCoinsRecipient> recipients; bool valid = true; if(!model) return; for(int i = 0; i < ui->entries->count(); ++i) { SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget()); if(entry) { if(entry->validate()) { recipients.append(entry->getValue()); } else { valid = false; } } } if(!valid || recipients.isEmpty()) { return; } // Format confirmation message QStringList formatted; foreach(const SendCoinsRecipient &rcp, recipients) { formatted.append(tr("<b>%1</b> to %2 (%3)").arg(BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, rcp.amount), Qt::escape(rcp.label), rcp.address)); } fNewRecipientAllowed = false; QMessageBox::StandardButton retval = QMessageBox::question(this, tr("Confirm send coins"), tr("Are you sure you want to send %1?").arg(formatted.join(tr(" and "))), QMessageBox::Yes|QMessageBox::Cancel, QMessageBox::Cancel); if(retval != QMessageBox::Yes) { fNewRecipientAllowed = true; return; } WalletModel::UnlockContext ctx(model->requestUnlock()); if(!ctx.isValid()) { // Unlock wallet was cancelled fNewRecipientAllowed = true; return; } WalletModel::SendCoinsReturn sendstatus; if (!model->getOptionsModel() || !model->getOptionsModel()->getCoinControlFeatures()) sendstatus = model->sendCoins(recipients); else sendstatus = model->sendCoins(recipients, CoinControlDialog::coinControl); switch(sendstatus.status) { case WalletModel::InvalidAddress: QMessageBox::warning(this, tr("Send Coins"), tr("The recipient address is not valid, please recheck."), QMessageBox::Ok, QMessageBox::Ok); break; case WalletModel::InvalidAmount: QMessageBox::warning(this, tr("Send Coins"), tr("The amount to pay must be at least one cent (0.01)."), QMessageBox::Ok, QMessageBox::Ok); break; case WalletModel::AmountExceedsBalance: QMessageBox::warning(this, tr("Send Coins"), tr("Amount exceeds your balance"), QMessageBox::Ok, QMessageBox::Ok); break; case WalletModel::AmountWithFeeExceedsBalance: QMessageBox::warning(this, tr("Send Coins"), tr("Total exceeds your balance when the %1 transaction fee is included"). arg(BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, sendstatus.fee)), QMessageBox::Ok, QMessageBox::Ok); break; case WalletModel::DuplicateAddress: QMessageBox::warning(this, tr("Send Coins"), tr("Duplicate address found, can only send to each address once in one send operation"), QMessageBox::Ok, QMessageBox::Ok); break; case WalletModel::TransactionCreationFailed: QMessageBox::warning(this, tr("Send Coins"), tr("Error: Transaction creation failed "), QMessageBox::Ok, QMessageBox::Ok); break; case WalletModel::TransactionCommitFailed: QMessageBox::warning(this, tr("Send Coins"), tr("Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here."), QMessageBox::Ok, QMessageBox::Ok); break; case WalletModel::Aborted: // User aborted, nothing to do break; case WalletModel::OK: accept(); CoinControlDialog::coinControl->UnSelectAll(); coinControlUpdateLabels(); break; } fNewRecipientAllowed = true; } void SendCoinsDialog::clear() { // Remove entries until only one left while(ui->entries->count()) { delete ui->entries->takeAt(0)->widget(); } addEntry(); updateRemoveEnabled(); ui->sendButton->setDefault(true); } void SendCoinsDialog::reject() { clear(); } void SendCoinsDialog::accept() { clear(); } SendCoinsEntry *SendCoinsDialog::addEntry() { SendCoinsEntry *entry = new SendCoinsEntry(this); entry->setModel(model); ui->entries->addWidget(entry); connect(entry, SIGNAL(removeEntry(SendCoinsEntry*)), this, SLOT(removeEntry(SendCoinsEntry*))); connect(entry, SIGNAL(payAmountChanged()), this, SLOT(coinControlUpdateLabels())); updateRemoveEnabled(); // Focus the field, so that entry can start immediately entry->clear(); entry->setFocus(); ui->scrollAreaWidgetContents->resize(ui->scrollAreaWidgetContents->sizeHint()); QCoreApplication::instance()->processEvents(); QScrollBar* bar = ui->scrollArea->verticalScrollBar(); if (bar) bar->setSliderPosition(bar->maximum()); return entry; } void SendCoinsDialog::updateRemoveEnabled() { // Remove buttons are enabled as soon as there is more than one send-entry bool enabled = (ui->entries->count() > 1); for(int i = 0; i < ui->entries->count(); ++i) { SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget()); if(entry) { entry->setRemoveEnabled(enabled); } } setupTabChain(0); coinControlUpdateLabels(); } void SendCoinsDialog::removeEntry(SendCoinsEntry* entry) { delete entry; updateRemoveEnabled(); } QWidget *SendCoinsDialog::setupTabChain(QWidget *prev) { for(int i = 0; i < ui->entries->count(); ++i) { SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget()); if(entry) { prev = entry->setupTabChain(prev); } } QWidget::setTabOrder(prev, ui->addButton); QWidget::setTabOrder(ui->addButton, ui->sendButton); return ui->sendButton; } void SendCoinsDialog::pasteEntry(const SendCoinsRecipient &rv) { if (!fNewRecipientAllowed) return; SendCoinsEntry *entry = 0; // Replace the first entry if it is still unused if(ui->entries->count() == 1) { SendCoinsEntry *first = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(0)->widget()); if(first->isClear()) { entry = first; } } if(!entry) { entry = addEntry(); } entry->setValue(rv); } void SendCoinsDialog::handleURI(const QString &uri) { SendCoinsRecipient rv; if(!GUIUtil::parseBitcoinURI(uri, &rv)) { return; } pasteEntry(rv); } void SendCoinsDialog::setBalance(qint64 balance, qint64 stake, qint64 unconfirmedBalance) { Q_UNUSED(stake); Q_UNUSED(unconfirmedBalance); if(!model || !model->getOptionsModel()) return; int unit = model->getOptionsModel()->getDisplayUnit(); ui->labelBalance->setText(BitcoinUnits::formatWithUnit(unit, balance)); } void SendCoinsDialog::updateDisplayUnit() { if(model && model->getOptionsModel()) { // Update labelBalance with the current balance and the current unit ui->labelBalance->setText(BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), model->getBalance())); } } // Coin Control: copy label "Quantity" to clipboard void SendCoinsDialog::coinControlClipboardQuantity() { QApplication::clipboard()->setText(ui->labelCoinControlQuantity->text()); } // Coin Control: copy label "Amount" to clipboard void SendCoinsDialog::coinControlClipboardAmount() { QApplication::clipboard()->setText(ui->labelCoinControlAmount->text().left(ui->labelCoinControlAmount->text().indexOf(" "))); } // Coin Control: copy label "Fee" to clipboard void SendCoinsDialog::coinControlClipboardFee() { QApplication::clipboard()->setText(ui->labelCoinControlFee->text().left(ui->labelCoinControlFee->text().indexOf(" "))); } // Coin Control: copy label "After fee" to clipboard void SendCoinsDialog::coinControlClipboardAfterFee() { QApplication::clipboard()->setText(ui->labelCoinControlAfterFee->text().left(ui->labelCoinControlAfterFee->text().indexOf(" "))); } // Coin Control: copy label "Bytes" to clipboard void SendCoinsDialog::coinControlClipboardBytes() { QApplication::clipboard()->setText(ui->labelCoinControlBytes->text()); } // Coin Control: copy label "Priority" to clipboard void SendCoinsDialog::coinControlClipboardPriority() { QApplication::clipboard()->setText(ui->labelCoinControlPriority->text()); } // Coin Control: copy label "Low output" to clipboard void SendCoinsDialog::coinControlClipboardLowOutput() { QApplication::clipboard()->setText(ui->labelCoinControlLowOutput->text()); } // Coin Control: copy label "Change" to clipboard void SendCoinsDialog::coinControlClipboardChange() { QApplication::clipboard()->setText(ui->labelCoinControlChange->text().left(ui->labelCoinControlChange->text().indexOf(" "))); } // Coin Control: settings menu - coin control enabled/disabled by user void SendCoinsDialog::coinControlFeatureChanged(bool checked) { ui->frameCoinControl->setVisible(checked); if (!checked && model) // coin control features disabled CoinControlDialog::coinControl->SetNull(); } // Coin Control: button inputs -> show actual coin control dialog void SendCoinsDialog::coinControlButtonClicked() { CoinControlDialog dlg; dlg.setModel(model); dlg.exec(); coinControlUpdateLabels(); } // Coin Control: checkbox custom change address void SendCoinsDialog::coinControlChangeChecked(int state) { if (model) { if (state == Qt::Checked) CoinControlDialog::coinControl->destChange = CBitcoinAddress(ui->lineEditCoinControlChange->text().toStdString()).Get(); else CoinControlDialog::coinControl->destChange = CNoDestination(); } ui->lineEditCoinControlChange->setEnabled((state == Qt::Checked)); ui->labelCoinControlChangeLabel->setEnabled((state == Qt::Checked)); } // Coin Control: custom change address changed void SendCoinsDialog::coinControlChangeEdited(const QString& text) { if (model && model->getAddressTableModel()) { // Default to no change address until verified CoinControlDialog::coinControl->destChange = CNoDestination(); ui->labelCoinControlChangeLabel->setStyleSheet("QLabel{color:red;}"); CBitcoinAddress addr = CBitcoinAddress(text.toStdString()); if (text.isEmpty()) // Nothing entered { ui->labelCoinControlChangeLabel->setText(""); } else if (!addr.IsValid()) // Invalid address { ui->labelCoinControlChangeLabel->setText(tr("Warning: Invalid Bitcoin address")); } else // Valid address { CPubKey pubkey; CKeyID keyid; addr.GetKeyID(keyid); if (!model->getPubKey(keyid, pubkey)) // Unknown change address { ui->labelCoinControlChangeLabel->setText(tr("Warning: Unknown change address")); } else // Known change address { ui->labelCoinControlChangeLabel->setStyleSheet("QLabel{color:black;}"); // Query label QString associatedLabel = model->getAddressTableModel()->labelForAddress(text); if (!associatedLabel.isEmpty()) ui->labelCoinControlChangeLabel->setText(associatedLabel); else ui->labelCoinControlChangeLabel->setText(tr("(no label)")); CoinControlDialog::coinControl->destChange = addr.Get(); } } } } // Coin Control: update labels void SendCoinsDialog::coinControlUpdateLabels() { if (!model || !model->getOptionsModel() || !model->getOptionsModel()->getCoinControlFeatures()) return; // set pay amounts CoinControlDialog::payAddresses.clear(); for(int i = 0; i < ui->entries->count(); ++i) { SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget()); if(entry) CoinControlDialog::payAddresses.append(std::make_pair(entry->getValue().address, entry->getValue().amount)); } if (CoinControlDialog::coinControl->HasSelected()) { // actual coin control calculation CoinControlDialog::updateLabels(model, this); // show coin control stats ui->labelCoinControlAutomaticallySelected->hide(); ui->widgetCoinControl->show(); } else { // hide coin control stats ui->labelCoinControlAutomaticallySelected->show(); ui->widgetCoinControl->hide(); ui->labelCoinControlInsuffFunds->hide(); } }
[ "digicube@freestaking.com" ]
digicube@freestaking.com
4635c149618020f92f7dbb3a4a48f4d8e5dae6e4
6408b0d4aa624dccb85a1a9f9cab721b9f0e053b
/Data Structures I with C Plus Plus/Assignment 5/List.h
d6e3b037ecc0f23a7e40cbcd3200401145d64301
[]
no_license
KyleTennant/Education
43e7b7183562b7dddb96cbe9a1eef3e0bafb0b1e
21d8c949ce1945305ede55fd5c7c54531f08e33f
refs/heads/master
2020-05-01T08:20:42.497983
2019-04-05T01:01:33
2019-04-05T01:01:33
177,376,054
0
0
null
null
null
null
UTF-8
C++
false
false
3,343
h
//************************************************************ // // File: List.h // // Student: Kyle Tennant // // Assignment: Assignment #5 Part 2 // // Course Name: Data Structures I // // Course Number: COSC 3050 // // Due: March 1, 2018 // // This program uses a sorted linked list and a // stack to process data from a file and outputs // it to another file. // //************************************************************ #include <string> using namespace std; #ifndef LIST_H #define LIST_H //************************************************************ template<class DT> struct Node { DT info; Node<DT> *next; }; //************************************************************ template<class DT> class List { private: Node<DT> *start; Node<DT> *current; public: List(); bool first(DT& obj); bool insert(DT& obj); bool getNext(DT& obj); bool getMember(DT& obj); bool find(DT& obj, Node<DT>*& pPrev); bool update(DT& obj); bool erase(DT& obj); }; #endif //************************************************************ template<class DT> List<DT>::List() { start = 0; } //************************************************************ template<class DT> bool List<DT>::first(DT& obj) { if (start == nullptr) return false; current = start; obj = start->info; return true; } //************************************************************ template<class DT> bool List<DT>::insert(DT& obj) { Node<DT> *pPrev; bool found = false; found = find(obj, pPrev); if (!found) { Node<DT> *pNew = new Node<DT>; pNew->info = obj; if (pPrev != nullptr) { pNew->next = pPrev->next; pPrev->next = pNew; } else { pNew->next = start; start = pNew; } } else found = true; return found; } //************************************************************ template<class DT> bool List<DT>::getNext(DT& obj) { current = current->next; if (current == nullptr) return false; obj = current->info; return true; } //************************************************************ template<class DT> bool List<DT>::getMember(DT& obj) { Node<DT> *pPrev; bool found = false; found = find(obj, pPrev); if (found) { if (pPrev == nullptr) obj = start->info; else obj = pPrev->next->info; return true; } return false; } //************************************************************ template<class DT> bool List<DT>::find(DT& obj, Node<DT>*& pPrev) { bool found = false; pPrev = nullptr; Node<DT> *ptr = start; while (ptr != nullptr && !found && obj >= ptr->info) { if (obj == ptr->info) { found = true; } else { pPrev = ptr; ptr = ptr->next; } } return found; } //************************************************************ template<class DT> bool List<DT>::update(DT& obj) { Node<DT> *pPrev; bool found = false; found = find(obj, pPrev); if (found) { if (pPrev == nullptr) start->info = obj; else pPrev->next->info = obj; } return found; } //************************************************************ template<class DT> bool List<DT>::erase(DT& obj) { Node<DT> *pPrev; Node<DT> *ptr; bool found = false; found = find(obj, pPrev); if (found) { if (pPrev != nullptr) { ptr = pPrev->next; pPrev->next = ptr->next; } else { ptr = start; start = ptr->next; } delete ptr; } return found; }
[ "noreply@github.com" ]
KyleTennant.noreply@github.com
b2cb68614789675ba089cb0f2b48e53fbcb37504
04e5b6df2ee3bcfb7005d8ec91aab8e380333ac4
/clang_codecompletion/clang/AST/DeclVisitor.h
8690cdda4bb700254f3cf3fe0777495269e7b3d6
[ "MIT" ]
permissive
ColdGrub1384/Pyto
64e2a593957fd640907f0e4698d430ea7754a73e
7557485a733dd7e17ba0366b92794931bdb39975
refs/heads/main
2023-08-01T03:48:35.694832
2022-07-20T14:38:45
2022-07-20T14:38:45
148,944,721
884
157
MIT
2023-02-26T21:34:04
2018-09-15T22:29:07
C
UTF-8
C++
false
false
2,569
h
//===- DeclVisitor.h - Visitor for Decl subclasses --------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This file defines the DeclVisitor interface. // //===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_DECLVISITOR_H #define LLVM_CLANG_AST_DECLVISITOR_H #include "clang/AST/Decl.h" #include "clang/AST/DeclBase.h" #include "clang/AST/DeclCXX.h" #include "clang/AST/DeclFriend.h" #include "clang/AST/DeclObjC.h" #include "clang/AST/DeclOpenMP.h" #include "clang/AST/DeclTemplate.h" #include "llvm/ADT/STLExtras.h" #include "llvm/Support/ErrorHandling.h" namespace clang { namespace declvisitor { /// A simple visitor class that helps create declaration visitors. template<template <typename> class Ptr, typename ImplClass, typename RetTy=void> class Base { public: #define PTR(CLASS) typename Ptr<CLASS>::type #define DISPATCH(NAME, CLASS) \ return static_cast<ImplClass*>(this)->Visit##NAME(static_cast<PTR(CLASS)>(D)) RetTy Visit(PTR(Decl) D) { switch (D->getKind()) { #define DECL(DERIVED, BASE) \ case Decl::DERIVED: DISPATCH(DERIVED##Decl, DERIVED##Decl); #define ABSTRACT_DECL(DECL) #include "clang/AST/DeclNodes.inc" } llvm_unreachable("Decl that isn't part of DeclNodes.inc!"); } // If the implementation chooses not to implement a certain visit // method, fall back to the parent. #define DECL(DERIVED, BASE) \ RetTy Visit##DERIVED##Decl(PTR(DERIVED##Decl) D) { DISPATCH(BASE, BASE); } #include "clang/AST/DeclNodes.inc" RetTy VisitDecl(PTR(Decl) D) { return RetTy(); } #undef PTR #undef DISPATCH }; } // namespace declvisitor /// A simple visitor class that helps create declaration visitors. /// /// This class does not preserve constness of Decl pointers (see also /// ConstDeclVisitor). template <typename ImplClass, typename RetTy = void> class DeclVisitor : public declvisitor::Base<std::add_pointer, ImplClass, RetTy> {}; /// A simple visitor class that helps create declaration visitors. /// /// This class preserves constness of Decl pointers (see also DeclVisitor). template <typename ImplClass, typename RetTy = void> class ConstDeclVisitor : public declvisitor::Base<llvm::make_const_ptr, ImplClass, RetTy> {}; } // namespace clang #endif // LLVM_CLANG_AST_DECLVISITOR_H
[ "emma@labbe.me" ]
emma@labbe.me
4ef7c4ba0037ed06d458d8dc3a095e2aa9ffc7bf
9b1a0e9ac2c5ffc35f368ca5108cd8953eb2716d
/5/Section4-Physics/4.02-DynamicGrassSimulation-Ramraj/cs_kf3d.h
dbad5e7f14e46b8434139988a06aa1b835bdbb48
[]
no_license
TomasRejhons/gpg-source-backup
c6993579e96bf5a6d8cba85212f94ec20134df11
bbc8266c6cd7df8a7e2f5ad638cdcd7f6298052e
refs/heads/main
2023-06-05T05:14:00.374344
2021-06-16T15:08:41
2021-06-16T15:08:41
377,536,509
2
2
null
null
null
null
IBM855
C++
false
false
2,607
h
#ifndef __CS_KF3D_H__ #define __CS_KF3D_H__ //---------------------------------------------------------------------------- // //cs_kf3d.h // //Copyright Е Rishi Ramraj, 2004 //Animation wrapper //---------------------------------------------------------------------------- //ииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииии// // header :: Inclusions //ииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииии// #include "cs_kf3d_spec.h" //ииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииии// // header :: Definitions //ииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииии// //ииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииии// // header :: Structures //ииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииии// //ииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииии// // header :: Class Defs //ииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииии// class cs_kf3d_c { public: cs_kf3d_c(void); ~cs_kf3d_c(void); bool load(char * path); void unload(void); int get_anim_int(const char * name) const; kf3d_animation_t * get_anim_ptr(const char * name) const; kf3d_animation_t * get_anim_ptr(const int index) const; private: bool active; int num_anims; kf3d_animation_t * animations; }; //ииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииии// // header :: Function Defs //ииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииии// //---------------------------------------------------------------------------- //cs_kf3d.h //Copyright Е Rishi Ramraj, 2004 //---------------------------------------------------------------------------- #endif //__CS_KF3D_H__
[ "t.rejhons@gmail.com" ]
t.rejhons@gmail.com
54f981f9679c0c38c1474a5ccad15882be553070
62af28bba4cb110b2dcb3886697da96489b63f22
/MetalSlugShooting/Server/Server/main.cpp
ac81f1793d6d93974ae46a2bbbf4ee497019e8bb
[]
no_license
XDNoob/MetalSlugShooting
e3b896e178ed0f04260a433c0f1345f390a89409
1ad2ebe9d54853868c8940618e78bda1de4d84a4
refs/heads/master
2022-01-08T05:40:07.658860
2018-12-06T07:47:30
2018-12-06T07:47:30
null
0
0
null
null
null
null
UHC
C++
false
false
10,024
cpp
#include "Server.h" #include "Protocol.h" #include "CTimer.h" #define SERVERPORT 9000 #define BUFSIZE 5000 //===================================================================== //int g_iGameState[PLAYERMAX] = {}; int g_iGameState = GAME_READY; CTimer* g_Timer[PLAYERMAX] = {}; // Timer class float g_fTime[PLAYERMAX] = {}; // 현재 시간 float g_fTimeLimit[PLAYERMAX] = {}; // 한계 시간 float g_fInputTime = 0.f; CRITICAL_SECTION cs; DATA g_tData; Key_DATA g_tKeyData; int g_iConnectNum = 0; char buf[BUFSIZE] = {}; int g_iBulletCount[PLAYERMAX] = {}; int g_iBoomCount[3] = {}; bool g_bPlayerTimer[PLAYERMAX] = {}; //===================================================================== // 클라이언트와 데이터 통신 스레드함수 DWORD WINAPI ProcessClient(LPVOID arg); void Logic(int client_id, SOCKET sock); void Init(); void Delete(); void Input(int id, SOCKET sock, float fTime); // RecvInput void Update(int id, SOCKET sock, float fTime); void DataInit(); void BulletUpdate(int id); //void BoonUpdate(int id); int main(int argc, char *argv[]) { Init(); int retval; // 윈속 초기화 WSADATA wsa; if (WSAStartup(MAKEWORD(2, 2), &wsa) != 0) { cout << "윈속 초기화 안됨" << endl; return 1; } // socket() SOCKET listen_sock = socket(AF_INET, SOCK_STREAM, 0); if (listen_sock == INVALID_SOCKET) { cout << "socket 에러" << endl; } // bind() SOCKADDR_IN serveraddr; ZeroMemory(&serveraddr, sizeof(serveraddr)); serveraddr.sin_family = AF_INET; serveraddr.sin_addr.s_addr = htonl(INADDR_ANY); serveraddr.sin_port = htons(SERVERPORT); retval = bind(listen_sock, (SOCKADDR *)&serveraddr, sizeof(serveraddr)); if (retval == SOCKET_ERROR) { cout << "bind 에러" << endl; } // listen() retval = listen(listen_sock, SOMAXCONN); if (retval == SOCKET_ERROR) { cout << "listen 에러" << endl; } // 데이터 통신에 사용할 변수 SOCKET client_sock; SOCKADDR_IN clientaddr; int addrlen; HANDLE hThread; while (true) { if (g_iConnectNum >= PLAYERMAX - 1) continue; // accept() addrlen = sizeof(clientaddr); client_sock = accept(listen_sock, (SOCKADDR *)&clientaddr, &addrlen); if (client_sock == INVALID_SOCKET) { cout << "accept 에러" << endl; break; } // 접속한 클라이언트 정보 출력 printf("\n[TCP 서버] 클라이언트 접속: IP 주소=%s, 포트 번호=%d\n", inet_ntoa(clientaddr.sin_addr), ntohs(clientaddr.sin_port)); g_tData.num = g_iConnectNum + 1; send(client_sock, (char*)&g_tData, sizeof(DATA), 0); // 초기 데이터 전송 // 스레드 생성 hThread = CreateThread(NULL, 0, ProcessClient, (LPVOID)client_sock, 0, NULL); // closesocket() - client socket if (hThread == NULL) { closesocket(client_sock); } else { // 종료한 클라이언트 출력 CloseHandle(hThread); } } // closesocket() closesocket(listen_sock); // 윈속 종료 WSACleanup(); return 0; } DWORD WINAPI ProcessClient(LPVOID arg) { SOCKET client_sock = (SOCKET)arg; SOCKADDR_IN clientaddr; int addrlen; int client_id; EnterCriticalSection(&cs); addrlen = sizeof(clientaddr); getpeername(client_sock, (SOCKADDR *)&clientaddr, &addrlen); client_id = g_iConnectNum; ++g_iConnectNum; LeaveCriticalSection(&cs); g_Timer[client_id] = new CTimer; g_Timer[client_id]->Init(); while (g_iGameState/*[client_id]*/ != GAME_END) { Logic(client_id, client_sock); } Delete(); return 0; } void Logic(int client_id, SOCKET sock) { g_Timer[client_id]->Update(); //cout << g_Timer->GetLimit() << endl; float fTime = g_Timer[client_id]->GetDeltaTime(); //cout << fTime << endl; Input(client_id, sock, fTime); Update(client_id, sock, fTime); } void Delete() { delete g_Timer[0]; g_Timer[0] = NULL; delete g_Timer[1]; g_Timer[1] = NULL; g_bPlayerTimer[0] = false; g_bPlayerTimer[1] = false; DeleteCriticalSection(&cs); cout << "Delete() 호출" << endl; } void Input(int id, SOCKET sock, float fTime) { if (g_iGameState/*[0]*/ != GAME_PLAY /*&& g_iGameState[1] != GAME_PLAY */) return; if (id + 1 != g_tKeyData.num) // id가 이 keydata의 num과 같지않으면 입력받은 키 데이터 처리를 안할거예욧! { return; } recvn(sock, (char*)&g_tKeyData, sizeof(Key_DATA), 0); // 키값 받기 //EnterCriticalSection(&cs); cout << id + 1 << "P : recvKeyData " << g_tKeyData.key << endl; //LeaveCriticalSection(&cs); if (g_tKeyData.key == NONE_KEY) { if (g_tData.player[id].dir == -1) { g_tData.player[id].state = 0; } else { g_tData.player[id].state = 1; } } if (g_tKeyData.key == LEFT_KEY) { g_tData.player[id].dir = -1; g_tData.player[id].x += PLAYER_SPEED * g_tData.player[id].dir; g_tData.player[id].state = 4; } if (g_tKeyData.key == RIGHT_KEY) { g_tData.player[id].dir = 1; g_tData.player[id].x += PLAYER_SPEED * g_tData.player[id].dir; g_tData.player[id].state = 5; } if (g_tKeyData.key == DOWN_KEY) { if (g_tData.player[id].dir == -1) { g_tData.player[id].state = 8; } else { g_tData.player[id].state = 9; } } if (g_tKeyData.key == SHOOT_KEY) { if (g_tData.player[id].bulletcnt < 1) return; g_iBulletCount[id] += 1; // id의 총알 카운트 증가 g_tData.player[id].bulletcnt -= 1; // id의 보유한 총알 감소 if (g_tData.player[id].dir == -1) { g_tData.player[id].state = 2; } else { g_tData.player[id].state = 3; } g_tData.bullet[id][g_iBulletCount[id]].num = id; // 이 총알 주인은 id g_tData.bullet[id][g_iBulletCount[id]].x = g_tData.player[id].x; // id의 x g_tData.bullet[id][g_iBulletCount[id]].y = g_tData.player[id].y; // id의 y g_tData.bullet[id][g_iBulletCount[id]].dir = g_tData.player[id].dir; // id의 방향 g_tData.bullet[id][g_iBulletCount[id]].shoot = true; // 총알이 발사됨! //cout << "CreateBullet" << endl; } /*if (g_tKeyData.key == Q_KEY) { if (g_tData.player[id].boomcnt< 1) return; }*/ /*if (g_tKeyData.key == SHOOT_LEFT_KEY) { if (g_tData.player[id].bulletcnt < 1) return; g_tData.player[id].dir = -1; g_tData.player[id].x += PLAYER_SPEED * g_tData.player[id].dir; g_iBulletCount[id] += 1; // id의 총알 카운트 증가 g_tData.player[id].bulletcnt -= 1; // id의 보유한 총알 감소 g_tData.bullet[id][g_iBulletCount[id]].num = id; // 이 총알 주인은 id g_tData.bullet[id][g_iBulletCount[id]].x = g_tData.player[id].x; // id의 x g_tData.bullet[id][g_iBulletCount[id]].y = g_tData.player[id].y; // id의 y g_tData.bullet[id][g_iBulletCount[id]].dir = g_tData.player[id].dir; // id의 방향 g_tData.bullet[id][g_iBulletCount[id]].shoot = true; // 총알이 발사됨! cout << "CreateBullet" << endl; } if (g_tKeyData.key == SHOOT_RIGHT_KEY) { if (g_tData.player[id].bulletcnt < 1) return; g_tData.player[id].dir = 1; g_tData.player[id].x += PLAYER_SPEED * g_tData.player[id].dir; g_iBulletCount[id] += 1; // id의 총알 카운트 증가 g_tData.player[id].bulletcnt -= 1; // id의 보유한 총알 감소 g_tData.bullet[id][g_iBulletCount[id]].num = id; // 이 총알 주인은 id g_tData.bullet[id][g_iBulletCount[id]].x = g_tData.player[id].x; // id의 x g_tData.bullet[id][g_iBulletCount[id]].y = g_tData.player[id].y; // id의 y g_tData.bullet[id][g_iBulletCount[id]].dir = g_tData.player[id].dir; // id의 방향 g_tData.bullet[id][g_iBulletCount[id]].shoot = true; // 총알이 발사됨! cout << "CreateBullet" << endl; } */ } void Update(int id, SOCKET sock, float fTime) { send(sock, (char*)&g_iGameState/*[id]*/, sizeof(int), 0); //EnterCriticalSection(&cs); cout << id + 1<< "P : SendGameState -> " << g_iGameState/*[id]*/ << endl; //LeaveCriticalSection(&cs); if (g_iGameState/*[id]*/ == GAME_READY) { //cout << "ConnectCount : " << g_iConnectNum << endl; if (g_iConnectNum == 2) { //cout << "Client 둘다 접속" << endl; g_iGameState/*[id]*/ = GAME_OK; } } if (g_iGameState/*[id]*/ == GAME_OK) { g_fTime[id] += fTime; cout << id << "P : " << g_fTime[id] << endl; if (g_fTime[id] > 1.f) { g_iGameState/*[id]*/ = GAME_PLAY; g_fTime[id] = 0; g_fTimeLimit[id] = 90.f; } } if (g_iGameState/*[id]*/ == GAME_PLAY) { g_fTimeLimit[id] -= fTime; BulletUpdate(id); send(sock, (char*)&g_tData, sizeof(DATA), 0); //EnterCriticalSection(&cs); cout << id + 1<< "P에게 데이터 보냄" << endl; //cout << id + 1<< "상태 : " << g_tData.player[id].state << endl; //LeaveCriticalSection(&cs); } } void DataInit() { cout << "Data 초기화" << endl; g_iConnectNum = 0; g_tData.num = 0; g_tData.player[0].num = 1; g_tData.player[0].x = 300; g_tData.player[0].y = 500; g_tData.player[0].magazinecnt = 2; g_tData.player[0].boomcnt = 0; g_tData.player[0].bulletcnt = 100; g_tData.player[0].hp = 30; g_tData.player[0].dir = 1; g_tData.player[1].num = 2; g_tData.player[1].x = 500; g_tData.player[1].y = 500; g_tData.player[1].magazinecnt = 2; g_tData.player[1].boomcnt = 0; g_tData.player[1].bulletcnt = 100; g_tData.player[1].hp = 100; g_tData.player[1].dir = -1; for (int i = 0; i < PLAYERMAX; ++i) { for (int j = 0; j < MAXCOUNT; ++j) { g_tData.bullet[i][j].x = -200; g_tData.bullet[i][j].y = -200; g_tData.bullet[i][j].dir = 0; g_tData.bullet[i][j].num = i; g_tData.bullet[i][j].shoot = false; } /*for (int j = 0; j < 3; ++j) { g_tData.boom[i][j].x = -300; g_tData.boom[i][j].y = -300; g_tData.boom[i][j].dir = 0; g_tData.boom[i][j].num = i; g_tData.boom[i][j].shoot = false; }*/ g_iBulletCount[i] = 0; g_iBoomCount[i] = 0; g_iGameState/*[i] */= GAME_READY; } } void BulletUpdate(int id) { for (int i = 0; i < MAXCOUNT; ++i) { if (!g_tData.bullet[id][i].shoot) { g_tData.bullet[id][i].x = -200; continue; } g_tData.bullet[id][i].x += BULLET_SPEED * g_tData.bullet[id][i].dir; } }
[ "ekgp6360@naver.com" ]
ekgp6360@naver.com
e82b48d3d086dc2d920c62bc511c05f74108853d
4116ec76cb0f9cadd47a4a4c4a980d52024a4e82
/selectionSort_0.cpp
1076c2459c501ad1705882d22829603963a52a6e
[]
no_license
leesangkoo/selectionSort_0
90c36a519c0b30ad14f6a7c960deb34226d8c515
1c19de587c9eb2fcc9d51889edd8f81a180ef3e4
refs/heads/master
2023-05-14T18:05:09.748201
2021-05-31T12:08:29
2021-05-31T12:08:29
372,493,309
0
0
null
null
null
null
UTF-8
C++
false
false
758
cpp
 #include <iostream> using namespace std; int main() { int i, j, min, index, temp; int array[10] = { 1,10,5,8,7,6,4,3,2,9 }; for (i = 0; i < 10; i++) { cout << "before array[" << i << "] = " << array[i] << endl; } for (i = 0; i < 10; i++) { min = 1000; for (j = i; j < 10; j++) { if (min > array[j]) { min = array[j]; index = j; } // cout << " i = "<<i<<" j = " <<j<<" min = " << min << " index = " << index << endl; } temp = array[i]; array[i] = array[index]; array[index] = temp; cout << "after array["<<i<<"] = " << array[i] << endl; } return 0; }
[ "mindmoversklee@gmail.com" ]
mindmoversklee@gmail.com
7988f51ce96635fa911511c3c9dd58d8a08b837f
154ad9b7b26b5c52536bbd83cdaf0a359e6125c3
/ash/common/system/audio/volume_view.cc
01e96d417ae27303491bb74950daf61915565c95
[ "BSD-3-Clause" ]
permissive
bopopescu/jstrace
6cc239d57e3a954295b67fa6b8875aabeb64f3e2
2069a7b0a2e507a07cd9aacec4d9290a3178b815
refs/heads/master
2021-06-14T09:08:34.738245
2017-05-03T23:17:06
2017-05-03T23:17:06
null
0
0
null
null
null
null
UTF-8
C++
false
false
10,512
cc
// Copyright 2014 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. #include "ash/common/system/audio/volume_view.h" #include "ash/common/ash_constants.h" #include "ash/common/metrics/user_metrics_action.h" #include "ash/common/system/audio/tray_audio.h" #include "ash/common/system/audio/tray_audio_delegate.h" #include "ash/common/system/tray/system_tray_item.h" #include "ash/common/system/tray/tray_constants.h" #include "ash/common/system/tray/tray_popup_item_container.h" #include "ash/common/wm_shell.h" #include "grit/ash_resources.h" #include "grit/ash_strings.h" #include "ui/base/resource/resource_bundle.h" #include "ui/gfx/canvas.h" #include "ui/gfx/image/image_skia_operations.h" #include "ui/views/background.h" #include "ui/views/border.h" #include "ui/views/controls/button/image_button.h" #include "ui/views/controls/image_view.h" #include "ui/views/controls/separator.h" #include "ui/views/layout/box_layout.h" namespace { const int kVolumeImageWidth = 25; const int kVolumeImageHeight = 25; const int kSeparatorSize = 3; const int kSeparatorVerticalInset = 8; const int kSliderRightPaddingToVolumeViewEdge = 17; const int kExtraPaddingBetweenBarAndMore = 10; const int kExtraPaddingBetweenIconAndSlider = 8; const int kBoxLayoutPadding = 2; // IDR_AURA_UBER_TRAY_VOLUME_LEVELS contains 5 images, // The one for mute is at the 0 index and the other // four are used for ascending volume levels. const int kVolumeLevels = 4; } // namespace namespace ash { namespace tray { class VolumeButton : public views::ToggleImageButton { public: VolumeButton(views::ButtonListener* listener, system::TrayAudioDelegate* audio_delegate) : views::ToggleImageButton(listener), audio_delegate_(audio_delegate), image_index_(-1) { SetImageAlignment(ALIGN_CENTER, ALIGN_MIDDLE); image_ = ui::ResourceBundle::GetSharedInstance().GetImageNamed( IDR_AURA_UBER_TRAY_VOLUME_LEVELS); Update(); } ~VolumeButton() override {} void Update() { float level = static_cast<float>(audio_delegate_->GetOutputVolumeLevel()) / 100.0f; int image_index = audio_delegate_->IsOutputAudioMuted() ? 0 : (level == 1.0 ? kVolumeLevels : std::max(1, int(std::ceil(level * (kVolumeLevels - 1))))); if (image_index != image_index_) { gfx::Rect region(0, image_index * kVolumeImageHeight, kVolumeImageWidth, kVolumeImageHeight); gfx::ImageSkia image_skia = gfx::ImageSkiaOperations::ExtractSubset( *(image_.ToImageSkia()), region); SetImage(views::CustomButton::STATE_NORMAL, &image_skia); image_index_ = image_index; } } private: // views::View: gfx::Size GetPreferredSize() const override { gfx::Size size = views::ToggleImageButton::GetPreferredSize(); size.set_height(GetTrayConstant(TRAY_POPUP_ITEM_HEIGHT)); return size; } // views::CustomButton: void StateChanged() override { if (state() == STATE_HOVERED || state() == STATE_PRESSED) { set_background( views::Background::CreateSolidBackground(kHoverBackgroundColor)); } else { set_background(nullptr); } } system::TrayAudioDelegate* audio_delegate_; gfx::Image image_; int image_index_; DISALLOW_COPY_AND_ASSIGN(VolumeButton); }; VolumeView::VolumeView(SystemTrayItem* owner, system::TrayAudioDelegate* audio_delegate, bool is_default_view) : owner_(owner), audio_delegate_(audio_delegate), icon_(NULL), slider_(NULL), device_type_(NULL), more_(NULL), is_default_view_(is_default_view) { SetFocusBehavior(FocusBehavior::NEVER); views::BoxLayout* box_layout = new views::BoxLayout( views::BoxLayout::kHorizontal, 0, 0, kBoxLayoutPadding); box_layout->SetDefaultFlex(0); SetLayoutManager(box_layout); icon_ = new VolumeButton(this, audio_delegate_); icon_->SetBorder(views::Border::CreateEmptyBorder( 0, kTrayPopupPaddingHorizontal, 0, kExtraPaddingBetweenIconAndSlider)); AddChildView(icon_); slider_ = new views::Slider(this, views::Slider::HORIZONTAL); slider_->set_focus_border_color(kFocusBorderColor); slider_->SetValue( static_cast<float>(audio_delegate_->GetOutputVolumeLevel()) / 100.0f); slider_->SetAccessibleName( ui::ResourceBundle::GetSharedInstance().GetLocalizedString( IDS_ASH_STATUS_TRAY_VOLUME)); slider_->SetBorder( views::Border::CreateEmptyBorder(0, 0, 0, kTrayPopupPaddingBetweenItems)); AddChildView(slider_); box_layout->SetFlexForView(slider_, 1); separator_ = new views::Separator(views::Separator::VERTICAL); separator_->SetColor(kButtonStrokeColor); separator_->SetPreferredSize(kSeparatorSize); separator_->SetBorder(views::Border::CreateEmptyBorder( kSeparatorVerticalInset, 0, kSeparatorVerticalInset, kBoxLayoutPadding)); more_region_ = new TrayPopupItemContainer(separator_, true); more_region_->SetBorder( views::Border::CreateEmptyBorder(0, 0, 0, kTrayPopupPaddingBetweenItems)); AddChildView(more_region_); device_type_ = new views::ImageView; more_region_->AddChildView(device_type_); more_ = new views::ImageView; more_->EnableCanvasFlippingForRTLUI(true); more_->SetImage(ui::ResourceBundle::GetSharedInstance() .GetImageNamed(IDR_AURA_UBER_TRAY_MORE) .ToImageSkia()); more_region_->AddChildView(more_); set_background(views::Background::CreateSolidBackground(kBackgroundColor)); Update(); } VolumeView::~VolumeView() {} void VolumeView::Update() { icon_->Update(); slider_->UpdateState(!audio_delegate_->IsOutputAudioMuted()); UpdateDeviceTypeAndMore(); Layout(); } void VolumeView::SetVolumeLevel(float percent) { // Slider's value is in finer granularity than audio volume level(0.01), // there will be a small discrepancy between slider's value and volume level // on audio side. To avoid the jittering in slider UI, do not set change // slider value if the change is less than 1%. if (std::abs(percent - slider_->value()) < 0.01) return; slider_->SetValue(percent); // It is possible that the volume was (un)muted, but the actual volume level // did not change. In that case, setting the value of the slider won't // trigger an update. So explicitly trigger an update. Update(); slider_->set_enable_accessibility_events(true); } void VolumeView::UpdateDeviceTypeAndMore() { bool show_more = is_default_view_ && TrayAudio::ShowAudioDeviceMenu() && audio_delegate_->HasAlternativeSources(); slider_->SetBorder(views::Border::CreateEmptyBorder( 0, 0, 0, show_more ? kTrayPopupPaddingBetweenItems : kSliderRightPaddingToVolumeViewEdge)); if (!show_more) { more_region_->SetVisible(false); return; } // Show output device icon if necessary. int device_icon = audio_delegate_->GetActiveOutputDeviceIconId(); if (device_icon != system::TrayAudioDelegate::kNoAudioDeviceIcon) { device_type_->SetVisible(true); device_type_->SetImage(ui::ResourceBundle::GetSharedInstance() .GetImageNamed(device_icon) .ToImageSkia()); more_region_->SetLayoutManager(new views::BoxLayout( views::BoxLayout::kHorizontal, 0, 0, kTrayPopupPaddingBetweenItems)); } else { device_type_->SetVisible(false); more_region_->SetLayoutManager(new views::BoxLayout( views::BoxLayout::kHorizontal, 0, 0, kTrayPopupPaddingBetweenItems + kExtraPaddingBetweenBarAndMore)); } more_region_->SetVisible(true); } void VolumeView::HandleVolumeUp(float level) { audio_delegate_->SetOutputVolumeLevel(level); if (audio_delegate_->IsOutputAudioMuted() && level > audio_delegate_->GetOutputDefaultVolumeMuteLevel()) { audio_delegate_->SetOutputAudioIsMuted(false); } } void VolumeView::HandleVolumeDown(float level) { audio_delegate_->SetOutputVolumeLevel(level); if (!audio_delegate_->IsOutputAudioMuted() && level <= audio_delegate_->GetOutputDefaultVolumeMuteLevel()) { audio_delegate_->SetOutputAudioIsMuted(true); } else if (audio_delegate_->IsOutputAudioMuted() && level > audio_delegate_->GetOutputDefaultVolumeMuteLevel()) { audio_delegate_->SetOutputAudioIsMuted(false); } } void VolumeView::ButtonPressed(views::Button* sender, const ui::Event& event) { CHECK(sender == icon_); bool mute_on = !audio_delegate_->IsOutputAudioMuted(); audio_delegate_->SetOutputAudioIsMuted(mute_on); if (!mute_on) audio_delegate_->AdjustOutputVolumeToAudibleLevel(); icon_->Update(); } void VolumeView::SliderValueChanged(views::Slider* sender, float value, float old_value, views::SliderChangeReason reason) { if (reason == views::VALUE_CHANGED_BY_USER) { float new_volume = value * 100.0f; float current_volume = audio_delegate_->GetOutputVolumeLevel(); // Do not call change audio volume if the difference is less than // 1%, which is beyond cras audio api's granularity for output volume. if (std::abs(new_volume - current_volume) < 1.0f) return; WmShell::Get()->RecordUserMetricsAction( is_default_view_ ? UMA_STATUS_AREA_CHANGED_VOLUME_MENU : UMA_STATUS_AREA_CHANGED_VOLUME_POPUP); if (new_volume > current_volume) HandleVolumeUp(new_volume); else HandleVolumeDown(new_volume); } icon_->Update(); } bool VolumeView::PerformAction(const ui::Event& event) { if (!more_region_->visible()) return false; owner_->TransitionDetailedView(); return true; } void VolumeView::OnBoundsChanged(const gfx::Rect& previous_bounds) { // Separator's prefered size is based on set bounds. When an empty bounds is // set on first layout this causes BoxLayout to ignore the separator. Reset // its height on each bounds change so that it is laid out properly. separator_->SetSize(gfx::Size(kSeparatorSize, bounds().height())); } void VolumeView::GetAccessibleState(ui::AXViewState* state) { // Intentionally overrides ActionableView, leaving |state| unset. A slider // childview exposes accessibility data. } } // namespace tray } // namespace ash
[ "zzbthechaos@gmail.com" ]
zzbthechaos@gmail.com
a00327170c831f9a20483c036186a9c19d22c62b
544a465731b44638ad61a4afa4f341aecf66f3cd
/vendor/cxsc-2.2.3/CToolbox/Modules/ddf_ari.cpp
b51d23d5cd6613b095709b9b2b315e95c3421a82
[]
no_license
skempken/interverdikom
e13cbe592aa6dc5b67d8b2fbb4182bcb2b8bc15b
dde091ee71dc1d88bbedb5162771623f3ab8a6f4
refs/heads/master
2020-05-29T15:29:18.076702
2014-01-03T10:10:03
2014-01-03T10:10:03
null
0
0
null
null
null
null
UTF-8
C++
false
false
21,526
cpp
/* ** CXSC is a C++ library for eXtended Scientific Computing (V 2.2.3) ** ** Copyright (C) 1990-2000 Institut fuer Angewandte Mathematik, ** Universitaet Karlsruhe, Germany ** (C) 2000-2008 Wiss. Rechnen/Softwaretechnologie ** Universitaet Wuppertal, Germany ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Library General Public ** License as published by the Free Software Foundation; either ** version 2 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Library General Public License for more details. ** ** You should have received a copy of the GNU Library General Public ** License along with this library; if not, write to the Free ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* CVS $Id: ddf_ari.cpp,v 1.4 2008/04/17 07:53:35 cxsc Exp $ */ //============================================================================ // // Program/Module // from // C++ TOOLBOX FOR VERIFIED COMPUTING I // Basic Numerical Problems // // Copyright (c) 1995 Rolf Hammer, Matthias Hocks, Dietmar Ratz // // This program/module is free software for non-commercial use. For details // on theory, algorithms, and programs, see the book // // R. Hammer, M. Hocks, U. Kulisch, D. Ratz: C++ Toolbox for // Verified Computing I - Basic Numerical Problems. Springer-Verlag, // Heidelberg, New York, 1995. // // This program/module is distributed WITHOUT ANY WARRANTY. For details, // see the "Disclaimer / Legal Matters" of the book (page iv). // //============================================================================ //---------------------------------------------------------------------------- // File: ddf_ari (implementation) // Purpose: Definition of an interval differentiation arithmetic which allows // function evaluation with automatic differentiation up to second order. // Method: Overloading of operators and elementary functions for operations // of data type 'DerivType'. // Class DerivType: // DerivType() : constructors // operators +, -, *, / : operators of diff. arithmetic // operator = : assignment operator // DerivConst() // DerivVar() : to define derivative constants/variables // fValue() // dfValue() // ddfValue() : to get function and derivative values // sqr(), sqrt(), power(), // exp(), sin(), cos(), ...: elementary functions of diff. arithmetic // fEval() : to compute function value only // dfEval() : to compute function and first derivative // value // ddfEval() : to compute function, first, and second // derivative value //---------------------------------------------------------------------------- #include <imath.hpp> // Interval mathematical functions #include <ddf_ari.hpp> using namespace cxsc; using namespace std; // The local variable 'DerivOrder' is used to select the highest order of // derivative which is computed. Its default value is 2, and normally the // first and the second derivatives are computed. //---------------------------------------------------------------------------- static int DerivOrder = 2; //---------------------------------------------------------------------------- // Constructors and assignment operator //---------------------------------------------------------------------------- DerivType::DerivType ( ) { f = 0.0; df = 0.0; ddf = 0.0; } DerivType::DerivType ( const interval& x_f, const interval& x_df, const interval& x_ddf ) { f = x_f; df = x_df; ddf = x_ddf; } DerivType::DerivType ( const DerivType& u ) { f = u.f; df = u.df; ddf = u.ddf; } DerivType& DerivType::operator= ( const DerivType& u ) { f = u.f; df = u.df; ddf = u.ddf; return *this; } //---------------------------------------------------------------------------- // Transfer functions for constants and variables //---------------------------------------------------------------------------- DerivType DerivConst ( const real& c ) // Generate constant { //------------------ DerivType u; u.f = c; u.df = 0.0; u.ddf = 0.0; return u; } DerivType DerivConst ( const interval& c ) // Generate constant { //------------------ DerivType u; u.f = c; u.df = 0.0; u.ddf = 0.0; return u; } DerivType DerivVar ( const real& v ) // Generate variable { //------------------ DerivType u; u.f = v; u.df = 1.0; u.ddf = 0.0; return u; } DerivType DerivVar ( const interval& v ) // Generate variable { //------------------ DerivType u; u.f = v; u.df = 1.0; u.ddf = 0.0; return u; } //---------------------------------------------------------------------------- // Unary operators + and - for DerivType operands //---------------------------------------------------------------------------- inline DerivType operator+ ( DerivType& u ) { return u; } DerivType operator- ( const DerivType& u ) { DerivType res; res.f = -u.f; if (DerivOrder > 0) { res.df = -u.df; if (DerivOrder > 1) res.ddf = -u.ddf; } return res; } //---------------------------------------------------------------------------- // Operators +, -, *, and / for two DerivType operands //---------------------------------------------------------------------------- DerivType operator+ ( const DerivType& u, const DerivType& v ) { DerivType res; res.f = u.f + v.f; if (DerivOrder > 0) { res.df = u.df + v.df; if (DerivOrder > 1) res.ddf = u.ddf + v.ddf; } return res; } DerivType operator- ( const DerivType& u, const DerivType& v ) { DerivType res; res.f = u.f - v.f; if (DerivOrder > 0) { res.df = u.df - v.df; if (DerivOrder > 1) res.ddf = u.ddf - v.ddf; } return res; } DerivType operator* ( const DerivType& u, const DerivType& v ) { DerivType res; res.f = u.f * v.f; if (DerivOrder > 0) { res.df = u.df*v.f + u.f*v.df; if (DerivOrder > 1) res.ddf = u.ddf*v.f + 2.0*u.df*v.df + u.f*v.ddf; } return res; } DerivType operator/ ( const DerivType& u, const DerivType& v ) { DerivType res; interval h1, h2; h1 = u.f / v.f; // Can propagate 'division by zero' error res.f = h1; //--------------------------------------- if (DerivOrder > 0) { h2 = (u.df - h1*v.df) / v.f; res.df = h2; if (DerivOrder > 1) res.ddf = (u.ddf - h1*v.ddf - 2.0*h2*v.df)/v.f; } return res; } //---------------------------------------------------------------------------- // Operators +, -, *, and / for one interval and one DerivType operand //---------------------------------------------------------------------------- DerivType operator+ ( const interval& u, const DerivType& v ) { DerivType res; res.f = u + v.f; if (DerivOrder > 0) { res.df = v.df; if (DerivOrder > 1) res.ddf = v.ddf; } return res; } DerivType operator- ( const interval& u, const DerivType& v ) { DerivType res; res.f = u - v.f; if (DerivOrder > 0) { res.df = -v.df; if (DerivOrder > 1) res.ddf = - v.ddf; } return res; } DerivType operator* ( const interval& u, const DerivType& v ) { DerivType res; res.f = u*v.f; if (DerivOrder > 0) { res.df = u * v.df; if (DerivOrder > 1) res.ddf = u*v.ddf; } return res; } DerivType operator/ ( const interval& u, const DerivType& v ) { DerivType res; interval h1, h2; h1 = u / v.f; // Can propagate 'division by zero' error res.f = h1; //--------------------------------------- if (DerivOrder > 0) { h2 = -h1 * v.df / v.f; res.df = h2; if (DerivOrder > 1) res.ddf = (-h1*v.ddf - 2.0*h2*v.df)/v.f; } return res; } DerivType operator+ ( const DerivType& u, const interval& v ) { DerivType res; res.f = u.f + v; if (DerivOrder > 0) { res.df = u.df; if (DerivOrder > 1) res.ddf = u.ddf; } return res; } DerivType operator- ( const DerivType& u, const interval& v ) { DerivType res; res.f = u.f - v; if (DerivOrder > 0) { res.df = u.df; if (DerivOrder > 1) res.ddf = u.ddf; } return res; } DerivType operator* ( const DerivType& u, const interval& v ) { DerivType res; res.f = u.f * v; if (DerivOrder > 0) { res.df = u.df * v; if (DerivOrder > 1) res.ddf = u.ddf * v; } return res; } DerivType operator/ ( const DerivType& u, const interval& v ) { DerivType res; res.f = u.f / v; // Can propagate 'division by zero' error if (DerivOrder > 0) { //--------------------------------------- res.df = u.df / v; if (DerivOrder > 1) res.ddf = u.ddf / v; } return res; } //---------------------------------------------------------------------------- // Operands for +, -, *, and / for one real and one DerivType operand //---------------------------------------------------------------------------- DerivType operator+ ( const real& u, const DerivType& v ) { return( interval(u) + v ); } DerivType operator- ( const real& u, const DerivType& v ) { return( interval(u) - v ); } DerivType operator* ( const real& u, const DerivType& v ) { return( interval(u) * v ); } DerivType operator/ ( const real& u, const DerivType& v ) { return( interval(u) / v ); } // Can propagate 'division by zero' error //--------------------------------------- DerivType operator+ ( const DerivType& u, const real& v ) { return( u + interval(v) ); } DerivType operator- ( const DerivType& u, const real& v ) { return( u - interval(v) ); } DerivType operator* ( const DerivType& u, const real& v ) { return( u * interval(v) ); } DerivType operator/ ( const DerivType& u, const real& v ) { return( u / interval(v) ); } // Can propagate 'division by zero' error //--------------------------------------- //---------------------------------------------------------------------------- // Elementary functions for DerivType arguments //---------------------------------------------------------------------------- DerivType sqr ( const DerivType& u ) { DerivType res; res.f = Power(u.f,2); if (DerivOrder > 0) { res.df = 2.0*u.f*u.df; if (DerivOrder > 1) res.ddf = 2.0 * (Power(u.df,2) + u.f*u.ddf); } return res; } DerivType power ( const DerivType& u, int k ) { DerivType res; interval h1; if (k == 0) res = DerivConst(1.0); else if (k == 1) res = u; else { res.f = Power(u.f, k); if (DerivOrder > 0) { h1 = double(k) * Power(u.f, k-1); res.df = h1 * u.df; if (DerivOrder > 1) res.ddf = h1 * u.ddf + double(k*(k-1))*Power(u.f,k-2)*Power(u.df,2); } } return res; } DerivType sqrt ( const DerivType& u ) { DerivType res; interval h1, h2; h1 = sqrt(u.f); // Can propagate domain error res.f = h1; //--------------------------- if (DerivOrder > 0) { h1 = 0.5/h1; h2 = u.df*h1; res.df = h2; if (DerivOrder > 1) res.ddf = u.ddf*h1 - 0.5*u.df/u.f*h2; } return res; } DerivType exp ( const DerivType& u ) { DerivType res; interval h1, h2; h1 = exp(u.f); res.f = h1; if (DerivOrder > 0) { h2 = h1*u.df; res.df = h2; if (DerivOrder > 1) res.ddf = h1*u.ddf + h2*u.df; } return res; } DerivType ln ( const DerivType& u ) { DerivType res; interval h; res.f = ln(u.f); // Can propagate domain error if (DerivOrder > 0) { //--------------------------- h = u.df/u.f; res.df = h; if (DerivOrder > 1) res.ddf = (u.ddf - h*u.df) / u.f; } return res; } DerivType sin ( const DerivType& u ) { DerivType res; interval h0, h1; h0 = sin(u.f); res.f = h0; if (DerivOrder > 0) { h1 = cos(u.f); res.df = h1*u.df; if (DerivOrder > 1) res.ddf = h1*u.ddf - h0*sqr(u.df); } return res; } DerivType cos ( const DerivType& u ) { DerivType res; interval h0, h1; h0 = cos(u.f); res.f = h0; if (DerivOrder > 0) { h1 = -sin(u.f); res.df = h1*u.df; if (DerivOrder > 1) res.ddf = h1*u.ddf - h0*sqr(u.df); } return res; } DerivType tan ( const DerivType& u ) { DerivType res; interval h0, h1, h2; h0 = tan(u.f); // Can propagate domain error res.f = h0; //--------------------------- if (DerivOrder > 0) { // The subdistributive law implies h1 = sqr(h0)+1.0; // h0 * (h0^2 + 1) <= h0^3 + h0. h2 = 2.0*h0*h1; // So, the first form is used. res.df = h1*u.df; //-------------------------------- if (DerivOrder > 1) res.ddf = h1*u.ddf + h2*sqr(u.df); } return res; } DerivType cot ( const DerivType& u ) { DerivType res; interval h0, h1, h2; h0 = cot(u.f); // Can propagate domain error res.f = h0; //--------------------------- if (DerivOrder > 0) { // The subdistributive law implies h1 = -(sqr(h0)+1.0); // h0 * (h0^2 + 1) <= h0^3 + h0. h2 = -2.0*h0*h1; // So, the first form is used. res.df = h1*u.df; //-------------------------------- if (DerivOrder > 1) res.ddf = h1*u.ddf + h2*sqr(u.df); } return res; } DerivType asin ( const DerivType& u ) { DerivType res; interval h, h1, h2; res.f = asin(u.f); // Can propagate domain error if (DerivOrder > 0) { //--------------------------- h = 1.0 - sqr(u.f); h1 = 1.0/sqrt(h); res.df = h1*u.df; h2 = u.f*h1/h; if (DerivOrder > 1) res.ddf = h1*u.ddf + h2*sqr(u.df); } return res; } DerivType acos ( const DerivType& u ) { DerivType res; interval h, h1, h2; res.f = acos(u.f); // Can propagate domain error if (DerivOrder > 0) { //--------------------------- h = 1.0 - sqr(u.f); h1 = -1.0/sqrt(h); res.df = h1*u.df; h2 = u.f*h1/h; if (DerivOrder > 1) res.ddf = h1*u.ddf + h2*sqr(u.df); } return res; } DerivType atan ( const DerivType& u ) { DerivType res; interval h1, h2; res.f = atan(u.f); if (DerivOrder > 0) { h1 = 1.0 / (1.0 + sqr(u.f)); res.df = h1*u.df; h2 = -2.0*u.f*sqr(h1); if (DerivOrder > 1) res.ddf = h1*u.ddf + h2*sqr(u.df); } return res; } DerivType acot ( const DerivType& u ) { DerivType res; interval h1, h2; res.f = acot(u.f); // Can propagate domain error if (DerivOrder > 0) { //--------------------------- h1 = -1.0 / (1.0 + sqr(u.f)); res.df = h1*u.df; h2 = 2.0*u.f*sqr(h1); if (DerivOrder > 1) res.ddf = h1*u.ddf + h2*sqr(u.df); } return res; } DerivType sinh ( const DerivType& u ) { DerivType res; interval h0, h1; h0 = sinh(u.f); res.f = h0; if (DerivOrder > 0) { h1 = cosh(u.f); res.df = h1*u.df; if (DerivOrder > 1) res.ddf = h1*u.ddf + h0*sqr(u.df); } return res; } DerivType cosh ( const DerivType& u ) { DerivType res; interval h0, h1; h0 = cosh(u.f); res.f = h0; if (DerivOrder > 0) { h1 = sinh(u.f); res.df = h1*u.df; if (DerivOrder > 1) res.ddf = h1*u.ddf + h0*sqr(u.df); } return res; } DerivType tanh ( const DerivType& u ) { DerivType res; interval h0, h1, h2; h0 = tanh(u.f); res.f = h0; if (DerivOrder > 0) { // The subdistributive law implies h1 = 1.0 - sqr(h0); // h0 * (h0^2 - 1) <= h0^3 - h0. h2 = -2.0*h0*h1; // So, the first form is used. res.df = h1*u.df; //-------------------------------- if (DerivOrder > 1) res.ddf = h1*u.ddf + h2*sqr(u.df); } return res; } DerivType coth ( const DerivType& u ) { DerivType res; interval h0, h1, h2; h0 = coth(u.f); // Can propagate domain error res.f = h0; //--------------------------- if (DerivOrder > 0) { // The subdistributive law implies h1 = 1.0 - sqr(h0); // h0 * (h0^2 - 1) <= h0^3 - h0. h2 = -2.0*h0*h1; // So, the first form is used. res.df = h1*u.df; //-------------------------------- if (DerivOrder > 1) res.ddf = h1*u.ddf + h2*sqr(u.df); } return res; } DerivType asinh ( const DerivType& u ) { DerivType res; interval h, h1, h2; res.f = asinh(u.f); // Can propagate domain error if (DerivOrder > 0) { //--------------------------- h = 1.0 + sqr(u.f); h1 = 1.0/sqrt(h); res.df = h1*u.df; h2 = -u.f*h1/h; if (DerivOrder > 1) res.ddf = h1*u.ddf + h2*sqr(u.df); } return res; } DerivType acosh ( const DerivType& u ) { DerivType res; interval h, h1, h2; res.f = acosh(u.f); // Can propagate domain error if (DerivOrder > 0) { //--------------------------- h = sqr(u.f) - 1.0; h1 = 1.0/sqrt(h); res.df = h1*u.df; h2 = -u.f*h1/h; if (DerivOrder > 1) res.ddf = h1*u.ddf + h2*sqr(u.df); } return res; } DerivType atanh ( const DerivType& u ) { DerivType res; interval h1, h2; res.f = atanh(u.f); // Can propagate domain error if (DerivOrder > 0) { //--------------------------- h1 = 1.0 / (1.0 - sqr(u.f)); res.df = h1*u.df; h2 = 2.0*u.f*sqr(h1); if (DerivOrder > 1) res.ddf = h1*u.ddf + h2*sqr(u.df); } return res; } DerivType acoth ( const DerivType& u ) { DerivType res; interval h1, h2; res.f = acoth(u.f); // Can propagate domain error if (DerivOrder > 0) { //--------------------------- h1 = 1.0 / (1.0 - sqr(u.f)); res.df = h1*u.df; h2 = 2.0*u.f*sqr(h1); if (DerivOrder > 1) res.ddf = h1*u.ddf + h2*sqr(u.df); } return res; } //---------------------------------------------------------------------------- // Predefined routines for evaluation of DerivType-functions //---------------------------------------------------------------------------- //---------------------------------------------------------------------------- // Purpose: Evaluation of function 'f' for argument 'x' in differentiation // arithmetic computing only the function value. // Parameters: // In : 'f' : function of 'DerivType' // 'x' : argument for evaluation of 'f' // Out: 'fx': returns the function value 'f(x)' // Description: This function sets 'DerivOrder' to 0, evaluates 'f(x)' in // differentiation arithmetic, and returns the function value only. //---------------------------------------------------------------------------- void fEval ( ddf_FctPtr f, interval x, interval& fx ) { DerivType xD, fxD; DerivOrder = 0; xD = DerivVar(x); fxD = f(xD); fx = fxD.f; DerivOrder = 2; } //---------------------------------------------------------------------------- // Purpose: Evaluation of function 'f' for argument 'x' in differentiation // arithmetic computing the function value and the value of the first // derivative. // Parameters: // In : 'f' : function of 'DerivType' // 'x' : argument for evaluation of 'f' // Out: 'fx' : returns the function value 'f(x)' // 'dfx': returns the first derivative value 'f'(x)' // Description: This function sets 'DerivOrder' to 1, evaluates 'f(x)' in // differentiation arithmetic, and returns the function value and the // value of the first derivative. //---------------------------------------------------------------------------- void dfEval ( ddf_FctPtr f, interval x, interval& fx, interval& dfx ) { DerivType xD, fxD; DerivOrder = 1; xD = DerivVar (x); fxD = f(xD); fx = fxD.f; dfx = fxD.df; DerivOrder = 2; } //---------------------------------------------------------------------------- // Purpose: Evaluation of function 'f' for argument 'x' in differentiation // arithmetic computing the function value, the value of the first, and // the value of the second derivative. // Parameters: // In : 'f' : function of 'DerivType' // 'x' : argument for evaluation of 'f' // Out: 'fx' : returns the function value 'f(x)' // 'dfx' : returns the value of the first derivative 'f'(x)' // 'ddfx': returns the value of the second derivative 'f''(x)' // Description: This function keeps 'DerivOrder' = 2, evaluates 'f(x)' in // differentiation arithmetic, and returns the function value, the value // of the first, and the value of the second derivative. //---------------------------------------------------------------------------- void ddfEval ( ddf_FctPtr f, interval x, interval& fx, interval& dfx, interval& ddfx ) { DerivType xD, fxD; xD = DerivVar(x); fxD = f(xD); fx = fxD.f; dfx = fxD.df; ddfx = fxD.ddf; }
[ "sebastian@ivk-virtualbox.(none)" ]
sebastian@ivk-virtualbox.(none)
3eed1f64d598892eaae376466643a5a864b98964
37421acb6ab434bf46afc30fe20397892b55fd93
/code/l3lib/include/google/protobuf/util/time_util.h
e3d8fa83a2adbcda5ee42c3c2df302ec3e704a26
[]
no_license
achishex/thunder
cd7f78b23eaf87a83b258eb2c930d97eccbe7e81
e07135f6c496f268c8b0b043148b9a30bcc60a64
refs/heads/master
2021-05-06T10:27:23.416594
2017-09-01T16:35:36
2017-09-01T16:35:36
null
0
0
null
null
null
null
UTF-8
C++
false
false
11,620
h
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // 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 Google Inc. nor the names of its // contributors may be used to endorse or promote products derived from // this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #ifndef GOOGLE_PROTOBUF_UTIL_TIME_UTIL_H__ #define GOOGLE_PROTOBUF_UTIL_TIME_UTIL_H__ #include <ctime> #include <ostream> #include <string> #ifdef _MSC_VER #include <winsock2.h> #else #include <sys/time.h> #endif #include "../../../../../l3lib/include/google/protobuf/duration.pb.h" #include "../../../../../l3lib/include/google/protobuf/timestamp.pb.h" namespace google { namespace protobuf { namespace util { class LIBPROTOBUF_EXPORT TimeUtil { typedef google::protobuf::Timestamp Timestamp; typedef google::protobuf::Duration Duration; public: // The min/max Timestamp/Duration values we support. // // For "0001-01-01T00:00:00Z". static const int64 kTimestampMinSeconds = -62135596800LL; // For "9999-12-31T23:59:59.999999999Z". static const int64 kTimestampMaxSeconds = 253402300799LL; static const int64 kDurationMinSeconds = -315576000000LL; static const int64 kDurationMaxSeconds = 315576000000LL; // Converts Timestamp to/from RFC 3339 date string format. // Generated output will always be Z-normalized and uses 3, 6 or 9 // fractional digits as required to represent the exact time. When // parsing, any fractional digits (or none) and any offset are // accepted as long as they fit into nano-seconds precision. // Note that Timestamp can only represent time from // 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. Converting // a Timestamp outside of this range is undefined behavior. // See https://www.ietf.org/rfc/rfc3339.txt // // Example of generated format: // "1972-01-01T10:00:20.021Z" // // Example of accepted format: // "1972-01-01T10:00:20.021-05:00" static string ToString(const Timestamp& timestamp); static bool FromString(const string& value, Timestamp* timestamp); // Converts Duration to/from string format. The string format will contains // 3, 6, or 9 fractional digits depending on the precision required to // represent the exact Duration value. For example: // "1s", "1.010s", "1.000000100s", "-3.100s" // The range that can be represented by Duration is from -315,576,000,000 // to +315,576,000,000 inclusive (in seconds). static string ToString(const Duration& duration); static bool FromString(const string& value, Duration* timestamp); #ifdef GetCurrentTime #undef GetCurrentTime // Visual Studio has macro GetCurrentTime #endif // Gets the current UTC time. static Timestamp GetCurrentTime(); // Returns the Time representing "1970-01-01 00:00:00". static Timestamp GetEpoch(); // Converts between Duration and integer types. The behavior is undefined if // the input value is not in the valid range of Duration. static Duration NanosecondsToDuration(int64 nanos); static Duration MicrosecondsToDuration(int64 micros); static Duration MillisecondsToDuration(int64 millis); static Duration SecondsToDuration(int64 seconds); static Duration MinutesToDuration(int64 minutes); static Duration HoursToDuration(int64 hours); // Result will be truncated towards zero. For example, "-1.5s" will be // truncated to "-1s", and "1.5s" to "1s" when converting to seconds. // It's undefined behavior if the input duration is not valid or the result // exceeds the range of int64. A duration is not valid if it's not in the // valid range of Duration, or have an invalid nanos value (i.e., larger // than 999999999, less than -999999999, or have a different sign from the // seconds part). static int64 DurationToNanoseconds(const Duration& duration); static int64 DurationToMicroseconds(const Duration& duration); static int64 DurationToMilliseconds(const Duration& duration); static int64 DurationToSeconds(const Duration& duration); static int64 DurationToMinutes(const Duration& duration); static int64 DurationToHours(const Duration& duration); // Creates Timestamp from integer types. The integer value indicates the // time elapsed from Epoch time. The behavior is undefined if the input // value is not in the valid range of Timestamp. static Timestamp NanosecondsToTimestamp(int64 nanos); static Timestamp MicrosecondsToTimestamp(int64 micros); static Timestamp MillisecondsToTimestamp(int64 millis); static Timestamp SecondsToTimestamp(int64 seconds); // Result will be truncated down to the nearest integer value. For example, // with "1969-12-31T23:59:59.9Z", TimestampToMilliseconds() returns -100 // and TimestampToSeconds() returns -1. It's undefined behavior if the input // Timestamp is not valid (i.e., its seconds part or nanos part does not fall // in the valid range) or the return value doesn't fit into int64. static int64 TimestampToNanoseconds(const Timestamp& timestamp); static int64 TimestampToMicroseconds(const Timestamp& timestamp); static int64 TimestampToMilliseconds(const Timestamp& timestamp); static int64 TimestampToSeconds(const Timestamp& timestamp); // Conversion to/from other time/date types. Note that these types may // have a different precision and time range from Timestamp/Duration. // When converting to a lower precision type, the value will be truncated // to the nearest value that can be represented. If the value is // out of the range of the result type, the return value is undefined. // // Conversion to/from time_t static Timestamp TimeTToTimestamp(time_t value); static time_t TimestampToTimeT(const Timestamp& value); // Conversion to/from timeval static Timestamp TimevalToTimestamp(const timeval& value); static timeval TimestampToTimeval(const Timestamp& value); static Duration TimevalToDuration(const timeval& value); static timeval DurationToTimeval(const Duration& value); }; } // namespace util } // namespace protobuf namespace protobuf { // Overloaded operators for Duration. // // Assignment operators. LIBPROTOBUF_EXPORT Duration& operator+=(Duration& d1, const Duration& d2); // NOLINT LIBPROTOBUF_EXPORT Duration& operator-=(Duration& d1, const Duration& d2); // NOLINT LIBPROTOBUF_EXPORT Duration& operator*=(Duration& d, int64 r); // NOLINT LIBPROTOBUF_EXPORT Duration& operator*=(Duration& d, double r); // NOLINT LIBPROTOBUF_EXPORT Duration& operator/=(Duration& d, int64 r); // NOLINT LIBPROTOBUF_EXPORT Duration& operator/=(Duration& d, double r); // NOLINT // Overload for other integer types. template <typename T> Duration& operator*=(Duration& d, T r) { // NOLINT int64 x = r; return d *= x; } template <typename T> Duration& operator/=(Duration& d, T r) { // NOLINT int64 x = r; return d /= x; } LIBPROTOBUF_EXPORT Duration& operator%=(Duration& d1, const Duration& d2); // NOLINT // Relational operators. inline bool operator<(const Duration& d1, const Duration& d2) { if (d1.seconds() == d2.seconds()) { return d1.nanos() < d2.nanos(); } return d1.seconds() < d2.seconds(); } inline bool operator>(const Duration& d1, const Duration& d2) { return d2 < d1; } inline bool operator>=(const Duration& d1, const Duration& d2) { return !(d1 < d2); } inline bool operator<=(const Duration& d1, const Duration& d2) { return !(d2 < d1); } inline bool operator==(const Duration& d1, const Duration& d2) { return d1.seconds() == d2.seconds() && d1.nanos() == d2.nanos(); } inline bool operator!=(const Duration& d1, const Duration& d2) { return !(d1 == d2); } // Additive operators inline Duration operator-(const Duration& d) { Duration result; result.set_seconds(-d.seconds()); result.set_nanos(-d.nanos()); return result; } inline Duration operator+(const Duration& d1, const Duration& d2) { Duration result = d1; return result += d2; } inline Duration operator-(const Duration& d1, const Duration& d2) { Duration result = d1; return result -= d2; } // Multiplicative operators template<typename T> inline Duration operator*(Duration d, T r) { return d *= r; } template<typename T> inline Duration operator*(T r, Duration d) { return d *= r; } template<typename T> inline Duration operator/(Duration d, T r) { return d /= r; } LIBPROTOBUF_EXPORT int64 operator/(const Duration& d1, const Duration& d2); inline Duration operator%(const Duration& d1, const Duration& d2) { Duration result = d1; return result %= d2; } inline ostream& operator<<(ostream& out, const Duration& d) { out << google::protobuf::util::TimeUtil::ToString(d); return out; } // Overloaded operators for Timestamp // // Assignement operators. LIBPROTOBUF_EXPORT Timestamp& operator+=(Timestamp& t, const Duration& d); // NOLINT LIBPROTOBUF_EXPORT Timestamp& operator-=(Timestamp& t, const Duration& d); // NOLINT // Relational operators. inline bool operator<(const Timestamp& t1, const Timestamp& t2) { if (t1.seconds() == t2.seconds()) { return t1.nanos() < t2.nanos(); } return t1.seconds() < t2.seconds(); } inline bool operator>(const Timestamp& t1, const Timestamp& t2) { return t2 < t1; } inline bool operator>=(const Timestamp& t1, const Timestamp& t2) { return !(t1 < t2); } inline bool operator<=(const Timestamp& t1, const Timestamp& t2) { return !(t2 < t1); } inline bool operator==(const Timestamp& t1, const Timestamp& t2) { return t1.seconds() == t2.seconds() && t1.nanos() == t2.nanos(); } inline bool operator!=(const Timestamp& t1, const Timestamp& t2) { return !(t1 == t2); } // Additive operators. inline Timestamp operator+(const Timestamp& t, const Duration& d) { Timestamp result = t; return result += d; } inline Timestamp operator+(const Duration& d, const Timestamp& t) { Timestamp result = t; return result += d; } inline Timestamp operator-(const Timestamp& t, const Duration& d) { Timestamp result = t; return result -= d; } LIBPROTOBUF_EXPORT Duration operator-(const Timestamp& t1, const Timestamp& t2); inline ostream& operator<<(ostream& out, const Timestamp& t) { out << google::protobuf::util::TimeUtil::ToString(t); return out; } } // namespace protobuf } // namespace google #endif // GOOGLE_PROTOBUF_UTIL_TIME_UTIL_H__
[ "“chenjiayi@tuandai.com”" ]
“chenjiayi@tuandai.com”
9cdb359569709931d61dc12cbe136708bf728bb9
649b4be440d7f75376d3ceb4010091aa1bcac3f9
/C++/2019 Bank Account Example/AccountFactory.h
00a08ded03002af0db05452413d7025d0bdd912c
[]
no_license
BradleyGBrandt/Code-Samples
06586661b54a0e8d08a49c4a9092647b8bf5c252
6bb375bc09b6a6d12af4212e85de5ca0f5b8416f
refs/heads/master
2023-07-31T23:57:53.012547
2021-09-17T17:52:48
2021-09-17T17:52:48
311,863,854
1
0
null
null
null
null
UTF-8
C++
false
false
400
h
#pragma once #include "Account.h" #include<map> enum class accountType { savings, checking, premiumChecking }; static class AccountFactory { public: static void accountSuccessDisplay ( const bool& success ); static void createAccounts ( const int& howMany, const accountType& type, std::map<int, Account*>& AccountPtrs ); static void displayAccounts ( std::map<int, Account*> accountPtrs ); };
[ "gbrandt@mail.bradley.edu" ]
gbrandt@mail.bradley.edu
7e61c18f84b5dec2967e9b6cb16aa55a0ad4e524
012cb90d1fe9db585e90a98907b5634a4dd10ca4
/src/plugins/_.interfaces/ireader.h
15d1d90a3a80415ea6ba4fac19b1d4124bafc642
[]
no_license
andy-fillebrown/audiocarver
6d9fed1a05400efc6b2b2464a10dce8f5d490bba
3a5d79c82d350193f28df86c2cb0fe9b114d79bd
refs/heads/master
2020-05-22T10:21:28.696699
2015-04-26T11:08:43
2015-04-26T11:08:43
186,297,278
0
0
null
null
null
null
UTF-8
C++
false
false
1,244
h
/************************************************************************** ** ** This file is part of AudioCarver ** ** Copyright (c) 2013 Andrew Fillebrown. ** ** Contact: Andy Fillebrown (andy.fillebrown@gmail.com) ** ** This file may be used under the terms of the GNU Lesser General Public ** License version 2.1 as published by the Free Software Foundation and ** appearing in the file LICENSE.LGPL included in the packaging of this ** file. Please review the following information to ensure the GNU Lesser ** General Public License version 2.1 requirements will be met: ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. ** **************************************************************************/ #ifndef IREADER_H #define IREADER_H #include <icomponent.h> class IModelItem; class IReader : public IComponent { public: enum { InterfaceType = I::IReader }; virtual int nextItemType() = 0; virtual bool read(IModelItem *item) = 0; int interfaceType() const { return InterfaceType; } bool isTypeOfInterface(int interfaceType) const { if (InterfaceType == interfaceType) return true; return IComponent::isTypeOfInterface(interfaceType); } }; #endif
[ "andy.fillebrown@gmail.com" ]
andy.fillebrown@gmail.com
c45914c273c0464573c3baa590745cd8dc54e7c8
caed0558cef8ef4c52b9e96e5fe909f30dd84511
/src/ImageWriter.h
f2633d08186280036b19f54bac7194a3261ea25e
[ "MIT" ]
permissive
msmolens/smoke-simulation
b5b19ae0fab6f078365f4c592fc07f32eaf69432
81f45f18368e349ea45111ef1a4d52dd565fabe8
refs/heads/master
2021-01-25T03:20:14.249929
2015-02-28T20:27:45
2015-02-28T20:27:45
31,472,889
1
2
null
null
null
null
UTF-8
C++
false
false
295
h
#ifndef _IMAGE_WRITER_H #define _IMAGE_WRITER_H #include <iostream> #include <GL/gl.h> #include <magick/api.h> using namespace std; class ImageWriter { public: ImageWriter(int w=512, int h=512); void output(int frameNum); void set_dimensions(int w, int h); private: int w, h; }; #endif
[ "msmolens@gmail.com" ]
msmolens@gmail.com
2efa9e61ee67c625121a0168b350363363506f77
c1e54641a1e839f457783466cb5b66cab617d1b7
/platformio/src/setup.cpp
26d44b24bfd117c9ba633dcd6db76e0c47209899
[]
no_license
iftachAvital/EasyCool
2d00206aeed0de998c76b3ca6506c9240cc4e365
6a2cf7a3c450eddbf4902fe86b400c82dd2417c0
refs/heads/master
2021-05-11T14:03:50.115424
2018-01-16T14:28:28
2018-01-16T14:28:28
117,693,064
0
0
null
null
null
null
UTF-8
C++
false
false
9,671
cpp
#include "setup.h" unsigned long setup_timeout; bool setup_exit_flag; void reset_setup_timeout() { setup_timeout = millis() + SETUP_MANAGER_TIMEOUT; } void handle_setup_button_in_manager() { if (digitalRead(SETUP_BUTOON_PIN) == LOW) { DEBUGV_EASYCOOL("[setup] button pressed\n"); unsigned long reset_time = millis() + EXIT_MANAGER_BUTTON_TIME; while (digitalRead(SETUP_BUTOON_PIN) == LOW) { if (millis() > reset_time) { flip_leds(true, true); setup_exit_flag = true; } delay(100); } } } void generate_info(char* buffer, size_t max_size) { StaticJsonBuffer<1024> buffer_info; JsonObject& json_root = buffer_info.createObject(); json_root["command"] = "get_info"; JsonObject& json_data = json_root.createNestedObject("result"); json_data["easycool_version"] = get_easycool_version(); json_data["reset_info"] = ESP.getResetInfo(); json_data["reset_reason"] = ESP.getResetReason(); json_data["core_version"] = ESP.getCoreVersion(); json_data["boot_mode"] = ESP.getBootMode(); json_data["boot_version"] = ESP.getBootVersion(); json_data["cpu_freq"] = ESP.getCpuFreqMHz(); json_data["cycle_count"] = ESP.getCycleCount(); json_data["free_sketch"] = ESP.getFreeSketchSpace(); json_data["sdk_version"] = ESP.getSdkVersion(); json_data["temp"] = get_temp(); json_data["rssi"] = WiFi.RSSI(); json_data["ssid"] = WiFi.SSID(); json_data["wifi_status"] = (int) WiFi.status(); json_data["free_memory"] = ESP.getFreeHeap(); json_data["chip_id"] = get_device_id(); json_data["flash_id"] = ESP.getFlashChipId(); json_data["flash_size"] = ESP.getFlashChipSize(); json_data["flash_real_size"] = ESP.getFlashChipRealSize(); json_data["key"] = get_key(); json_root.printTo(buffer, max_size); } void handle_info(WiFiClient &client) { DEBUGV_EASYCOOL("[setup] handle info\n"); char buffer[1024]; generate_info(buffer, 1024); client.print(buffer); client.flush(); } void handle_update_firmware(WiFiClient &client, JsonObject &json_res) { DEBUGV_EASYCOOL("[setup] start firmware update\n"); int command = json_res["data"]["command"]; size_t size = json_res["data"]["size"]; String md5 = json_res["data"]["md5"]; DEBUGV_EASYCOOL("[setup] command: %d, size: %d, md5: %s\n", command, size, md5.c_str()); bool update_begin = Update.begin(size, command); bool update_setmd5 = Update.setMD5(md5.c_str()); DEBUGV_EASYCOOL("[setup] begin: %d, setMD5: %d\n", update_begin, update_setmd5); client.printf("{\"command\":\"update_firmware\",\"begin\":%d}", update_begin); client.flush(); if (update_begin) { uint32_t written; uint32_t total = 0; while (!Update.isFinished() && client.connected()) { if (client.available()) { written = Update.write(client); flip_leds(true, true); client.printf("{\"command\":\"update_firmware\",\"received\":%d}", written); client.flush(); total += written; } } bool update_end = Update.end(); DEBUGV_EASYCOOL("[setup] end: %d\n", update_end); client.printf("{\"command\":\"update_firmware\",\"end\":%d}", update_end); client.flush(); client.stop(); setup_exit_flag = true; } } void generate_scan(char* buffer, size_t max_size) { StaticJsonBuffer<1024> buffer_scan; JsonObject& json_root = buffer_scan.createObject(); json_root["command"] = "scan_wifi"; WiFi.scanNetworks(true); int8_t scan_result = WiFi.scanComplete(); while (scan_result == WIFI_SCAN_RUNNING) { scan_result = WiFi.scanComplete(); delay(50); } DEBUGV_EASYCOOL("[setup] scan result: %d\n", scan_result); if (scan_result >= 0) { JsonObject& json_data = json_root.createNestedObject("result"); json_data["count"] = scan_result; JsonArray& json_networks_array = json_data.createNestedArray("networks"); for(int8_t i = 0; i < scan_result; ++i) { String ssid_scan; int32_t rssi_scan; uint8_t sec_scan; uint8_t* BSSID_scan; int32_t chan_scan; bool hidden_scan; WiFi.getNetworkInfo(i, ssid_scan, sec_scan, rssi_scan, BSSID_scan, chan_scan, hidden_scan); DEBUGV_EASYCOOL(" %d: [%d][%02X:%02X:%02X:%02X:%02X:%02X] %s (%d) %c\n", i, chan_scan, BSSID_scan[0], BSSID_scan[1], BSSID_scan[2], BSSID_scan[3], BSSID_scan[4], BSSID_scan[5], ssid_scan.c_str(), rssi_scan, (sec_scan == ENC_TYPE_NONE) ? ' ' : '*'); JsonObject& json_networks = json_networks_array.createNestedObject(); json_networks["ssid"] = ssid_scan; json_networks["rssi"] = rssi_scan; yield(); } } else { json_root["result"] = false; } json_root.printTo(buffer, max_size); } void handle_scan_wifi(WiFiClient &client) { DEBUGV_EASYCOOL("[setup] start scan wifi\n"); char buffer[1024]; generate_scan(buffer, 1024); client.print(buffer); client.flush(); } void handle_connect_wifi(WiFiServer &soft_ap_server, WiFiClient &client, JsonObject &json_res) { DEBUGV_EASYCOOL("[setup] start connect wifi\n"); client.printf("{\"command\":\"connect_wifi\",\"result\":%d}", true); client.flush(); client.stop(); soft_ap_server.stop(); set_leds(false, false); WiFi.mode(WIFI_STA); delay(500); wl_status_t status = WiFi.status(); if (status != WL_DISCONNECTED || status != WL_NO_SSID_AVAIL || status != WL_IDLE_STATUS || status != WL_CONNECT_FAILED) { DEBUGV_EASYCOOL("[setup] start wifi status: %d, disconnecting\n", status); WiFi.disconnect(); delay(500); } DEBUGV_EASYCOOL("[setup] connecting to ssid: %s, pass: %s\n", json_res["data"]["ssid"].asString(), json_res["data"]["pass"].asString()); WiFi.begin(json_res["data"]["ssid"].asString(), json_res["data"]["pass"].asString()); status = WiFi.status(); while(status != WL_CONNECTED && status != WL_NO_SSID_AVAIL && status != WL_CONNECT_FAILED) { flip_leds(true, false); delay(100); status = WiFi.status(); } DEBUGV_EASYCOOL("[setup]returned status: %d\n", status); set_leds(false, false); delay(500); block_sos(status == WL_CONNECTED ? BLUE_LED_PIN : RED_LED_PIN, status, 500); if (status == WL_CONNECTED) { bool save_res = save_wifi(json_res["data"].asObject()); DEBUGV_EASYCOOL("[setup] saving wifi creds: %d\n", save_res); } setup_exit_flag = true; } void handle_set_key(WiFiClient &client, JsonObject &json_res) { DEBUGV_EASYCOOL("[setup] start set key\n"); DEBUGV_EASYCOOL("[setup] recieved key: %s\n", json_res["data"]["key"].asString()); bool save_res = save_key(json_res["data"].asObject()); DEBUGV_EASYCOOL("[setup] saving key: %d\n", save_res); client.printf("{\"command\":\"set_key\",\"result\":%d}", save_res); client.flush(); } void setup_manager() { DEBUGV_EASYCOOL("[setup] start setup manager\n"); set_leds(true, true); IPAddress soft_ap_server_ip(192,168,4,1); WiFiServer soft_ap_server(soft_ap_server_ip, SOFT_AP_SERVER_PORT); String ap_name = "EasyCool " + get_device_id(); String ap_pass = AP_PASS; WiFi.disconnect(); reset_setup_timeout(); WiFi.mode(WIFI_AP_STA); delay(100); WiFi.softAP(ap_name.c_str(), ap_pass.c_str()); delay(1000); soft_ap_server.begin(); setup_exit_flag = false; while (millis() < setup_timeout && !setup_exit_flag) { WiFiClient client = soft_ap_server.available(); if (client) { if (client.connected()) { reset_setup_timeout(); DEBUGV_EASYCOOL("[setup] connected to client\n"); handle_info(client); while (client.connected() && !setup_exit_flag) { if (client.available()) { String res = client.readString(); DynamicJsonBuffer buffer_rescived; JsonObject& json_res = buffer_rescived.parseObject(res); if(json_res.containsKey("command")) { String command = json_res["command"].asString(); if (command.equals("scan_wifi")) { handle_scan_wifi(client); } else if (command.equals("connect_wifi")) { handle_connect_wifi(soft_ap_server, client, json_res); } else if (command.equals("set_key")) { handle_set_key(client, json_res); } else if (command.equals("update_firmware")) { handle_update_firmware(client, json_res); } } } yield(); handle_setup_button_in_manager(); } } DEBUGV_EASYCOOL("[setup] disconnected from client\n"); // close the connection: client.stop(); break; } yield(); handle_setup_button_in_manager(); } soft_ap_server.stop(); WiFi.mode(WIFI_STA); DEBUGV_EASYCOOL("[setup] exit setup manager\n"); restart(); }
[ "iftach.avital@gmail.com" ]
iftach.avital@gmail.com
c009edbc9a5b8357eb9acd00c0d0ef5a350c4bcf
cb80a8562d90eb969272a7ff2cf52c1fa7aeb084
/inletTest7/0.224/Co
bd6e60e2bde93267505fde57da0742c58f05e744
[]
no_license
mahoep/inletCFD
eb516145fad17408f018f51e32aa0604871eaa95
0df91e3fbfa60d5db9d52739e212ca6d3f0a28b2
refs/heads/main
2023-08-30T22:07:41.314690
2021-10-14T19:23:51
2021-10-14T19:23:51
314,657,843
0
0
null
null
null
null
UTF-8
C++
false
false
105,376
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v2006 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; location "0.224"; object Co; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 0 0 0 0 0 0]; internalField nonuniform List<scalar> 10108 ( 0.00788445 0.00754925 0.00818648 0.00846285 0.00856777 0.00836383 0.00837393 0.00829187 0.00820772 0.00817572 0.00811456 0.00809328 0.00807183 0.00805843 0.00804304 0.00802742 0.00801069 0.0079932 0.00797493 0.0079559 0.00793615 0.00791569 0.00789458 0.00787283 0.00785049 0.00782759 0.00780417 0.00778025 0.0077559 0.00773114 0.00770603 0.00768061 0.00765494 0.00762907 0.00760304 0.00757692 0.00755076 0.0075246 0.00749852 0.00747257 0.00744679 0.00742126 0.00739602 0.00737113 0.00734663 0.00732259 0.00729906 0.00727609 0.00725374 0.00723206 0.00721106 0.00719053 0.00716888 0.00714955 0.00713217 0.00711942 0.0071152 0.00715574 0.00723555 0.00747214 0.00789331 0.00887414 0.0110648 0.0159944 0.0241019 0.0188809 0.0162471 0.0160892 0.0157264 0.015084 0.0149472 0.014437 0.0129881 0.0140656 0.0147226 0.0136542 0.0137241 0.0131594 0.0108852 0.0116436 0.0118547 0.0118652 0.0119275 0.0112784 0.0102693 0.0111868 0.0114448 0.0116545 0.011471 0.0105467 0.0102931 0.0113109 0.0115507 0.0116791 0.0114234 0.0103683 0.0102758 0.011393 0.0116646 0.0116976 0.0114228 0.0102435 0.0101627 0.0113358 0.0116417 0.0116591 0.0113466 0.0100936 0.0100218 0.0112582 0.0115954 0.0116074 0.0112639 0.00995375 0.00988831 0.011176 0.0115413 0.0115518 0.0111819 0.00982536 0.00976444 0.0110943 0.0114849 0.0114941 0.0111006 0.00970588 0.00964828 0.0110136 0.0114264 0.0114344 0.0110197 0.00959275 0.00953786 0.0109331 0.0113662 0.0113731 0.0109391 0.00948472 0.00943186 0.0108528 0.0113044 0.0113102 0.0108585 0.0093805 0.00932916 0.0107723 0.0112408 0.0112454 0.0107774 0.00927912 0.00922888 0.0106912 0.0111753 0.0111788 0.0106957 0.0091798 0.00913033 0.0106094 0.011108 0.0111102 0.0106131 0.00908192 0.00903295 0.0105266 0.0110387 0.0110396 0.0105294 0.00898492 0.00893617 0.0104425 0.0109673 0.0109668 0.0104442 0.00888827 0.0088395 0.0103568 0.0108936 0.0108916 0.0103573 0.00879148 0.00874247 0.0102692 0.0108174 0.0108137 0.0102684 0.00869414 0.00864468 0.0101795 0.0107384 0.010733 0.0101772 0.00859583 0.00854575 0.0100875 0.0106565 0.0106493 0.0100834 0.00849618 0.00844527 0.00999265 0.0105715 0.0105623 0.00998677 0.0083948 0.0083429 0.00989483 0.010483 0.0104716 0.00988695 0.00829137 0.00823829 0.00979371 0.0103909 0.0103772 0.00978366 0.00818552 0.0081311 0.009689 0.0102948 0.0102787 0.00967659 0.00807689 0.00802093 0.00958035 0.0101945 0.0101758 0.00956538 0.0079651 0.00790742 0.00946741 0.0100897 0.0100681 0.00944967 0.00784976 0.00779015 0.00934979 0.00997998 0.00995537 0.00932908 0.00773046 0.00766871 0.00922711 0.00986499 0.00983714 0.00920317 0.00760677 0.00754266 0.00909893 0.00974434 0.009713 0.00907152 0.00747825 0.00741157 0.00896479 0.00961757 0.00958251 0.00893366 0.00734449 0.00727505 0.00882427 0.00948426 0.00944523 0.00878918 0.00720512 0.00713274 0.00867697 0.009344 0.00930081 0.00863773 0.00705981 0.00698436 0.00852256 0.00919645 0.0091489 0.00847897 0.00690829 0.00682964 0.00836071 0.00904128 0.00898917 0.00831259 0.00675031 0.00666835 0.00819114 0.00887814 0.00882129 0.00813831 0.00658568 0.00650035 0.00801358 0.00870675 0.008645 0.00795592 0.00641429 0.0063256 0.0078279 0.00852687 0.0084601 0.00776536 0.00623622 0.00614427 0.00763409 0.00833836 0.00826656 0.00756671 0.00605172 0.00595675 0.00743238 0.00814128 0.00806451 0.00736033 0.00586135 0.00576377 0.00722324 0.00793589 0.00785436 0.00714686 0.00566604 0.00556649 0.00700754 0.00772274 0.00763688 0.00692742 0.0054672 0.00536657 0.00678662 0.00750282 0.00741324 0.00670362 0.00526677 0.00516633 0.00656239 0.00727751 0.00718532 0.0064778 0.00506749 0.00496882 0.00633756 0.00704907 0.00695567 0.00625302 0.00487272 0.00477776 0.00611554 0.00682039 0.00672747 0.00603304 0.00468647 0.00459745 0.00590045 0.00659503 0.00650469 0.00582232 0.00451334 0.00443272 0.00569702 0.00637726 0.00629202 0.00562593 0.0043583 0.00428858 0.00551049 0.00617207 0.00609488 0.00544931 0.00422629 0.00416966 0.00534618 0.00598494 0.00591869 0.00529489 0.00411942 0.00407953 0.00520893 0.00581859 0.00577147 0.00517484 0.00404653 0.00401973 0.00510201 0.00568304 0.0056509 0.00508345 0.00400181 0.00398951 0.00502637 0.00557778 0.0055605 0.00502397 0.0039873 0.00399653 0.00500944 0.00551998 0.00549736 0.00500132 0.00400891 0.00402706 0.00501673 0.00550016 0.00548562 0.00500379 0.00404676 0.00407079 0.00504041 0.00551279 0.00550718 0.00503403 0.00409526 0.00412264 0.00507563 0.00553333 0.00553393 0.00507283 0.00414933 0.00417782 0.00511712 0.00556269 0.00556536 0.00511607 0.00420489 0.0042329 0.00516134 0.00559533 0.00559616 0.00516064 0.00425905 0.00428568 0.00520602 0.00563228 0.00563059 0.00520492 0.00431027 0.00433506 0.00524978 0.00566674 0.00566761 0.00524776 0.00435777 0.00438058 0.00529186 0.00569805 0.00570148 0.00528891 0.00440152 0.00442235 0.00533201 0.00573155 0.0057316 0.00532802 0.0044416 0.00446314 0.00537027 0.00576693 0.00576328 0.00536479 0.00447609 0.00448939 0.00539559 0.00578681 0.00575658 0.0053596 0.00447189 0.004486 0.00538455 0.00576558 0.00566791 0.00525491 0.00435987 0.00447022 0.00534252 0.00571337 0.00557021 0.00511236 0.00420518 0.00464064 0.00550183 0.00580495 0.00563909 0.00519267 0.00428347 0.00512008 0.00600908 0.00628488 0.0066938 0.00606531 0.00492768 0.00545578 0.0065303 0.00699345 0.00760833 0.00790543 0.00796751 0.0081196 0.00809593 0.00816239 0.0082425 0.00831949 0.00838915 0.00845206 0.00849546 0.00854117 0.00857456 0.00860308 0.00867156 0.00878789 0.00907449 0.00953698 0.0105939 0.0130869 0.019012 0.028103 0.0217353 0.0166803 0.015817 0.0166842 0.0156962 0.0198237 0.0340821 0.0475232 0.0293415 0.0218937 0.014295 0.0105997 0.0146117 0.0167649 0.0149054 0.0136559 0.0103674 0.00944728 0.0125261 0.0136785 0.0134703 0.0124835 0.00946913 0.00930897 0.0124971 0.0137319 0.0135741 0.0124014 0.00933938 0.00935018 0.012418 0.0136303 0.0136656 0.0125 0.00933473 0.0093255 0.012497 0.0136831 0.0137544 0.0125349 0.0093958 0.0094053 0.0124729 0.0136614 0.0138012 0.0125922 0.00947154 0.00947146 0.0125284 0.0137009 0.0138472 0.0126529 0.00955014 0.00955006 0.0125861 0.0137421 0.0138961 0.0127169 0.00963274 0.00963266 0.012647 0.0137862 0.0139468 0.0127833 0.00971894 0.00971887 0.0127101 0.0138317 0.0140009 0.0128536 0.00980965 0.00980958 0.0127767 0.013866 0.0140719 0.012927 0.00990458 0.00990452 0.0128461 0.0139303 0.0141185 0.0130053 0.010005 0.010005 0.0129199 0.0139698 0.0141979 0.0130883 0.0101111 0.010111 0.0129975 0.0140401 0.0142542 0.0131779 0.0102245 0.0102244 0.0130808 0.0140862 0.0143461 0.0132751 0.0103461 0.0103461 0.0131699 0.0141643 0.0144177 0.0133827 0.010479 0.010479 0.0132673 0.014234 0.0145152 0.0135035 0.0106263 0.0106263 0.0133734 0.0143085 0.014628 0.0136422 0.0107945 0.0107945 0.0134922 0.0143902 0.0147629 0.0138074 0.0109931 0.0109931 0.0136255 0.014478 0.0149275 0.014009 0.0112388 0.0112389 0.0137778 0.014573 0.0151395 0.0142675 0.0115613 0.0116005 0.0140045 0.0146878 0.0154028 0.0146455 0.0120125 0.0121059 0.014381 0.0149631 0.0156996 0.0149352 0.0125039 0.0125313 0.0146318 0.0151326 0.015802 0.0150733 0.0128222 0.0128345 0.014815 0.0152278 0.0157345 0.0150072 0.0129121 0.0130694 0.0149108 0.0152996 0.015759 0.0150826 0.013132 0.0131441 0.0148857 0.0153218 0.0159907 0.0153659 0.013473 0.0134688 0.0150438 0.0155303 0.0162284 0.0157516 0.0140883 0.014046 0.0156002 0.016047 0.0163104 0.0160996 0.0146631 0.0143436 0.0146987 0.0139682 0.0420693 0.0314519 0.0199844 0.0159136 0.0227526 0.0299278 0.0189315 0.0174519 0.0148602 0.0142228 0.0159948 0.0166766 0.0160119 0.0156526 0.0142318 0.0138345 0.0151385 0.0154665 0.0149906 0.0150143 0.0140889 0.013368 0.0130238 0.0118254 0.0384393 0.0292504 0.019052 0.0153895 0.0205225 0.0259661 0.0159831 0.0152029 0.0134672 0.0128363 0.0133855 0.013175 0.00991531 0.0113358 0.0120072 0.0166187 0.0248991 0.0320991 0.0204441 0.0162648 0.0124163 0.0106068 0.0110241 0.0109893 0.00777827 0.00780984 0.00849672 0.0106433 0.0151682 0.0183479 0.0120656 0.00956599 0.00559417 0.0120306 0.0180058 0.0211044 0.0323731 0.0302756 0.0254131 0.0342006 0.039058 0.0429587 0.0423306 0.0410408 0.03726 0.0402029 0.053432 0.0626307 0.0659177 0.0541475 0.0389887 0.0334091 0.0388285 0.0402244 0.0653207 0.0505732 0.0350925 0.036699 0.0551915 0.0717889 0.0356576 0.03418 0.0295624 0.0318274 0.0462507 0.0605258 0.0689222 0.0524597 0.0343079 0.0278309 0.0323245 0.0337795 0.0572399 0.0440132 0.0307908 0.0331497 0.0508465 0.0670528 0.0325009 0.0310504 0.0268261 0.0296982 0.0427482 0.055808 0.0651024 0.0496549 0.0324671 0.0263994 0.030575 0.0319819 0.0544718 0.0418982 0.0293347 0.0322429 0.0491455 0.0645748 0.0314511 0.0301284 0.026098 0.0291271 0.0415252 0.0539431 0.0637064 0.0483475 0.0319114 0.0259511 0.0300182 0.0313614 0.0534521 0.0411003 0.0288623 0.0318548 0.0483204 0.0633508 0.0311203 0.0298601 0.0259191 0.0289434 0.0412092 0.0535962 0.0630591 0.0483571 0.0318406 0.0260564 0.0300394 0.0313202 0.053883 0.0414157 0.0290631 0.0319355 0.0483972 0.063182 0.0314735 0.0302557 0.0262604 0.029469 0.0421037 0.054804 0.0640487 0.0491372 0.0325252 0.0267589 0.0310548 0.0323084 0.0571487 0.0439939 0.0309944 0.0328375 0.0489578 0.0636512 0.0472427 0.0396634 0.0297293 0.0325355 0.0471684 0.0588807 0.0340073 0.032484 0.0280498 0.0311634 0.0442216 0.0572624 0.0651716 0.0503303 0.0336473 0.0278897 0.0321484 0.033455 0.0595789 0.0460164 0.0325416 0.034083 0.0505104 0.0656492 0.0490103 0.04119 0.0309569 0.0341932 0.0490713 0.0607016 0.0354761 0.0339986 0.0294233 0.0329169 0.0472298 0.0615726 0.066217 0.0509534 0.0344922 0.0319381 0.0425958 0.0510911 0.0620657 0.0501223 0.0352479 0.0304915 0.0352283 0.0367537 0.0632003 0.0485552 0.0339303 0.0359502 0.0528862 0.0681911 0.0524155 0.0439074 0.0331843 0.0366826 0.0519542 0.064089 0.0380162 0.0363214 0.0313836 0.0355053 0.0506284 0.0656187 0.0702231 0.0549153 0.0375225 0.0348685 0.0461666 0.0549972 0.0656607 0.0534756 0.0377405 0.0326787 0.0376727 0.0392515 0.0678684 0.0522743 0.0366369 0.0387724 0.0567723 0.0726764 0.0564843 0.0474765 0.0359729 0.0390721 0.0550324 0.0678954 0.0403652 0.0387805 0.033747 0.037482 0.0540723 0.0708433 0.0746368 0.0579011 0.0396632 0.0376211 0.050617 0.0610315 0.0688886 0.0559095 0.0399584 0.0377853 0.0500403 0.0595331 0.0692786 0.056471 0.0403901 0.0355089 0.0413744 0.0434336 0.0744677 0.0577553 0.0409935 0.0422621 0.0608894 0.0774345 0.0639222 0.0532862 0.0396849 0.0416033 0.0581067 0.0713695 0.0620896 0.0521189 0.0393963 0.0426737 0.0594633 0.0725271 0.0451241 0.0432404 0.0373852 0.0430214 0.0605909 0.0781054 0.0810348 0.0634364 0.0441984 0.0415816 0.0558351 0.0671184 0.074297 0.0606825 0.0438335 0.0419869 0.0564444 0.0679311 0.0746176 0.0609842 0.044255 0.0421702 0.0559116 0.0667298 0.0756861 0.0624561 0.0453654 0.0394043 0.0457469 0.0478541 0.082161 0.0638094 0.0455486 0.0469081 0.0665625 0.0844286 0.0707693 0.0591485 0.0442016 0.0460956 0.0639202 0.077982 0.0712715 0.0593414 0.044225 0.0463489 0.0638938 0.0782111 0.0696062 0.0583657 0.0441353 0.0478099 0.06591 0.0800526 0.050474 0.0482429 0.0416674 0.048161 0.067699 0.0870838 0.0891245 0.0704362 0.0493496 0.0464762 0.062345 0.0747841 0.081738 0.0671851 0.0486403 0.0470018 0.0630223 0.0757149 0.0819811 0.0676459 0.049469 0.0475346 0.0637277 0.076654 0.0830054 0.0684501 0.0502952 0.0476389 0.0628375 0.0748301 0.0847118 0.0699487 0.0512051 0.0447311 0.0519226 0.0545673 0.0928161 0.0720376 0.0512327 0.0526265 0.0748135 0.0946677 0.0798813 0.0667256 0.0499102 0.051754 0.0710806 0.0866752 0.0807639 0.0672718 0.0502035 0.0523425 0.0712545 0.0864408 0.081312 0.067568 0.0504042 0.0533929 0.0727938 0.088261 0.0793537 0.0665872 0.0504336 0.0544377 0.0745477 0.0902941 0.0575223 0.0549862 0.0476153 0.0537238 0.0765181 0.0989621 0.100541 0.0793913 0.055038 0.0528717 0.0706471 0.0849215 0.0926753 0.0757405 0.0551584 0.0535619 0.0717629 0.086061 0.0921075 0.0760965 0.0558907 0.0537162 0.0721141 0.0868301 0.0936683 0.0772568 0.0566373 0.0539221 0.0711521 0.0847447 0.0955822 0.0789864 0.0577486 0.0508033 0.0588696 0.0616773 0.105012 0.0815652 0.0580231 0.0595986 0.084309 0.106613 0.0903673 0.0754661 0.0566223 0.0588708 0.0806129 0.0981527 0.0912114 0.0761335 0.0568225 0.0594415 0.0808127 0.0975248 0.0919971 0.0766674 0.0573964 0.0605455 0.0820596 0.0994325 0.0895329 0.075272 0.0571309 0.0616376 0.0843897 0.101736 0.0645809 0.0618846 0.0537975 0.0606725 0.0864742 0.112044 0.114303 0.0902357 0.0627157 0.0601297 0.0802723 0.0961692 0.104583 0.085987 0.0625969 0.0604007 0.0808493 0.0969652 0.104391 0.0862013 0.0634138 0.060936 0.0815858 0.0981036 0.106254 0.0876952 0.0645787 0.0611234 0.0804287 0.0956831 0.108387 0.08966 0.0658532 0.0578078 0.0666283 0.0695753 0.119304 0.0920326 0.0647408 0.0666729 0.0957376 0.121925 0.102214 0.0851563 0.0636576 0.066558 0.0916247 0.111294 0.10324 0.0863435 0.0646255 0.0680966 0.0924348 0.110867 0.104169 0.086916 0.0652831 0.0691652 0.093683 0.113391 0.101059 0.0852313 0.0650202 0.0701532 0.0955705 0.115596 0.0733399 0.0702335 0.0611257 0.0694664 0.0978594 0.126358 0.129276 0.101711 0.0714536 0.0681595 0.0907786 0.108773 0.119013 0.0979798 0.0714527 0.0687825 0.0915462 0.109506 0.119299 0.0980493 0.0720489 0.0687347 0.0903183 0.107219 0.121672 0.100566 0.0736752 0.0644468 0.074024 0.0771234 0.133209 0.103286 0.0733698 0.0761778 0.108632 0.137486 0.114302 0.0958739 0.072354 0.0757063 0.103513 0.125764 0.114284 0.0959198 0.072436 0.0767214 0.104185 0.126172 0.111432 0.0942211 0.0721014 0.0780252 0.106756 0.129572 0.0812647 0.0781516 0.0684104 0.0777341 0.109182 0.140365 0.145507 0.115051 0.0804487 0.0753237 0.0998804 0.119263 0.134444 0.110494 0.0802122 0.0752732 0.0982445 0.11607 0.13564 0.11212 0.0818071 0.0716188 0.0819755 0.0853473 0.147287 0.114302 0.0814062 0.0840483 0.119794 0.152415 0.125036 0.104717 0.0792583 0.0837891 0.115109 0.140764 0.120861 0.102823 0.0791839 0.0852787 0.117597 0.142168 0.0877535 0.0846665 0.0743924 0.0847373 0.118488 0.152545 0.160002 0.12571 0.0882569 0.0821006 0.106693 0.12596 0.14952 0.122475 0.0881237 0.0766266 0.086267 0.0886172 0.156935 0.121538 0.0858193 0.0912303 0.132042 0.167442 0.129651 0.110565 0.0851134 0.0924979 0.128394 0.156599 0.0917754 0.0894669 0.0795602 0.0897073 0.125898 0.16244 0.174227 0.136424 0.0949937 0.0879709 0.114166 0.134513 0.163132 0.13344 0.0959209 0.0834788 0.0932335 0.0952038 0.170531 0.132726 0.0943738 0.0988344 0.143236 0.183694 0.137884 0.117481 0.0910256 0.0996436 0.139155 0.170758 0.0984702 0.0963157 0.0858266 0.0986186 0.137476 0.1762 0.190859 0.14929 0.10387 0.0951895 0.122519 0.143631 0.177346 0.144921 0.103745 0.0879417 0.0978091 0.0997645 0.171929 0.135231 0.0988908 0.109378 0.157398 0.199971 0.100511 0.0996953 0.091106 0.100824 0.13851 0.176176 0.206643 0.160919 0.110301 0.0904729 0.0987142 0.0993203 0.180947 0.141931 0.102649 0.11549 0.167789 0.214041 0.104082 0.103818 0.0953151 0.1058 0.145303 0.184622 0.2217 0.172584 0.117616 0.0962037 0.104276 0.103914 0.19053 0.152729 0.112917 0.122368 0.178324 0.229326 0.106615 0.105821 0.0974614 0.109413 0.147758 0.18668 0.237489 0.186123 0.127683 0.0973164 0.0973278 0.0915901 0.126864 0.118085 0.101984 0.108284 0.147084 0.189314 0.248311 0.191634 0.129835 0.097699 0.0957602 0.0887764 0.11058 0.107269 0.0976699 0.101923 0.116042 0.125796 0.193533 0.15422 0.113675 0.124916 0.18893 0.250008 0.0857291 0.0899623 0.0901142 0.0915 0.0992106 0.100729 0.0945208 0.0911968 0.0830078 0.0804155 0.0903242 0.0931128 0.0841539 0.0814801 0.0717281 0.0665555 0.0779632 0.0810306 0.0760776 0.0727919 0.060884 0.0570845 0.0705706 0.0752195 0.0711545 0.0667479 0.0534915 0.0509239 0.0651874 0.070592 0.0670178 0.062038 0.0482251 0.0464374 0.0610238 0.067006 0.0640029 0.0583631 0.0443382 0.0431029 0.0578314 0.0643577 0.0616238 0.0554898 0.0413858 0.0404339 0.0550924 0.0620533 0.0594886 0.052959 0.0389729 0.0382301 0.0527405 0.0600029 0.0575456 0.0507743 0.0369746 0.0364183 0.0506442 0.0580866 0.0557733 0.0488559 0.0353531 0.0349555 0.048894 0.0564081 0.0541998 0.047252 0.0340459 0.0337844 0.0473598 0.054867 0.0527779 0.0458553 0.033009 0.032856 0.0460958 0.0535305 0.0515219 0.0446952 0.0321864 0.0321259 0.0449661 0.0522925 0.0503988 0.0437386 0.0316124 0.0315836 0.0440368 0.0512191 0.0495568 0.0430148 0.0312189 0.0311931 0.0432084 0.0502323 0.048883 0.0424411 0.0309463 0.0309232 0.0425557 0.0494071 0.0482647 0.0419152 0.0307623 0.0307414 0.0419716 0.0486633 0.047763 0.0415161 0.0306471 0.0306282 0.0415279 0.048056 0.0473035 0.0411467 0.0305818 0.0305647 0.0411247 0.0475073 0.0469444 0.0408859 0.0305577 0.0305416 0.0408392 0.0470761 0.0466166 0.0406412 0.0305627 0.0305476 0.040578 0.0466907 0.0463773 0.04049 0.0305909 0.0305768 0.0404111 0.0463981 0.0461541 0.0403419 0.0306375 0.0306243 0.0402552 0.0461374 0.0460063 0.040274 0.0306976 0.030685 0.0401765 0.0459508 0.0458619 0.0401981 0.0307699 0.0307579 0.0400974 0.0457829 0.0457815 0.0401915 0.0308502 0.0308388 0.0400828 0.0456734 0.0456937 0.0401667 0.0309384 0.0309275 0.0400987 0.0456629 0.0456849 0.0402441 0.0310619 0.0309897 0.0400099 0.0454492 0.0456203 0.0402174 0.0311295 0.0311196 0.0401052 0.0454695 0.0456237 0.0402858 0.0312307 0.0312213 0.0401685 0.0454568 0.0456062 0.0403241 0.0313363 0.0313274 0.0402093 0.0454404 0.0456366 0.0404116 0.031442 0.0314335 0.0402947 0.0454566 0.045639 0.0404667 0.0315507 0.0315426 0.0403533 0.0454649 0.0456862 0.0405669 0.0316579 0.0316502 0.0404523 0.0455011 0.0457009 0.0406306 0.0317662 0.031759 0.0405234 0.0455274 0.0457582 0.0407379 0.0318713 0.0318643 0.0406276 0.0455758 0.0457809 0.0408036 0.0319766 0.0319703 0.0407018 0.0456119 0.0458428 0.0409107 0.0320776 0.0320714 0.040808 0.04567 0.0458689 0.0409739 0.032176 0.0321703 0.0408799 0.0457094 0.0459333 0.0410784 0.0322697 0.0322643 0.0409843 0.0457722 0.0459605 0.041137 0.03236 0.032355 0.0410518 0.0458137 0.0460251 0.041236 0.0324454 0.0324406 0.0411513 0.0458784 0.0460526 0.0412888 0.0325265 0.0325221 0.0412129 0.0459196 0.0461156 0.0413811 0.0326019 0.0325977 0.0413065 0.0459837 0.0461431 0.0414288 0.0326736 0.0326697 0.0413617 0.046023 0.0462049 0.0415158 0.0327402 0.0327365 0.04145 0.0460861 0.0462311 0.0415581 0.0328031 0.0327998 0.0414991 0.0461231 0.0462912 0.0416399 0.0328616 0.0328584 0.041582 0.0461843 0.0463156 0.0416772 0.0329168 0.0329139 0.0416253 0.0462185 0.0463736 0.041754 0.0329682 0.0329654 0.0417029 0.0462774 0.0463964 0.0417865 0.0330168 0.0330142 0.0417409 0.0463095 0.0464533 0.0418584 0.0330618 0.0330593 0.0418135 0.0463672 0.0464746 0.0418865 0.0331046 0.0331023 0.0418462 0.0463967 0.0465291 0.041954 0.0331444 0.0331422 0.041914 0.0464514 0.0465483 0.0419785 0.0331822 0.0331801 0.041943 0.0464771 0.0465996 0.0420429 0.0332175 0.0332155 0.0420076 0.0465291 0.0466158 0.0420637 0.033251 0.0332492 0.0420321 0.0465518 0.0466645 0.0421242 0.0332827 0.033281 0.042092 0.0466007 0.0466781 0.0421409 0.0333133 0.0333117 0.0421118 0.04662 0.0467237 0.0421968 0.0333416 0.03334 0.0421682 0.0466666 0.0467346 0.0422096 0.0333684 0.0333669 0.0421841 0.046683 0.0467777 0.0422618 0.033393 0.0333916 0.0422366 0.0467266 0.0467861 0.0422713 0.0334166 0.0334152 0.0422488 0.0467401 0.046827 0.0423204 0.0334382 0.0334369 0.042298 0.0467811 0.0468335 0.042327 0.0334591 0.0334578 0.042307 0.0467921 0.0468725 0.0423736 0.0334783 0.0334772 0.0423534 0.046831 0.0468774 0.0423778 0.0334971 0.033496 0.0423598 0.0468399 0.0469147 0.0424221 0.0335145 0.0335134 0.0424038 0.0468769 0.046918 0.0424242 0.0335314 0.0335304 0.0424079 0.046884 0.0469537 0.0424664 0.033547 0.0335461 0.0424498 0.0469193 0.0469555 0.0424665 0.0335623 0.0335614 0.0424518 0.0469246 0.0469898 0.0425068 0.0335765 0.0335756 0.0424918 0.0469584 0.0469902 0.0425051 0.0335903 0.0335895 0.0424918 0.0469621 0.047023 0.0425437 0.033603 0.0336023 0.0425301 0.0469945 0.0470221 0.0425404 0.0336156 0.0336148 0.0425284 0.0469967 0.0470537 0.0425773 0.033627 0.0336263 0.042565 0.0470277 0.0470515 0.0425724 0.0336383 0.0336376 0.0425616 0.0470285 0.0470816 0.0426078 0.0336485 0.0336479 0.0425967 0.0470581 0.0470782 0.0426013 0.0336585 0.0336579 0.0425917 0.0470575 0.0471071 0.0426353 0.0336676 0.033667 0.0426253 0.0470858 0.0471026 0.0426276 0.0336766 0.0336761 0.0426189 0.0470838 0.0471307 0.0426605 0.0336849 0.0336843 0.0426512 0.047111 0.0471254 0.0426517 0.0336932 0.0336927 0.0426437 0.0471081 0.047153 0.0426839 0.033701 0.0337005 0.0426751 0.0471344 0.0471475 0.0426748 0.0337091 0.0337087 0.0426669 0.0471307 0.0471752 0.0427069 0.033717 0.0337166 0.0426981 0.0471567 0.04717 0.042698 0.0337255 0.0337251 0.0426899 0.047153 0.0471982 0.0427305 0.033734 0.0337337 0.0427213 0.0471792 0.0471938 0.0427222 0.0337434 0.0337431 0.0427136 0.047176 0.0472229 0.0427556 0.0337529 0.0337526 0.0427458 0.0472029 0.0472195 0.0427483 0.0337633 0.0337631 0.0427391 0.0472007 0.0472488 0.0427821 0.0337735 0.0337734 0.0427722 0.0472287 0.0472451 0.0427746 0.0337841 0.033784 0.0427658 0.047227 0.0472737 0.0428077 0.0337938 0.0337937 0.0427986 0.047255 0.0472689 0.042799 0.0338033 0.0338032 0.0427913 0.0472527 0.0472971 0.0428315 0.033812 0.0338119 0.0428234 0.0472787 0.047309 0.0428448 0.0338213 0.0338212 0.0428154 0.0472597 0.0473049 0.0428515 0.0338562 0.0338386 0.0428104 0.047259 0.0473782 0.0428698 0.0338442 0.0337591 0.0427272 0.0471525 0.0473597 0.0428976 0.0338312 0.0335598 0.0424119 0.0468321 0.0476693 0.043238 0.0341531 0.0336899 0.0426237 0.0470419 0.0501894 0.0459267 0.0365942 0.0364111 0.0465014 0.0519831 0.0629689 0.0564298 0.0439317 0.0448005 0.059832 0.0700336 0.0724384 0.0639122 0.0494952 0.0799326 0.0868776 0.095669 0.11818 0.0734077 0.0583403 0.0520472 0.0620659 0.0430327 0.0293991 0.0236249 0.0209206 0.0198321 0.0192161 0.0190361 0.0189353 0.0189343 0.0189386 0.018957 0.0189713 0.0189842 0.0189955 0.0190201 0.0190344 0.0191496 0.0192014 0.0193775 0.0195608 0.0195391 0.0200189 0.019774 0.0191279 0.0176324 0.0174725 0.0153524 0.0158397 0.0149406 0.0155053 0.015398 0.0156899 0.0157167 0.0158021 0.0158053 0.01582 0.0158144 0.0158085 0.0158101 0.0158122 0.0158027 0.0158085 0.0157972 0.0158001 0.0157861 0.0157871 0.0157714 0.0157669 0.0157576 0.0157474 0.0157359 0.0157232 0.015709 0.015693 0.015675 0.0156548 0.015636 0.0156025 0.0155815 0.0155413 0.0155128 0.0154645 0.0154268 0.0153686 0.0153162 0.0152577 0.0151813 0.015113 0.0150259 0.0149312 0.0148396 0.0147249 0.014613 0.0144926 0.0143535 0.0142206 0.0140661 0.0139184 0.0137505 0.0135904 0.0134117 0.0132418 0.0130553 0.0128757 0.0126909 0.0125047 0.012318 0.0121315 0.0119456 0.0117612 0.0115785 0.0113982 0.0112206 0.0110461 0.0108777 0.0107049 0.0105464 0.0103817 0.0102313 0.0100752 0.00993325 0.00978592 0.00965264 0.00951662 0.00938497 0.00926461 0.00913939 0.00902747 0.00891072 0.00880695 0.00869845 0.00860251 0.00850181 0.00841126 0.00832223 0.00823674 0.00815473 0.00807621 0.00800055 0.0079281 0.00785907 0.00779281 0.00772943 0.00766883 0.00761092 0.00755561 0.00750282 0.00745247 0.00740447 0.00735875 0.00731524 0.00727385 0.00723452 0.00719721 0.00716195 0.00712821 0.00709631 0.00706651 0.00703818 0.0070115 0.00698645 0.00696293 0.00694091 0.00692036 0.00690123 0.00688351 0.00686714 0.00685212 0.00683841 0.00682601 0.00681455 0.00680024 0.00678911 0.00674593 0.00672792 0.00659456 0.00664196 0.00639622 0.00678077 0.00657174 0.00748153 0.00717222 0.00711103 0.00710981 0.00711211 0.0070959 0.00706024 0.00702141 0.00698817 0.00696427 0.00694737 0.00693383 0.00692184 0.00691048 0.00689824 0.00688508 0.00687131 0.00685675 0.00684142 0.00682534 0.00680857 0.00679115 0.00677311 0.00675446 0.00673527 0.00671554 0.00669531 0.00667463 0.00665338 0.00663175 0.00660997 0.0065879 0.0065656 0.00654311 0.00652047 0.00649773 0.00647493 0.00645213 0.00642937 0.00640668 0.00638412 0.00636188 0.00633984 0.00631789 0.00629622 0.00627487 0.0062539 0.00623349 0.00621329 0.00619341 0.0061752 0.00615667 0.00613935 0.00612794 0.00612516 0.0061469 0.00620762 0.00631491 0.00645928 0.00656302 0.00643639 0.00634986 0.0134478 0.0115523 0.011463 0.0116336 0.0116269 0.0117533 0.0117315 0.0117875 0.0117415 0.0117808 0.0117246 0.0117577 0.011698 0.0117286 0.0116669 0.0116955 0.011632 0.0116586 0.0115937 0.0116186 0.0115522 0.0115754 0.0115076 0.0115291 0.01146 0.0114798 0.0114094 0.0114276 0.0113559 0.0113724 0.0112994 0.0113141 0.0112398 0.0112527 0.011177 0.011188 0.0111109 0.0111199 0.0110413 0.0110481 0.0109679 0.0109726 0.0108907 0.010893 0.0108093 0.0108091 0.0107236 0.0107208 0.0106333 0.0106277 0.0105382 0.0105296 0.0104378 0.0104261 0.0103319 0.0103168 0.0102201 0.0102014 0.0101019 0.0100794 0.00997706 0.00995051 0.00984513 0.00981436 0.00970581 0.00967063 0.00955881 0.00951903 0.00940381 0.00935926 0.00924056 0.0091911 0.00906885 0.00901438 0.00888859 0.0088291 0.00869986 0.00863542 0.00850292 0.00843375 0.00829834 0.00822483 0.00808705 0.0080098 0.00787043 0.00779044 0.00765052 0.00756905 0.00742992 0.00734848 0.0072118 0.00713224 0.00699996 0.00692452 0.00679889 0.00673006 0.00661322 0.00655688 0.00644161 0.00640612 0.00630064 0.00627782 0.00618613 0.00617661 0.00609844 0.00609901 0.0060531 0.0060557 0.0060383 0.00603607 0.00603301 0.00602858 0.00603976 0.00603303 0.00605291 0.00604555 0.00607339 0.00606465 0.00609362 0.00608887 0.00611269 0.00611149 0.00613581 0.00612866 0.00616535 0.00615212 0.00617662 0.00614785 0.00615088 0.0060739 0.00606474 0.00594425 0.00603393 0.00600856 0.00648487 0.00709686 0.00743039 0.00758217 0.00701507 0.00672998 0.00637227 0.00658647 0.00766163 0.00644363 0.00622925 0.00739919 0.00322602 0.00765026 0.00738661 0.00768062 0.0077455 0.00755908 0.00770717 0.00794199 0.00770998 0.00786058 0.00794549 0.00779822 0.00799706 0.00316963 0.00334368 0.00350276 0.00782124 0.00647516 0.00646206 0.00776974 0.00793224 0.00657022 0.00652917 0.00787352 0.00356997 0.00358981 0.007957 0.00659372 0.00653218 0.00788096 0.00794264 0.00658068 0.00651638 0.00786829 0.00359362 0.00359382 0.00793862 0.0065656 0.00650508 0.00785799 0.00792797 0.00655142 0.00649237 0.00785069 0.00358922 0.00358765 0.00791871 0.0065385 0.00648232 0.00784743 0.00791076 0.0065275 0.00647652 0.00785 0.00358449 0.00358261 0.00790449 0.0065192 0.00647643 0.00786092 0.00790157 0.00651445 0.0064893 0.00788398 0.0035864 0.00360188 0.00790345 0.00651405 0.00651628 0.00792427 0.00791218 0.00651996 0.00656144 0.00798573 0.0036226 0.00365559 0.00793 0.00653542 0.00662754 0.00807099 0.00796153 0.00657385 0.00671768 0.00818466 0.00369914 0.00375521 0.00801182 0.0066425 0.00683373 0.00832857 0.00808571 0.00673436 0.00697583 0.00850214 0.00382411 0.00390584 0.00818705 0.00685077 0.00714173 0.00870621 0.00831672 0.00699438 0.00732481 0.00892508 0.0039965 0.00409556 0.00847601 0.00715704 0.00752611 0.00916276 0.00866239 0.00733827 0.00773816 0.0094094 0.00420059 0.00430807 0.00887804 0.00754195 0.00795555 0.00966044 0.00910715 0.00775218 0.00817449 0.00991155 0.00441661 0.00452463 0.00934195 0.00796231 0.00839196 0.0101594 0.00957858 0.00816983 0.00860583 0.0104013 0.00463077 0.0047344 0.00981864 0.00837768 0.00881423 0.0106358 0.010063 0.00858765 0.00901538 0.0108615 0.00483463 0.00493082 0.0103034 0.00879233 0.00920859 0.0110777 0.0105376 0.00899045 0.00939337 0.0112839 0.0050229 0.00511093 0.0107642 0.00918108 0.00956952 0.0114801 0.0109821 0.00936366 0.009737 0.0116664 0.00519465 0.00527386 0.0111906 0.00953788 0.00989595 0.0118428 0.0113894 0.00970366 0.0100466 0.0120098 0.005349 0.00541995 0.0115784 0.00986106 0.0101891 0.0121677 0.0117577 0.0100103 0.010324 0.0123168 0.00548733 0.00555044 0.0119274 0.0101515 0.0104514 0.0124575 0.012088 0.0102851 0.0105717 0.0125901 0.00561042 0.0056665 0.0122396 0.0104113 0.0106851 0.0127149 0.0123826 0.0105303 0.0107921 0.0128324 0.00571935 0.00576891 0.0125171 0.0106426 0.010893 0.012943 0.0126437 0.0107484 0.0109883 0.0130472 0.00581575 0.00585977 0.0127628 0.0108483 0.0110782 0.0131453 0.0128747 0.0109425 0.0111631 0.0132376 0.00590086 0.00593955 0.01298 0.0110313 0.0112433 0.0133244 0.0130789 0.0111151 0.0113189 0.013406 0.00597583 0.00600982 0.0131719 0.0111941 0.0113903 0.0134827 0.0132592 0.0112686 0.0114575 0.0135546 0.00604161 0.00607128 0.0133411 0.0113388 0.0115208 0.0136219 0.0134178 0.0114048 0.0115804 0.0136847 0.00609889 0.0061245 0.0134894 0.0114668 0.0116364 0.0137434 0.0135563 0.0115251 0.0116889 0.013798 0.00614821 0.00617012 0.0136187 0.0115798 0.0117381 0.0138488 0.0136768 0.0116309 0.0117841 0.0138958 0.00619026 0.00620866 0.0137306 0.0116786 0.0118269 0.0139389 0.0137802 0.011723 0.0118664 0.0139783 0.0062253 0.00624017 0.0138258 0.0117641 0.0119027 0.0140137 0.0138674 0.0118018 0.0119356 0.0140452 0.00625324 0.00626447 0.0139049 0.011836 0.011965 0.0140726 0.0139381 0.0118667 0.011991 0.014096 0.00627367 0.0062801 0.0139673 0.0118937 0.0120132 0.0141146 0.0139925 0.0119171 0.0120304 0.0141271 0.00628307 0.00627603 0.0140127 0.011936 0.0120481 0.0141354 0.0140162 0.0119453 0.012042 0.0141226 0.00625783 0.00623357 0.0139791 0.0119274 0.0120047 0.0140745 0.0138015 0.0118114 0.0118626 0.0139192 0.00622783 0.00594463 0.00582219 0.00583899 0.00587702 0.00589861 0.0059023 0.00590139 0.00589738 0.00589131 0.00588363 0.00587434 0.0058635 0.00585116 0.00583731 0.00582197 0.00580509 0.00578663 0.0057665 0.00574461 0.00572095 0.00569546 0.00566807 0.0056387 0.00560738 0.00557361 0.00553758 0.00549944 0.00545864 0.00541519 0.00536836 0.00531892 0.00526564 0.00520921 0.00514887 0.00508465 0.00501596 0.00494276 0.00486502 0.0047822 0.0046938 0.00459995 0.0045009 0.00439661 0.00428796 0.00417638 0.00406261 0.00395069 0.0038443 0.0037458 0.00366131 0.00359248 0.00353966 0.00350088 0.00347723 0.00346073 0.0034647 0.00347378 0.00348039 0.00348487 0.0034893 0.00348614 0.00347218 0.0034311 0.00348442 0.00338069 0.00318852 0.0081233 0.00789043 0.00804045 0.0081065 0.00794286 0.008166 0.0082554 0.00800921 0.00816919 0.00821834 0.00804996 0.0082631 0.00320818 0.00341455 0.00344304 0.00322477 0.0083288 0.00809044 0.00826048 0.00828431 0.00811 0.008339 0.00837817 0.00814335 0.008319 0.00840229 0.00819594 0.00841735 0.00325696 0.00346753 0.00359869 0.00356616 0.00352926 0.00359147 0.00353933 0.00355897 0.00356373 0.00362168 0.00361458 0.00366007 0.0036341 0.00367057 0.00369861 0.00370912 0.00366918 0.00366982 0.00362013 0.00356102 0.0035529 0.00361279 0.00360577 0.00354588 0.0035338 0.00359208 0.00364829 0.00366018 0.00366482 0.00371193 0.00371162 0.00374758 0.00374369 0.00373158 0.00370509 0.0036371 0.00352155 0.00333623 0.00846549 0.00830135 0.00855279 0.00877091 0.00844748 0.00858034 0.00849678 0.00855283 0.00907108 0.00937053 0.00849239 0.00859854 0.00356074 0.00387119 0.00877141 0.00841361 0.00872099 0.00754941 0.00792575 0.00863186 0.00736364 0.0267716 0.019488 0.0177337 0.021393 0.0156884 0.0172657 0.0179172 0.0151924 0.0145291 0.0174247 0.00781397 0.00795906 0.017975 0.0173326 0.0144346 0.0147704 0.014687 0.0178448 0.0180859 0.0080995 0.00795135 0.00810376 0.00811881 0.00880306 0.00881318 0.00394365 0.0039842 0.00400179 0.00401267 0.00886461 0.00894706 0.00885173 0.00892474 0.00883501 0.00888714 0.00816886 0.00813133 0.0181679 0.0182414 0.0181136 0.0181888 0.0181474 0.01816 0.0180728 0.0180063 0.0147769 0.0148063 0.0148011 0.0148656 0.0148398 0.0149186 0.0148657 0.0149483 0.0148929 0.0149579 0.0182302 0.01813 0.0183251 0.015014 0.0148997 0.0149532 0.0182209 0.00815656 0.00820263 0.0181719 0.0182943 0.0150274 0.0149335 0.015118 0.018407 0.0182796 0.00817511 0.00823065 0.00820464 0.0082676 0.00897247 0.00887133 0.00401949 0.00402769 0.00375413 0.00375802 0.00371071 0.00370276 0.00368639 0.00362687 0.00357177 0.00352035 0.00352845 0.00355859 0.0035719 0.00354912 0.00358516 0.00360087 0.0035954 0.00357803 0.00359645 0.00365519 0.00360606 0.00357151 0.0035914 0.00367126 0.00372073 0.00374736 0.00375624 0.00403916 0.00403714 0.00888513 0.00904624 0.00888119 0.00900873 0.00830638 0.00822804 0.0184165 0.0185741 0.0183157 0.0184352 0.0183586 0.0184704 0.0182475 0.0183526 0.015106 0.0150204 0.0150044 0.0152024 0.0150959 0.0151966 0.0150844 0.0153013 0.0151816 0.0153049 0.0185334 0.0184062 0.0186696 0.0153914 0.0152067 0.0152811 0.0184977 0.00825976 0.00835591 0.0184928 0.0186568 0.0154413 0.0153147 0.0155498 0.0188133 0.0185897 0.00829257 0.0084204 0.00910452 0.00888987 0.00915537 0.00849562 0.00835217 0.0186984 0.0190205 0.0185905 0.0188298 0.0156306 0.0153993 0.0154453 0.0157878 0.0155327 0.0159183 0.0191349 0.0187363 0.0192947 0.0161377 0.015663 0.0157842 0.0188005 0.00834518 0.00882068 0.00402634 0.00398724 0.00391769 0.00379632 0.00821829 0.0089887 0.00848844 0.00906603 0.00864962 0.0091491 0.00847197 0.00820531 0.00836678 0.0181533 0.0190817 0.0184154 0.0191959 0.0186566 0.0192716 0.0161938 0.0157302 0.0161106 0.0156047 0.0160632 0.0154765 0.0160754 0.0189838 0.0179197 0.00812688 0.00824122 0.0077426 0.00769045 0.00869336 0.00792083 0.00366679 0.00353334 0.00359897 0.00364142 0.00365443 0.00363984 0.00371422 0.00373253 0.00384055 0.00381069 0.00392329 0.00397242 0.00400248 0.00384274 0.00372253 0.00367337 0.00381121 0.00401386 0.00424542 0.00418479 0.00411824 0.00404573 0.00417263 0.00426748 0.00441218 0.00429877 0.00442078 0.00454857 0.00467852 0.00452958 0.00436279 0.00446053 0.00465369 0.00481491 0.00495252 0.00480929 0.00467294 0.00453681 0.00464558 0.00478508 0.00488622 0.00474644 0.00483944 0.00497732 0.00511299 0.00502468 0.00492399 0.00506727 0.00516557 0.00524948 0.00532162 0.00519085 0.00505961 0.00492512 0.00500416 0.00513411 0.00520179 0.00507722 0.00514484 0.00526352 0.005377 0.00532157 0.00525991 0.00538424 0.00543913 0.00548774 0.00559894 0.00555802 0.00551103 0.00545633 0.00539178 0.00531456 0.00522107 0.00510843 0.00496454 0.00478874 0.00456183 0.00428883 0.00398201 0.0037073 0.00354365 0.00350742 0.0035124 0.00386221 0.00344867 0.00292389 0.00836688 0.00781852 0.00836379 0.00747711 0.00739721 0.0157509 0.0180956 0.0159649 0.01873 0.0157885 0.0186748 0.0174205 0.0189826 0.0161866 0.0154811 0.0154811 0.0157769 0.0133626 0.0176082 0.0159252 0.0158735 0.0156973 0.0166248 0.0199308 0.015175 0.0148147 0.0150034 0.0173029 0.0152951 0.016904 0.0142115 0.014149 0.014158 0.014816 0.0122139 0.0150682 0.0143491 0.0151821 0.0071396 0.0070874 0.00574392 0.0182882 0.0149035 0.013208 0.0138984 0.0175258 0.0119306 0.0131035 0.0135445 0.0102343 0.0117806 0.0120245 0.00648419 0.00576957 0.0110996 0.0121083 0.0102266 0.00859998 0.00921068 0.0104907 0.0145448 0.00742234 0.00751836 0.00422158 0.00874762 0.0136769 0.0160059 0.0120207 0.0108699 0.00716817 0.00734666 0.00985141 0.0136201 0.00688727 0.0107325 0.0163968 0.0131307 0.00783448 0.00485215 0.0117264 0.0159479 0.0145732 0.0248073 0.0276582 0.0256653 0.0307898 0.0299617 0.0361234 0.0124367 0.00617084 0.016943 0.0327416 0.0346329 0.0327433 0.0341371 0.0299517 0.0379456 0.0330262 0.0283864 0.0363342 0.0324522 0.0272945 0.0350338 0.030828 0.0265189 0.0342226 0.0308244 0.026086 0.0335121 0.0297229 0.0257621 0.0332088 0.0300735 0.0256477 0.0328811 0.0293005 0.0255126 0.0329554 0.0298825 0.0256161 0.0330085 0.0293793 0.0257662 0.0334549 0.0301983 0.0260733 0.0346204 0.0305666 0.0287021 0.0295804 0.0269828 0.0344743 0.0307157 0.0268171 0.0358673 0.0316702 0.0297003 0.0304115 0.0278446 0.0367101 0.0330298 0.0306053 0.0311871 0.0283517 0.0375265 0.033317 0.0313802 0.0321164 0.0295482 0.0387818 0.0348493 0.03251 0.0329737 0.0300741 0.0399036 0.035244 0.0333099 0.0337698 0.0311536 0.0411041 0.0364922 0.0350043 0.0354602 0.0344289 0.0356888 0.0329094 0.0430869 0.0377414 0.0364981 0.0366581 0.0358363 0.0365885 0.0341452 0.0449724 0.0396343 0.0380478 0.038527 0.0382329 0.0392258 0.0379891 0.0386594 0.0356975 0.0471496 0.0414339 0.0399822 0.0402223 0.0400605 0.040577 0.0397687 0.0405449 0.0379116 0.0497519 0.0437099 0.0419923 0.0422854 0.0421581 0.0428415 0.0429068 0.0434476 0.0424699 0.0437415 0.0405619 0.0527484 0.0460401 0.0445984 0.0447198 0.0447396 0.0453174 0.0454581 0.0459493 0.0450354 0.0457538 0.0429108 0.056073 0.0492279 0.0474496 0.0476929 0.0475747 0.0482882 0.0483398 0.0489107 0.0478462 0.0492416 0.0456848 0.0595468 0.0517546 0.0502246 0.0503321 0.0503748 0.0510443 0.0512416 0.0516543 0.0506738 0.0514921 0.0482347 0.0633337 0.0555093 0.0534981 0.053757 0.0536527 0.0544055 0.054514 0.0551322 0.054023 0.0555577 0.0515777 0.0672595 0.0586049 0.0567773 0.0568987 0.0571012 0.0578062 0.0581149 0.0585536 0.0574688 0.0583487 0.054714 0.0717516 0.0629923 0.0608487 0.0612573 0.061088 0.0623515 0.0606255 0.0615353 0.0570914 0.0756874 0.0661834 0.064062 0.0640894 0.0642378 0.0648004 0.0637784 0.0649154 0.0607976 0.0799295 0.070108 0.0678908 0.0681382 0.0666489 0.0685865 0.063729 0.0838506 0.0729763 0.071043 0.070713 0.0695529 0.0707713 0.0662686 0.0877095 0.077696 0.0728396 0.0731043 0.0670007 0.0903658 0.0791029 0.0755488 0.0757058 0.070151 0.0941814 0.0832873 0.0782754 0.07861 0.072057 0.0982621 0.0853596 0.0813619 0.0816045 0.0756956 0.10245 0.0903873 0.0847448 0.0847132 0.0770631 0.101811 0.0903835 0.0800337 0.10472 0.0912389 0.0794667 0.107507 0.0951186 0.0835511 0.110652 0.0960607 0.0833593 0.114062 0.100047 0.087293 0.114807 0.099179 0.0822893 0.10197 0.120248 0.10479 0.08378 0.0974542 0.105209 0.122387 0.10716 0.0799625 0.0929552 0.0884348 0.0898458 0.0814453 0.0819809 0.0757449 0.0767901 0.0717764 0.0731932 0.0690463 0.0704499 0.067276 0.0686349 0.0657398 0.0669963 0.0646108 0.0656449 0.0633669 0.0644282 0.0625393 0.0633912 0.0615603 0.0624533 0.060937 0.0616433 0.0601244 0.0608853 0.0595754 0.0602781 0.058976 0.0595858 0.0585647 0.0590834 0.0580514 0.0584873 0.0577 0.0580655 0.0572406 0.0575404 0.0569376 0.0571842 0.0565291 0.0567288 0.0562754 0.0564339 0.0559139 0.0560387 0.0557591 0.0557435 0.0553852 0.0554553 0.055269 0.0552093 0.054988 0.055023 0.0548164 0.0547188 0.0545532 0.0545586 0.0544525 0.0544424 0.0542351 0.0542218 0.0542152 0.0540841 0.0539712 0.0539461 0.0539231 0.0538881 0.0537543 0.0537238 0.0537265 0.053689 0.0535787 0.0535466 0.0535686 0.0535332 0.053438 0.053408 0.0534435 0.0534119 0.0533278 0.0533021 0.0533474 0.0533214 0.0532461 0.0532259 0.0533302 0.0532069 0.0531889 0.0531743 0.0532815 0.0531641 0.053148 0.0531389 0.0532473 0.0531357 0.0531201 0.0531163 0.0532246 0.0531184 0.0531026 0.0531034 0.053211 0.0531093 0.0530925 0.053098 0.0532041 0.053107 0.0530888 0.0530983 0.053151 0.0531615 0.0530895 0.053103 0.0531534 0.0531679 0.0530934 0.0531107 0.0531585 0.0531768 0.0530996 0.0531206 0.0532171 0.0531356 0.0531073 0.0531316 0.0531738 0.0531988 0.0531165 0.0531436 0.0531836 0.0532112 0.0531271 0.0531565 0.0531945 0.0532245 0.0531385 0.0531701 0.053258 0.0531865 0.0531505 0.0531841 0.0532185 0.0532525 0.053163 0.0531984 0.0532827 0.0532149 0.0531756 0.0532126 0.0532435 0.0532809 0.0531881 0.0532267 0.0532558 0.0532948 0.0532002 0.0532403 0.0533194 0.0532562 0.0532119 0.0532533 0.0532793 0.0533208 0.0532236 0.0532659 0.0533429 0.0532815 0.0532357 0.0532785 0.0533557 0.0532945 0.0532493 0.053292 0.0533184 0.0533606 0.0532648 0.0533071 0.053387 0.0533249 0.053283 0.0533248 0.053354 0.0533958 0.0533023 0.0533446 0.0533732 0.0533609 0.053376 0.0533646 0.0533999 0.0533806 0.0533885 0.0533642 0.0534383 0.0533284 0.0534345 0.053281 0.0533407 0.0529711 0.0534399 0.0531458 0.0554713 0.056725 0.0684973 0.0764452 0.0810478 0.0862694 0.0347302 0.0689711 0.0688625 0.0327989 0.0660454 0.0665665 0.0303706 0.0658763 0.066501 0.03039 0.0662777 0.066379 0.0295816 0.0664093 0.0665258 0.0301243 0.0664047 0.0664281 0.0299759 0.0665207 0.0665272 0.0301208 0.0664398 0.0664464 0.030073 0.0664936 0.0664952 0.0301149 0.0664294 0.0662956 0.0301081 0.0666083 0.0664777 0.0301016 0.0663599 0.0663302 0.0301082 0.0664657 0.066601 0.0301127 0.0663519 0.0663208 0.0300905 0.0665418 0.0665133 0.0301078 0.0663488 0.0663164 0.0301033 0.0664594 0.0665919 0.0301063 0.0663488 0.0663156 0.0301038 0.0664607 0.0665928 0.0301067 0.0663511 0.066318 0.0301057 0.0665449 0.0665154 0.0301087 0.0663551 0.0663227 0.0301087 0.0664688 0.0666024 0.030112 0.0663605 0.0663293 0.0301128 0.0665561 0.066529 0.0301163 0.0663674 0.0663376 0.0301176 0.0665641 0.0665385 0.0301214 0.0663761 0.0663477 0.0301234 0.0664933 0.0666314 0.0301275 0.0663872 0.0663602 0.0301304 0.0665872 0.0665646 0.0301348 0.0664012 0.0663755 0.0301388 0.0665223 0.0666634 0.0301435 0.0664187 0.0663944 0.0301489 0.0666232 0.0666036 0.0301538 0.0664399 0.0664171 0.0301609 0.0666472 0.0666292 0.030166 0.0664656 0.0664443 0.0301749 0.066676 0.0666597 0.0301803 0.0664963 0.0664768 0.0301914 0.0666287 0.0667771 0.0301972 0.0665322 0.0665148 0.0302112 0.0667491 0.0667374 0.0302174 0.0665737 0.0665587 0.0302343 0.0667946 0.0667852 0.0302408 0.0666224 0.0666094 0.0302608 0.0668474 0.0668401 0.0302676 0.0666791 0.0666677 0.0302912 0.0668275 0.0669851 0.0302981 0.066745 0.0667349 0.0303262 0.0668992 0.0670585 0.030333 0.0668216 0.0668124 0.0303662 0.0669822 0.0671427 0.0303727 0.0669099 0.0669011 0.0304119 0.0670781 0.0672392 0.0304179 0.0670119 0.0670028 0.0304637 0.0671884 0.0673494 0.0304692 0.0671298 0.0671192 0.0305227 0.0673152 0.0674751 0.0305273 0.0672653 0.0672508 0.0305897 0.0675444 0.0675347 0.0305926 0.0674214 0.0674001 0.0306651 0.0677127 0.0676952 0.0306658 0.0676008 0.0675705 0.0307503 0.0679056 0.0678791 0.0307476 0.0678102 0.0677664 0.030847 0.0681277 0.0680885 0.030839 0.0680555 0.0679912 0.0309568 0.068383 0.0683247 0.0309418 0.0683349 0.0682459 0.0310801 0.068598 0.0686786 0.0310576 0.0686541 0.0685333 0.0312189 0.0690232 0.068899 0.0312067 0.069078 0.0687997 0.0313616 0.0693347 0.0692777 0.0313361 0.0694027 0.0693121 0.0315581 0.0697766 0.0697149 0.0315 0.0699144 0.0696345 0.0317609 0.0702898 0.0701543 0.0316885 0.070466 0.070103 0.0319981 0.0709704 0.0705683 0.0319044 0.071106 0.0706384 0.0322742 0.0716638 0.0711403 0.0321546 0.0718521 0.071252 0.0325997 0.0724738 0.0717984 0.0324491 0.0727243 0.0719632 0.0329896 0.0734293 0.0725674 0.0327987 0.0737706 0.0727967 0.0334627 0.0745829 0.0734771 0.0332201 0.0750461 0.073797 0.0340512 0.0759059 0.0746743 0.0337436 0.0766145 0.075021 0.0347964 0.0776621 0.0760326 0.0344033 0.0786316 0.0765642 0.0357819 0.0799976 0.0778286 0.0354845 0.0813147 0.0786589 0.0371399 0.0831632 0.0801498 0.037053 0.0849713 0.0814346 0.038928 0.0879654 0.0836514 0.0390299 0.0919316 0.0877074 0.0416733 0.0967842 0.0915607 0.0427439 0.10433 0.0941144 0.0454035 0.108181 0.0879193 0.0445312 0.113174 0.08872 0.10065 0.099619 0.112955 0.0452739 0.0527302 0.0206119 0.0426685 0.0501397 0.0202809 0.0423221 0.0460913 0.0194773 0.0407473 0.0431607 0.0187671 0.0390839 0.0412707 0.0182817 0.0379284 0.0397588 0.0178065 0.0371523 0.0387138 0.0174097 0.0367076 0.0379198 0.017111 0.0363713 0.0373219 0.0168734 0.0360972 0.0368526 0.0166796 0.0358638 0.0364707 0.0165189 0.0356623 0.0361529 0.0163846 0.0354882 0.0358849 0.0162715 0.0353366 0.0356574 0.0161675 0.0351884 0.0354824 0.0160983 0.0350866 0.0352945 0.0160277 0.0349854 0.035151 0.0159643 0.0348905 0.035026 0.0159089 0.0348088 0.0349156 0.0158719 0.0347354 0.0348184 0.0158298 0.0346699 0.0347334 0.0157919 0.034597 0.0346727 0.0157709 0.0345586 0.0345927 0.0157408 0.0345115 0.0345347 0.0157179 0.0344696 0.0344831 0.0156976 0.0344317 0.0344372 0.0156795 0.0343975 0.0343963 0.0156634 0.0343667 0.0343595 0.0156488 0.0343387 0.0343266 0.0156357 0.0343133 0.034297 0.0156238 0.0342909 0.0342714 0.0156129 0.0342716 0.0342494 0.0156029 0.0342545 0.0342296 0.0155937 0.034239 0.0342117 0.0155853 0.0342248 0.0341956 0.0155777 0.0342119 0.0341811 0.0155707 0.0342002 0.0341681 0.0155643 0.0341895 0.0341562 0.0155585 0.0341797 0.0341456 0.0155533 0.0341708 0.0341362 0.0155487 0.0341619 0.034127 0.0155448 0.0341536 0.0341183 0.0155414 0.0341463 0.0341101 0.0155384 0.0341402 0.0341026 0.0155318 0.034136 0.0340964 0.0155287 0.0341205 0.0340905 0.0155232 0.0341172 0.0341098 0.0155015 0.0341135 0.0340959 0.0154551 0.0340746 0.0339827 0.0154274 0.0340657 0.0337465 0.0155609 0.0341847 0.0328125 0.0161546 0.035124 0.0321922 0.0167542 0.0408491 0.0424603 0.0478113 0.0555188 0.0200206 0.0204027 0.0193837 0.0170198 0.0172067 0.0167937 0.0153048 0.0148869 0.014901 0.0150623 0.0150188 0.0155088 0.0155088 0.0150713 0.0151492 0.0152077 0.0150797 0.0154275 0.0167107 0.0186136 0.0181536 0.0179218 0.0178094 0.0162787 0.0163434 0.0164781 0.015353 0.0150758 0.0152515 0.0152814 0.0150807 0.015308 0.0152918 0.0150962 0.0153068 0.0153284 0.0151142 0.0152945 0.0162611 0.017772 0.0177678 0.0177764 0.0177883 0.0162833 0.016273 0.0162653 0.015303 0.0151293 0.0153472 0.0153627 0.0151431 0.0153145 0.0153255 0.0151551 0.015375 0.0153855 0.0151649 0.0153356 0.0162951 0.0178001 0.0178145 0.0178417 0.0178886 0.0163622 0.0163222 0.016305 0.0153505 0.0151739 0.0153939 0.0154016 0.0151843 0.0153688 0.0153913 0.0151987 0.0154118 0.015423 0.0152227 0.0154313 0.0164248 0.0179684 0.0180484 0.0181263 0.0180884 0.0166093 0.0165759 0.0165026 0.0154891 0.0152564 0.0154347 0.0154423 0.0152894 0.0155566 0.0156062 0.0153008 0.0154263 0.0153754 0.0152837 0.0156219 0.0166097 0.0181111 0.0183984 0.0184113 0.0167527 0.0166144 0.0156448 0.0152801 0.0153076 0.0152234 0.0153821 0.0156716 0.0154388 0.0154949 0.0155664 0.0156216 0.0156445 0.0156487 0.0156483 0.0156396 0.0156287 0.0156212 0.0156124 0.015602 0.015589 0.0155729 0.0155523 0.0155262 0.0154933 0.0154493 0.0153916 0.0153093 0.0151836 0.0149827 0.0150316 0.015046 0.0150438 0.015278 0.0152761 0.0152552 0.0153936 0.0154235 0.0154295 0.0154306 0.0152868 0.015053 0.0150547 0.0150565 0.0150585 0.015295 0.0152895 0.0152881 0.0154356 0.015437 0.0154464 0.0155433 0.0155377 0.0155364 0.0155314 0.0155344 0.0155248 0.0154918 0.0155606 0.0155965 0.015605 0.0156554 0.0156476 0.0156102 0.0156468 0.0156841 0.015692 0.0156882 0.0156562 0.0156061 0.015603 0.015608 0.0156134 0.0156626 0.0156576 0.0156529 0.0156924 0.015693 0.0156976 0.0156948 0.0156602 0.0156113 0.0155414 0.0154406 0.015293 0.0150608 0.0150633 0.0150662 0.0150733 0.015301 0.0153017 0.0152914 0.0154353 0.0154535 0.0154453 0.015457 0.0153086 0.0150734 0.015074 0.0150828 0.0150885 0.01532 0.0153141 0.0153014 0.0154539 0.0154594 0.0154696 0.0155713 0.0155608 0.015559 0.0155542 0.0155501 0.0155505 0.015536 0.0156057 0.0156201 0.0156195 0.0156635 0.0156724 0.0156544 0.0156885 0.0157062 0.0156931 0.0157079 0.015671 0.0156234 0.0156281 0.0156337 0.0156362 0.0156824 0.0156803 0.0156752 0.0157037 0.0157161 0.0157137 0.0157318 0.0157012 0.0156555 0.0155867 0.0154847 0.0153306 0.0150951 0.0151026 0.0151112 0.0151247 0.0153617 0.0153398 0.0153346 0.0154815 0.0154912 0.015514 0.0155113 0.0153583 0.0151284 0.0151451 0.01516 0.0151772 0.0154142 0.0153957 0.0153798 0.0155376 0.0155468 0.0155702 0.0156752 0.0156475 0.0156418 0.0156188 0.0156133 0.0156017 0.01558 0.0156524 0.0156702 0.0156777 0.0157218 0.0157109 0.0157015 0.0157314 0.01574 0.01575 0.0157616 0.0157342 0.0156909 0.015702 0.0157231 0.0157388 0.0157798 0.0157728 0.0157407 0.0157709 0.015794 0.0158077 0.015828 0.0158093 0.0157732 0.015706 0.0156004 0.0154432 0.015201 0.0152205 0.0152477 0.0152795 0.0155228 0.0154892 0.0154603 0.0156187 0.0156487 0.0156836 0.0157239 0.015562 0.0153204 0.0153524 0.015411 0.0154748 0.0157233 0.015661 0.0155999 0.0157668 0.015825 0.0158843 0.0159897 0.0159274 0.0158773 0.0158305 0.01579 0.015755 0.0157246 0.0157913 0.0158212 0.0158556 0.015892 0.015859 0.0158303 0.0158515 0.0158788 0.0159101 0.015946 0.01593 0.0158951 0.0159406 0.015989 0.016049 0.0160802 0.0160195 0.0159735 0.0159871 0.0160299 0.0160906 0.0160789 0.0160319 0.0159894 0.0159514 0.0159179 0.0158886 0.015863 0.0158448 0.0158221 0.0158017 0.0157915 0.0157793 0.0157687 0.0157596 0.0157518 0.015753 0.0157316 0.0157425 0.0157227 0.0157351 0.0157167 0.0157304 0.0157131 0.0157198 0.015723 0.0157186 0.0157184 0.0157145 0.0157185 0.0157115 0.0156742 0.0156953 0.0157328 0.0157389 0.0157556 0.0157496 0.015712 0.0157252 0.015763 0.015769 0.0157669 0.0157496 0.015734 0.0157377 0.0157377 0.0157418 0.01576 0.0157522 0.0157485 0.0157568 0.0157634 0.0157711 0.01578 0.0157732 0.0157677 0.015778 0.01578 0.0157738 0.0157358 0.0157444 0.0157826 0.015789 0.0157964 0.0157898 0.0157518 0.015754 0.0157961 0.0158025 0.0158011 0.0157948 0.0157872 0.015777 0.0157823 0.0157877 0.0157951 0.0157903 0.0157849 0.0157914 0.015797 0.0157981 0.0157947 0.0157849 0.015779 0.015772 0.0157633 0.0157524 0.0157383 0.0157352 0.0157443 0.0157343 0.0157475 0.0157579 0.015749 0.0157558 0.0157723 0.0157578 0.0157753 0.0157652 0.0157522 0.0157394 0.0157587 0.0157473 0.0157592 0.015771 0.015752 0.0157619 0.0157806 0.0157686 0.0157762 0.0157884 0.0157698 0.0157833 0.015766 0.0157807 0.0157643 0.0157712 0.0157836 0.0157806 0.0157941 0.0157853 0.015777 0.0157819 0.0157902 0.0157989 0.0157845 0.0157798 0.0157821 0.0157842 0.015787 0.0157865 0.0157959 0.0157846 0.0157976 0.0158024 0.0157893 0.0158007 0.0158048 0.0157935 0.0158025 0.0157965 0.0157951 0.0157983 0.0157862 0.0158045 0.0157999 0.0158026 0.0157969 0.0158064 0.0158076 0.0158013 0.0157559 0.0157627 0.0158017 0.0158117 0.0158149 0.0157976 0.0157578 0.0157391 0.0157922 0.0158092 0.0158162 0.0158139 0.0158106 0.0158013 0.0158073 0.0158047 0.0158124 0.0158069 0.0158087 0.0158152 0.0158097 0.0158153 0.0158133 0.0158154 0.0158168 0.0158136 0.015798 0.0157722 0.0157063 0.0156465 0.0157367 0.0157863 0.0157596 0.0156986 0.0155651 0.0157983 0.0158061 0.0158137 0.0158164 0.0158144 0.0158147 0.0158166 0.0158097 0.0158046 0.015808 0.0158106 0.0158084 0.0158093 0.0158094 0.01579 0.0158059 0.0157908 0.0157939 0.0158052 0.0157976 0.0158008 0.0158039 0.0158004 0.0158133 0.0158109 0.015808 0.0158021 0.0157969 0.0158081 0.0158098 0.0158035 0.015801 0.0157992 0.0158085 0.0158088 0.0158014 0.0158114 0.0157999 0.015815 0.0158023 0.0158061 0.0158032 0.0158088 0.0158115 0.0157995 0.0157997 0.0158162 0.0158097 0.0158146 0.0158155 0.0157991 0.0158126 0.0157928 0.0157877 0.0158088 0.0157968 0.0157971 0.015799 0.0158052 0.0158111 0.0158151 0.0158193 0.0158167 0.0158127 0.015808 0.0158026 0.0157963 0.0157888 0.0157797 0.0157682 0.0157664 0.0157736 0.015782 0.015792 0.0157842 0.0157775 0.0157863 0.0157926 0.0158 0.0158086 0.0158011 0.0157917 0.0158031 0.0158084 0.0158314 0.015838 0.015816 0.0158116 0.0158185 0.015826 0.0158392 0.0158431 0.0158351 0.0158204 0.0158149 0.0158067 0.0157996 0.0157935 0.0157997 0.0158056 0.0158125 0.0158173 0.0158147 0.0158011 0.0158057 0.0158189 0.0158205 0.0158255 0.0158244 0.0158202 0.0158211 0.0158424 0.015844 0.0158395 0.0158419 0.0158236 0.0158213 0.0158313 0.0158362 0.0158368 0.015856 0.0158651 0.0158678 0.0158661 0.0158622 0.0158569 0.0158698 0.0158934 0.0159201 0.015914 0.0158941 0.0158729 0.0158748 0.0158891 0.0159123 0.0159367 0.0159478 0.0159501 0.0159834 0.0160197 0.0160593 0.0160332 0.0160014 0.0159717 0.0159543 0.0159772 0.0160017 0.0159659 0.015948 0.0159315 0.0159201 0.0159054 0.0158793 0.0158733 0.0158662 0.0158711 0.015884 0.0158612 0.0158567 0.0158524 0.0158335 0.0158342 0.0158352 0.0158363 0.0158662 0.0158973 0.0159035 0.0159143 0.0159262 0.0158797 0.0158774 0.0158715 0.0158374 0.0158384 0.0158312 0.0157852 0.0158019 0.015798 0.0158051 0.0158078 0.0158101 0.0158122 0.0158144 0.0158245 0.0158188 0.0158127 0.0158212 0.0158201 0.0158172 0.0158131 0.015814 0.0158151 0.0158141 0.0158039 0.0158081 0.0158146 0.0158076 0.0157985 0.0157925 0.0157859 0.0157987 0.0158114 0.0157997 0.0158034 0.0158069 0.0157889 0.0157832 0.0157891 0.015779 0.0157677 0.0157676 0.015748 0.0157579 0.0157667 0.0157748 0.0157823 0.0157893 0.0157957 0.0157886 0.0157815 0.0157738 0.0157659 0.0157744 0.0157781 0.0157566 0.0157654 0.0157562 0.015746 0.0157346 0.015722 0.0157348 0.0157463 0.0157077 0.0157218 0.0157371 0.0157548 0.0157745 0.0157946 0.01579 0.015785 0.0157793 0.0157499 0.0157592 0.0157673 0.0157449 0.0157338 0.0157211 0.0157066 0.0157394 0.0157727 0.0157611 0.0157599 0.0157378 0.0156972 0.0157133 0.0157233 0.0156863 0.0156715 0.0156504 0.0156049 0.0156384 0.0156573 0.0156774 0.0156952 0.0157109 0.0157248 0.0157075 0.0156913 0.0156731 0.0156568 0.0156734 0.0156915 0.0156259 0.0156525 0.0156293 0.0156071 0.0155699 0.0155417 0.0155706 0.0156077 0.015501 0.0155407 0.0155798 0.0156264 0.0156828 0.015741 0.0157946 0.0158469 0.0158939 0.015939 0.0159853 0.0160282 0.0160674 0.0161023 0.0161305 0.016146 0.0161488 0.0161258 0.0160696 0.0159695 0.0158 0.0155416 0.0156211 0.0157238 0.0158451 0.0161034 0.0159816 0.0158814 0.0160469 0.0161424 0.0162658 0.0163962 0.0162383 0.0159812 0.0161489 0.0163476 0.0166036 0.0168335 0.0165927 0.0164021 0.0165529 0.016736 0.0169487 0.016979 0.0167934 0.0166268 0.0164811 0.0163582 0.01624 0.0161525 0.0162046 0.0162907 0.0163937 0.0163906 0.0163012 0.0162184 0.016212 0.0162851 0.0163572 0.016453 0.0165027 0.0165105 0.0166425 0.0167885 0.0169377 0.0168548 0.0167241 0.0166104 0.0165408 0.0166411 0.0167753 0.016912 0.0170277 0.0171098 0.0171717 0.0171793 0.0171043 0.016902 0.0172638 0.0176507 0.0181175 0.0182617 0.0177379 0.0173897 0.0174195 0.0177924 0.0182527 0.0186999 0.0188816 0.0188969 0.0197757 0.0204321 0.0208178 0.0206229 0.0417625 0.0443672 0.0859806 0.0948711 0.101416 0.11428 0.0917126 0.100295 0.0998262 0.0914189 0.101027 0.0407374 0.128918 0.0458126 0.0542508 0.0435568 0.0477544 0.047859 0.0425439 0.0893232 0.0978842 0.0985344 0.111574 0.0846232 0.098279 0.0907299 0.0836327 0.039129 0.108303 0.0951445 0.0943493 0.0938308 0.0868172 0.0805408 0.038382 0.122299 0.0435823 0.0879626 0.0517847 0.0189212 0.040282 0.0607216 0.0206109 0.0213787 0.0206834 0.0209304 0.0201202 0.0200972 0.0198662 0.0194453 0.0190585 0.0193279 0.0194553 0.0188815 0.0188137 0.0186415 0.0183916 0.0181046 0.017752 0.0174181 0.0173621 0.0176122 0.0178602 0.0175805 0.0174148 0.0172372 0.0170574 0.0171982 0.0173132 0.017417 0.0177329 0.0180608 0.0182279 0.0183322 0.0183654 0.0179046 0.0179022 0.0178428 0.0174905 0.0175227 0.0175014 0.0174355 0.0178466 0.0183093 0.018831 0.0194308 0.0192643 0.0199172 0.0195721 0.0201913 0.0207554 0.0200462 0.0422349 0.0456448 0.0448636 0.0398128 0.0839522 0.0899563 0.0908648 0.103386 0.0894543 0.0835052 0.0785703 0.0368132 0.0994205 0.0893763 0.0872659 0.0844166 0.0815331 0.0863495 0.0357881 0.113407 0.0408005 0.0822081 0.0487347 0.0180553 0.0385667 0.0583047 0.0206653 0.0199193 0.0189811 0.0400575 0.0427833 0.0421277 0.0394806 0.0344811 0.0732969 0.0782086 0.0830121 0.0831394 0.0786505 0.109493 0.0926282 0.0828559 0.0810691 0.0782871 0.075615 0.0729618 0.0772402 0.0770577 0.0727566 0.0687284 0.0321416 0.101857 0.0327707 0.0798969 0.106442 0.0370732 0.0769928 0.0397017 0.0161002 0.0342602 0.0430008 0.035868 0.0725641 0.0759668 0.0734489 0.0713647 0.0749327 0.0315797 0.099422 0.0696485 0.0718578 0.0716236 0.0691972 0.0655674 0.0696707 0.0718399 0.0808492 0.0303436 0.095833 0.0348984 0.0370325 0.0378287 0.035923 0.0169921 0.0491176 0.0152651 0.0334858 0.0327585 0.0682425 0.0712384 0.068957 0.0673861 0.0680964 0.0679987 0.066557 0.0651545 0.0642635 0.066137 0.0659343 0.0635357 0.0620466 0.0647422 0.0641954 0.0614414 0.0586338 0.027198 0.0725144 0.0646487 0.0640708 0.0621251 0.0606599 0.0611881 0.0611737 0.0599027 0.0586632 0.0579811 0.0596678 0.0596627 0.0575988 0.0567405 0.0580425 0.0573416 0.0556642 0.0532342 0.0563803 0.058176 0.0656133 0.0244495 0.0778915 0.0255506 0.0799882 0.0260436 0.0608696 0.0815696 0.0266977 0.0629085 0.084572 0.0305677 0.061739 0.0365498 0.0137419 0.032994 0.0276896 0.0860032 0.0887979 0.029095 0.0679827 0.0907024 0.0292908 0.0653628 0.0700606 0.0941155 0.0322397 0.014573 0.0443031 0.0352713 0.0466 0.0168971 0.0163006 0.0160939 0.0156242 0.0145682 0.0308441 0.0321786 0.0314184 0.0298698 0.0289256 0.0299318 0.0296351 0.0282658 0.0275163 0.026677 0.0559754 0.0579267 0.0560361 0.054925 0.0550101 0.0553481 0.0541581 0.0532885 0.0538451 0.05407 0.0529273 0.0517105 0.0511924 0.0527758 0.0528335 0.0509777 0.0504536 0.0513856 0.0506401 0.0492282 0.0470309 0.0498543 0.0515859 0.0580836 0.0215037 0.0695236 0.0228607 0.0712108 0.0228853 0.0536324 0.072822 0.0236804 0.0551391 0.074653 0.024071 0.053841 0.0567393 0.0770385 0.0266376 0.0120265 0.0366504 0.0272299 0.011519 0.0255418 0.0350155 0.0258305 0.010967 0.0225682 0.0496441 0.0515273 0.0497917 0.048951 0.0488517 0.0492556 0.0481344 0.0473646 0.0478254 0.0480821 0.047072 0.0461029 0.0458113 0.0469651 0.0469169 0.0453023 0.044844 0.0457083 0.0451892 0.0438855 0.0420216 0.044388 0.0459662 0.0518395 0.0193891 0.0614783 0.0202273 0.0630851 0.0205823 0.0478332 0.0643905 0.0209448 0.048939 0.0661664 0.0219337 0.0481667 0.0508623 0.068812 0.0291417 0.0243524 0.0251489 0.0247414 0.0236254 0.023053 0.0237654 0.0235503 0.0224713 0.0219635 0.0212241 0.044335 0.0458479 0.0442165 0.0434254 0.0434104 0.043776 0.0427606 0.0422285 0.0424904 0.0427571 0.0417478 0.0409071 0.0404541 0.0416151 0.041839 0.040178 0.0397457 0.0408867 0.0404264 0.0385816 0.0368314 0.01722 0.0460131 0.0408521 0.0407598 0.0393023 0.038668 0.0386846 0.0388958 0.0378408 0.0371284 0.0389913 0.0167338 0.0525895 0.0173566 0.0378007 0.0404529 0.0547474 0.0179961 0.039161 0.0088188 0.0207198 0.0181089 0.055127 0.0565201 0.0182156 0.0425979 0.0578406 0.0188614 0.0415974 0.043781 0.0593212 0.0191726 0.0426539 0.0450108 0.0611636 0.0228817 0.00963539 0.030554 0.00998978 0.03175 0.0104537 0.0333613 0.0115825 0.0125182 0.0128272 0.0130616 0.0134254 0.013605 0.013985 0.0124896 0.0382638 0.0286947 0.0398193 0.0131085 0.0420976 0.0145719 0.0147324 0.0152549 0.0152809 0.0148261 0.014894 0.0153345 0.0157878 0.0158653 0.0163936 0.0169896 0.0176921 0.0175962 0.0180785 0.0187173 0.0170564 0.0373968 0.052167 0.0550142 0.0196103 0.0193042 0.0185904 0.0187431 0.0180751 0.0179487 0.0173679 0.0174902 0.0169185 0.0169819 0.0164124 0.0158869 0.0158652 0.0163766 0.0162967 0.016812 0.0166772 0.0172046 0.0177518 0.0183467 0.0189558 0.0195835 0.0202334 0.01968 0.0191426 0.0186307 0.0189871 0.0184532 0.0186836 0.0181743 0.0179712 0.0177158 0.0181541 0.0178168 0.0182362 0.01868 0.0191355 0.0185859 0.0180423 0.0175149 0.0172443 0.0177162 0.0182047 0.0178226 0.0173942 0.0169662 0.0166888 0.0170739 0.0174527 0.0171009 0.017422 0.0170547 0.0173155 0.0175409 0.0177213 0.0173131 0.0171525 0.0169514 0.0167089 0.0164529 0.0167676 0.0164688 0.0167649 0.0164122 0.0161451 0.0158836 0.0161811 0.0159063 0.0161561 0.0163882 0.0166183 0.0167952 0.0169498 0.0170705 0.0171455 0.0171783 0.0171709 0.0171288 0.0170639 0.0169762 0.0168687 0.0167643 0.016665 0.0165635 0.0164742 0.0163828 0.0163044 0.0162472 0.0161865 0.0161486 0.0161988 0.0162462 0.0161824 0.0161454 0.0161047 0.0160572 0.016089 0.0161196 0.016165 0.0162436 0.0163161 0.0163923 0.0164583 0.0165368 0.0164092 0.0163506 0.0162974 0.0162011 0.0162422 0.0162829 0.0161579 0.0161335 0.0161071 0.0160804 0.0160543 0.0160296 0.0160066 0.0159528 0.0159673 0.0159824 0.0159087 0.0159028 0.0158965 0.0158385 0.0158369 0.0158339 0.015829 0.0159135 0.0159976 0.016012 0.0160248 0.0160345 0.0159132 0.0159168 0.0159165 0.0158213 0.0158102 0.0157943 0.0157727 0.0159042 0.0160395 0.0161785 0.0163209 0.0164668 0.0166163 0.0166855 0.0167673 0.0168258 0.0165999 0.0165738 0.0165125 0.016346 0.0163823 0.0163949 0.016388 0.016617 0.016863 0.0168798 0.0168671 0.016821 0.0165257 0.0165834 0.0166129 0.0163662 0.0163224 0.0162546 0.0160036 0.0160804 0.0161365 0.0161734 0.0161968 0.0162024 0.0161853 0.0160338 0.016031 0.0160061 0.0158282 0.0158635 0.0158882 0.0157438 0.0157063 0.0156587 0.0155996 0.0157807 0.0159715 0.0159215 0.0158546 0.0157696 0.0155502 0.0156427 0.0157193 0.0155279 0.0154426 0.0153431 0.0151492 0.0152521 0.0153417 0.0154264 0.0154959 0.0155547 0.0156039 0.0156445 0.0156777 0.0157048 0.0157267 0.0157443 0.0157585 0.01577 0.0157793 0.0157189 0.0157021 0.0156825 0.0156063 0.0156339 0.0156579 0.0156031 0.0155683 0.0155296 0.0154978 0.0155747 0.0156594 0.0156322 0.0156002 0.0155627 0.0154494 0.0154969 0.0155385 0.0154493 0.0153989 0.0153422 0.0152488 0.0153171 0.0153674 0.0154267 0.0154654 0.0155105 0.015551 0.0155036 0.015462 0.0154155 0.0153664 0.0154138 0.0154675 0.015317 0.0153675 0.0152983 0.0152493 0.0151708 0.0150993 0.0151839 0.0152386 0.0150075 0.0150851 0.0151696 0.0152749 0.015395 0.0155186 0.015467 0.015407 0.0153378 0.0151839 0.015263 0.0153332 0.015211 0.0151277 0.0150395 0.0149387 0.0150952 0.0152584 0.015161 0.0150702 0.0149573 0.0147679 0.0148944 0.0149892 0.0148354 0.0147225 0.0145933 0.0144455 0.0145699 0.0147031 0.0148061 0.0149145 0.0150067 0.0151052 0.0150139 0.014905 0.0148099 0.0147134 0.0148148 0.01493 0.0146034 0.0147025 0.0145793 0.0144513 0.0143148 0.0141886 0.0143443 0.0144637 0.0140535 0.014174 0.0143019 0.0144581 0.014638 0.0148296 0.0150263 0.0152291 0.0154413 0.0156659 0.0159012 0.0161586 0.0164388 0.0167399 0.0166244 0.0164724 0.0163026 0.0160104 0.016179 0.0163227 0.0160483 0.0159031 0.0157401 0.0155511 0.015813 0.0160913 0.0158758 0.0156438 0.0153837 0.0156307 0.0153528 0.0155847 0.0158215 0.0160639 0.016306 0.0165447 0.0167798 0.017003 0.0165171 0.0160511 0.0161864 0.0157208 0.0158076 0.0153496 0.0153942 0.0154083 0.0153851 0.0149373 0.0149534 0.0145342 0.0145086 0.0144595 0.0143886 0.0142867 0.0141478 0.0137542 0.0138799 0.0139795 0.0140554 0.0141069 0.0141353 0.0141444 0.0145352 0.0149496 0.0149192 0.014515 0.0141329 0.0141011 0.0144762 0.0148667 0.0152812 0.0151917 0.0156118 0.0154847 0.0158979 0.0163306 0.0161292 0.015731 0.0153407 0.0149623 0.0150825 0.0147064 0.0147961 0.0144175 0.0140564 0.0139941 0.014341 0.014252 0.0146002 0.0144835 0.0148279 0.0151836 0.0155497 0.0159201 0.0157095 0.0153611 0.0150192 0.0148479 0.0151708 0.0154955 0.0152816 0.0149776 0.0146744 0.0143759 0.0145325 0.0146838 0.0143568 0.0140394 0.0141509 0.0138302 0.0139181 0.0135975 0.0136623 0.0137139 0.0137525 0.0137771 0.0137775 0.0137618 0.0137284 0.0136754 0.0136014 0.0135045 0.0133847 0.0132408 0.0129016 0.0127338 0.0124478 0.0123174 0.0122261 0.0118805 0.0116933 0.0114197 0.0112397 0.0109952 0.0108052 0.00923662 0.0203256 0.0280427 0.0217736 0.0293315 0.0212467 0.0103413 0.0101498 0.00935164 0.0194367 0.0201161 0.0199362 0.0188192 0.0161763 0.0344628 0.0363555 0.0377265 0.0429733 0.0365295 0.0378138 0.0362846 0.0357855 0.0357547 0.0360283 0.034847 0.034249 0.0338063 0.0349837 0.0350751 0.0328898 0.0312314 0.0149429 0.0397591 0.0351902 0.0349748 0.0333197 0.0327873 0.0320837 0.0331859 0.0335228 0.0311936 0.0296874 0.014459 0.0450759 0.0150511 0.0350303 0.0470136 0.0154215 0.0335275 0.00773625 0.0203655 0.016918 0.0175138 0.0175823 0.0155176 0.0317831 0.0332763 0.0315754 0.0310595 0.0334534 0.0143676 0.0447738 0.0304544 0.0315615 0.0319827 0.0295775 0.0278828 0.0135506 0.0362392 0.031259 0.0313487 0.0319499 0.0296039 0.027737 0.0293379 0.0310052 0.0358577 0.013696 0.0430214 0.0139683 0.0302076 0.00716373 0.0187191 0.0155531 0.0151977 0.0299402 0.0310803 0.0292735 0.0288268 0.0269316 0.0286998 0.030644 0.0353473 0.0132451 0.0313943 0.0425605 0.0135776 0.0294707 0.0308506 0.0290208 0.0287621 0.0270186 0.0287235 0.0307772 0.0355224 0.0134629 0.0314878 0.0421922 0.0184253 0.00702838 0.0166569 0.0222608 0.00774182 0.00831214 0.00844956 0.00843504 0.00848212 0.00751644 0.0236635 0.00827229 0.00900599 0.00911888 0.00810257 0.0175763 0.0156486 0.0476496 0.0363379 0.0489629 0.0158934 0.0348095 0.037535 0.0509341 0.0177244 0.0192552 0.0257275 0.00844566 0.0268676 0.0182989 0.00951708 0.00970657 0.00992661 0.0100464 0.00987236 0.0100261 0.0101955 0.0103672 0.0105716 0.0107636 0.0105502 0.0107132 0.0109329 0.0111681 0.0113294 0.011592 0.0117437 0.0120277 0.0121633 0.0122878 0.0125871 0.0127156 0.0130389 0.0131529 0.0128225 0.0125093 0.0124048 0.0121168 0.0120052 0.0118818 0.0116112 0.0114769 0.0112297 0.0110879 0.0108612 0.0109967 0.0111195 0.0113584 0.0114747 0.0117324 0.01184 0.0119358 0.0122149 0.0122991 0.0125965 0.0129113 0.0132462 0.0133188 0.0129837 0.0126678 0.0123703 0.0120834 0.0120178 0.0117552 0.0116725 0.0115792 0.0113322 0.0112317 0.0110016 0.0108945 0.0107765 0.0106484 0.0105091 0.0103551 0.0101716 0.0103127 0.010132 0.00999888 0.00985776 0.00970472 0.00953761 0.00934833 0.00921769 0.00939344 0.00926745 0.00911419 0.00896839 0.00884289 0.00870323 0.00886939 0.00877974 0.00862794 0.00857292 0.00870153 0.00881992 0.00891454 0.00901572 0.0091508 0.00904078 0.00892867 0.00903247 0.00915796 0.00928125 0.00941425 0.0095517 0.00969712 0.00983159 0.00995661 0.00979035 0.00967303 0.00954836 0.00940569 0.00926877 0.00913348 0.00923084 0.00937481 0.00952145 0.00963068 0.00947699 0.00932375 0.00941518 0.00957582 0.00973363 0.00990037 0.0100742 0.010256 0.0104466 0.0105688 0.0103713 0.010184 0.0102849 0.0104786 0.0106809 0.010784 0.0105759 0.0103766 0.010187 0.0100987 0.0100016 0.00982893 0.00966498 0.00950092 0.00958602 0.0097504 0.00992112 0.0100054 0.00983116 0.00966379 0.00950288 0.00942757 0.00934633 0.00926528 0.00917575 0.00908802 0.0089974 0.0089058 0.00881327 0.0087178 0.00862098 0.00852264 0.00841299 0.00827421 0.00763418 0.0153371 0.0150647 0.0297939 0.0310191 0.0292329 0.0289653 0.027159 0.0291007 0.0312978 0.035912 0.0133036 0.0314895 0.0425015 0.0137234 0.0299528 0.0316329 0.0300288 0.0299114 0.0282653 0.0303276 0.0326736 0.0371953 0.0138363 0.032374 0.0431898 0.0186502 0.00702088 0.0166358 0.0220982 0.00821957 0.00818671 0.00763533 0.0156404 0.0155372 0.031401 0.0330681 0.031768 0.0316039 0.0303498 0.0328115 0.0353095 0.0391477 0.0140882 0.0333996 0.044657 0.0148681 0.0334203 0.0359363 0.035936 0.0384241 0.0348556 0.0157833 0.0461348 0.00705539 0.022127 0.00713397 0.0171247 0.0223111 0.00781221 0.00731709 0.00693475 0.00624648 0.00547616 0.00502364 0.00481287 0.00467389 0.00430619 0.00436333 0.00494251 0.00513559 0.00533835 0.00512889 0.00538068 0.00558674 0.00589279 0.00574705 0.00624147 0.00625148 0.00659904 0.00671686 0.00704637 0.00687943 0.00675842 0.00652185 0.0062489 0.00596777 0.00570834 0.00547953 0.00528157 0.00538892 0.00547383 0.0055412 0.00569927 0.00564576 0.00557492 0.00578094 0.00583056 0.00586539 0.0058908 0.0057408 0.00559572 0.00564067 0.00567841 0.00571064 0.0058234 0.00580091 0.00577391 0.00591 0.0059249 0.00593678 0.00605005 0.00604933 0.00604747 0.00604376 0.00603712 0.00602539 0.00600491 0.0062379 0.00622389 0.00620996 0.00637817 0.0064165 0.00646344 0.00666732 0.00659529 0.00653721 0.00648898 0.00634585 0.0061966 0.00618425 0.00617287 0.00616242 0.00627338 0.00629438 0.00631829 0.00644829 0.00641336 0.00638298 0.00649152 0.00652988 0.00657392 0.00662508 0.00668531 0.00675719 0.00684487 0.00695251 0.00708766 0.00726478 0.00751401 0.00785508 0.00816623 0.00812367 0.00812233 0.00824518 0.00830537 0.00837329 0.00829037 0.00815531 0.00798383 0.0079325 0.00789351 0.00763755 0.0074222 0.00725101 0.00738647 0.00754516 0.0077288 0.00781048 0.00764933 0.00750416 0.0076109 0.00774595 0.0078921 0.00804768 0.00820626 0.00834567 0.00845111 0.00853025 0.00840866 0.00826876 0.00834079 0.00848021 0.00860915 0.00868998 0.00855681 0.00841936 0.00828149 0.00819885 0.00812013 0.00797614 0.00784003 0.00771216 0.00780994 0.00793257 0.00806212 0.00814978 0.00802415 0.00790483 0.00779217 0.0076951 0.00759388 0.00748772 0.00737475 0.00725103 0.00711317 0.00699957 0.00690363 0.00682306 0.00695192 0.00703748 0.00713622 0.00726046 0.00716094 0.00707313 0.00699517 0.0068776 0.00675439 0.00669536 0.00664409 0.00659915 0.0067055 0.00675586 0.00681279 0.00692609 0.00686464 0.00680972 0.00691082 0.00696966 0.00703495 0.00710733 0.00718736 0.00727638 0.00737642 0.00748515 0.00738578 0.00729514 0.00739816 0.00748935 0.00758824 0.00768641 0.00758761 0.00749562 0.00741019 0.00731425 0.00721307 0.00713875 0.00707061 0.00700802 0.0071013 0.00716644 0.00723705 0.0073309 0.00725725 0.00718901 0.00727315 0.00734394 0.00741979 0.00750104 0.00758798 0.00768091 0.00778001 0.00788534 0.00799686 0.00811437 0.00823762 0.0083664 0.00850181 0.00863754 0.00877399 0.00886062 0.00871898 0.00858606 0.00867068 0.00880494 0.00894825 0.00903053 0.00888881 0.00875205 0.00862021 0.00853705 0.00845208 0.00832468 0.00820255 0.00808581 0.00817141 0.00828811 0.00841002 0.00849283 0.00837055 0.00825338 0.00833149 0.00844943 0.00857248 0.00870066 0.0088346 0.00897372 0.00911722 0.00919595 0.00905082 0.0089116 0.00898723 0.00912916 0.00927383 0.00934477 0.00919952 0.00905843 0.00891964 0.00885084 0.00877771 0.00864848 0.00852444 0.00840553 0.00847534 0.00859529 0.00872043 0.00878803 0.00866178 0.00854077 0.00842492 0.00836051 0.00829174 0.00821867 0.0081414 0.00806003 0.00797465 0.00786919 0.00776949 0.00767549 0.00775837 0.00785352 0.00795406 0.00803465 0.00793312 0.00783676 0.00774547 0.00766849 0.00758707 0.00750401 0.00742607 0.007353 0.00742874 0.00750389 0.00758373 0.00765911 0.00757752 0.00750049 0.00756832 0.00764707 0.00773028 0.00781813 0.00791079 0.00800837 0.00811097 0.00818301 0.0080793 0.00798052 0.00804599 0.00814593 0.00825074 0.00831412 0.00820826 0.00810724 0.00801092 0.00795082 0.00788656 0.00779731 0.00771261 0.0076323 0.00769246 0.0077742 0.00786027 0.00791918 0.00783187 0.00774884 0.00766992 0.00761487 0.00755619 0.00749385 0.00742782 0.00735805 0.00728449 0.00720701 0.007126 0.00704064 0.00695096 0.00685741 0.00676035 0.00666065 0.00655945 0.0064578 0.00635627 0.00625477 0.00615283 0.00605005 0.00594648 0.00584251 0.00573858 0.00563498 0.00553117 0.00542715 0.00532003 0.00520753 0.00526572 0.00537197 0.00541986 0.00531981 0.00537013 0.00546415 0.00555299 0.00551457 0.0054728 0.0055703 0.00560581 0.00563825 0.00566802 0.00558847 0.00550522 0.005417 0.00546067 0.00554342 0.00557905 0.00550141 0.00553948 0.00561235 0.00568029 0.0056519 0.00562136 0.00569544 0.00572075 0.00574412 0.00576567 0.00570662 0.00564347 0.00557518 0.00560868 0.00567246 0.00569941 0.00564005 0.00566934 0.00572443 0.00577423 0.00575346 0.00573097 0.00578552 0.00580377 0.00582055 0.00583594 0.00579336 0.0057476 0.00569661 0.00572195 0.00576899 0.00578869 0.00574542 0.0057671 0.00580674 0.00584178 0.00582707 0.00581096 0.00585002 0.00586284 0.00587446 0.00590589 0.00589735 0.00588776 0.00587711 0.00586535 0.00585244 0.0058383 0.00582286 0.00580602 0.00578768 0.00576769 0.00574591 0.00572209 0.00569595 0.00566709 0.00576314 0.00578497 0.00580456 0.00588631 0.00587349 0.00585902 0.00595458 0.00596148 0.00596745 0.00597268 0.00589779 0.00582226 0.00583833 0.00585299 0.00586636 0.00592588 0.00591745 0.00590812 0.00597728 0.00598135 0.00598492 0.00604406 0.00604516 0.00604619 0.00604718 0.0060481 0.00604893 0.00604962 0.00614405 0.006136 0.00612862 0.00620976 0.00622323 0.00623816 0.00633258 0.00631144 0.00629246 0.00627533 0.00619754 0.00612183 0.00611555 0.00610972 0.00610427 0.00616684 0.00617621 0.0061864 0.0062598 0.00624567 0.00623278 0.00622097 0.0061582 0.00609915 0.00604288 0.00598804 0.00593349 0.00587856 0.00588967 0.00589976 0.00590887 0.00595178 0.00594641 0.00594033 0.00599069 0.0059929 0.00599465 0.00599593 0.00595642 0.00591705 0.00592432 0.00593069 0.00593616 0.00596611 0.00596359 0.00596036 0.00599675 0.00599709 0.00599696 0.00603058 0.00603284 0.00603494 0.00603686 0.0060386 0.00604017 0.00604159 0.00609429 0.00608965 0.00608519 0.00613582 0.00614275 0.00615019 0.00621012 0.00620013 0.0061909 0.00618236 0.00612935 0.00608089 0.00607673 0.0060727 0.00606881 0.00611233 0.00611763 0.0061233 0.00617443 0.00616704 0.00616014 0.00615364 0.00610736 0.00606506 0.00602816 0.00599636 0.0059679 0.00594073 0.00591341 0.00588492 0.00585514 0.00582319 0.00578706 0.00580535 0.00583813 0.00585167 0.005822 0.00583712 0.0058639 0.00588782 0.00587816 0.00586725 0.00589426 0.00590246 0.00590945 0.00591519 0.0058962 0.00587485 0.0058508 0.00586308 0.00588447 0.00589275 0.00587394 0.00588339 0.00589966 0.00591348 0.00590904 0.00590328 0.00591971 0.00592301 0.00592511 0.00592605 0.00591658 0.00590519 0.00589142 0.00589799 0.00590933 0.00591202 0.00590302 0.00590654 0.00591335 0.00591837 0.00591895 0.00591838 0.0059259 0.00592471 0.00592248 0.00591871 0.00591607 0.00591279 0.00590801 0.0059058 0.00590817 0.00589497 0.00589695 0.00586691 0.00585908 0.00585349 0.00589306 0.0059112 0.00591265 0.0058919 0.0058503 0.00585146 0.00589548 0.00591475 0.00592268 0.00592726 0.00593062 0.00593323 0.00593502 0.00593595 0.00593593 0.00593489 0.00593279 0.0059296 0.00592529 0.00591988 0.0059444 0.00594713 0.00594893 0.00596903 0.00596935 0.00596898 0.00599533 0.00599389 0.00599208 0.00598997 0.00596807 0.00594981 0.00594981 0.00594898 0.00594739 0.00596204 0.00596449 0.00596653 0.00598763 0.00598515 0.0059826 0.0060101 0.00601254 0.00601507 0.00601769 0.00602034 0.00602301 0.00602563 0.00606146 0.00605802 0.00605475 0.00609409 0.00609828 0.00610269 0.0061475 0.00614162 0.00613595 0.00613041 0.00609005 0.00605163 0.00604865 0.00604576 0.00604293 0.00607824 0.0060822 0.00608611 0.00612493 0.00611944 0.00611388 0.0061082 0.00607416 0.00604008 0.00600775 0.00598007 0.00595931 0.00594515 0.00594236 0.00593913 0.00593556 0.00595051 0.00595346 0.00595642 0.00597762 0.00597526 0.00597295 0.00597005 0.00594703 0.00593121 0.00592388 0.00590568 0.00585969 0.00587671 0.0059236 0.0059407 0.00596411 0.0059471 0.00589992 0.00592473 0.00597305 0.00599091 0.00599745 0.00600071 0.00600314 0.00600545 0.00603714 0.006034 0.00603058 0.00606053 0.00606538 0.0060699 0.00610235 0.00609628 0.00608995 0.00608272 0.00605472 0.0060262 0.00601842 0.00599923 0.00594947 0.00597371 0.00602493 0.00604553 0.00607216 0.00605024 0.00599767 0.00602164 0.00607547 0.00609861 0.00611042 0.00611897 0.0061267 0.00613425 0.00614168 0.00614901 0.00615629 0.00616357 0.00617088 0.0061783 0.00618586 0.00619365 0.00620174 0.0062102 0.00621911 0.00622856 0.00623864 0.00624945 0.00626108 0.00627366 0.0062873 0.00630216 0.00631838 0.00633616 0.00635571 0.00637729 0.00640123 0.0064279 0.00652412 0.00649248 0.00646401 0.00655153 0.00658429 0.00662048 0.00671576 0.0066753 0.00663841 0.00660466 0.00652174 0.00643826 0.00641485 0.00639351 0.00637395 0.00644656 0.00646955 0.00649452 0.00657363 0.00654502 0.00651852 0.00658892 0.00661886 0.00665106 0.0066858 0.0067234 0.00676424 0.00680873 0.00689851 0.00685025 0.00680569 0.00688493 0.00693293 0.00698458 0.00706737 0.00701225 0.00696095 0.00691329 0.00684031 0.00676445 0.00672618 0.00669057 0.00665736 0.0067237 0.00675997 0.00679875 0.00686872 0.00682702 0.00678794 0.00675124 0.00668973 0.00662631 0.00656101 0.00649391 0.0064253 0.00635597 0.00633938 0.006324 0.00630969 0.00636999 0.00638719 0.00640557 0.00647097 0.00644951 0.00642938 0.00641043 0.00635384 0.00629631 0.00628375 0.0062719 0.00626066 0.00631053 0.00632422 0.00633862 0.00639254 0.0063756 0.00635951 0.00640765 0.00642602 0.00644538 0.00646583 0.00648748 0.00651046 0.00653492 0.00659723 0.00656993 0.00654425 0.00659968 0.0066279 0.00665786 0.00671677 0.00668433 0.00665374 0.00662486 0.00657307 0.00652004 0.00649717 0.00647553 0.006455 0.00650154 0.00652412 0.00654792 0.00659756 0.0065717 0.00654717 0.00659178 0.00661816 0.00664596 0.0066753 0.00670632 0.00673914 0.00677391 0.0068108 0.00685002 0.00689166 0.00693606 0.00698356 0.00703418 0.00708783 0.00714528 0.00722027 0.00716006 0.0071035 0.00717021 0.00722904 0.00729157 0.00735928 0.00729466 0.00723371 0.00717623 0.00711485 0.00705055 0.00700094 0.00695416 0.00690995 0.0069673 0.00701355 0.0070627 0.00712199 0.00707079 0.00702247 0.00707519 0.00712539 0.00717849 0.00723465 0.00729406 0.00735693 0.00742345 0.00748411 0.00741586 0.00735124 0.00740526 0.00747145 0.00754126 0.00759494 0.00752373 0.00745612 0.00739194 0.00734251 0.00729008 0.00723217 0.00717734 0.00712543 0.00717314 0.00722662 0.00728302 0.00733102 0.00727319 0.0072183 0.00716618 0.00712241 0.00707624 0.00702769 0.00697681 0.00692376 0.00686829 0.00682914 0.00679223 0.00675731 0.00680663 0.00684357 0.00688258 0.00693359 0.00689274 0.0068541 0.00681749 0.00677168 0.00672428 0.00669302 0.00666338 0.00663523 0.00667744 0.00670724 0.00673861 0.00678276 0.00674973 0.00671832 0.00675773 0.00679055 0.00682509 0.00686146 0.00689975 0.0069401 0.0069827 0.00702961 0.00698541 0.00694348 0.00698525 0.00702861 0.00707429 0.00711668 0.00706967 0.00702499 0.00698252 0.00694405 0.00690368 0.00686586 0.00682991 0.00679572 0.00683219 0.00686763 0.00690488 0.00694212 0.00690367 0.00686707 0.00683219 0.00679842 0.00676317 0.0067265 0.00668844 0.00664907 0.00660846 0.00656669 0.00652386 0.00648008 0.00643548 0.00639017 0.00634419 0.00629747 0.00624994 0.00623966 0.00622975 0.00622015 0.00626133 0.00627294 0.00628497 0.00632954 0.0063155 0.006302 0.00628897 0.00625008 0.00621078 0.0062016 0.00619256 0.00618361 0.00621793 0.00622843 0.00623913 0.00627635 0.00626409 0.00625211 0.00628618 0.00629957 0.00631334 0.00632755 0.00634226 0.00635755 0.0063735 0.00641689 0.00639913 0.00638212 0.00642148 0.00644014 0.00645965 0.00650166 0.00648048 0.00646023 0.00644081 0.00640358 0.00636578 0.00635004 0.00633482 0.00632005 0.00635361 0.00636972 0.00638635 0.00642215 0.00640416 0.00638676 0.00636987 0.00633795 0.00630566 0.00627309 0.00624037 0.00620757 0.00617472 0.00616583 0.0061569 0.00614787 0.00617684 0.00618709 0.00619731 0.0062288 0.00621733 0.0062059 0.00619383 0.00616591 0.0061381 0.00612513 0.00610083 0.0060458 0.00607018 0.00612639 0.00615181 0.00617864 0.00615213 0.00609476 0.00611945 0.00617796 0.00620554 0.00622181 0.00623498 0.00624757 0.00626025 0.00629157 0.00627771 0.00626399 0.00629284 0.00630764 0.00632265 0.00635341 0.00633729 0.00632143 0.00630514 0.00627754 0.00624974 0.00623243 0.00620381 0.00614419 0.0061689 0.0062296 0.00625923 0.00628586 0.00625527 0.00619355 0.00621806 0.00628077 0.00631227 0.00633246 0.00634971 0.00636657 0.00638374 0.00640132 0.00641939 0.00643803 0.00645734 0.00647738 0.00649824 0.00652002 0.00654281 0.00658297 0.00655866 0.00653542 0.00657168 0.0065963 0.00662206 0.00665999 0.00663286 0.00660694 0.00658214 0.00654811 0.00651317 0.00649181 0.00647126 0.00645143 0.00648281 0.00650377 0.00652551 0.00655835 0.00653549 0.00651347 0.00654335 0.00656636 0.00659028 0.00661519 0.00664119 0.00666833 0.00669673 0.00673214 0.00670252 0.00667422 0.00670614 0.0067355 0.00676623 0.00679892 0.00676717 0.00673683 0.00670781 0.00667806 0.00664716 0.00662123 0.00659634 0.00657239 0.00660054 0.00662535 0.00665116 0.00668002 0.00665337 0.00662776 0.00660311 0.00657664 0.00654931 0.00652114 0.00649221 0.00646255 0.00643224 0.0064136 0.00639541 0.0063776 0.00640506 0.00642377 0.0064429 0.00647161 0.00645158 0.00643203 0.00641224 0.00638606 0.00635945 0.0063384 0.00630604 0.00624242 0.00626655 0.00633105 0.0063642 0.00638963 0.00635575 0.00629045 0.00631405 0.00638008 0.00641464 0.00643793 0.00645846 0.00647879 0.00649965 0.006527 0.00650536 0.0064843 0.0065095 0.00653121 0.00655356 0.00657933 0.00655633 0.00653402 0.00651168 0.00648771 0.0064631 0.00643917 0.006404 0.0063373 0.00636016 0.00642748 0.00646321 0.00648668 0.00645046 0.00638261 0.00626978 0.00624797 0.00622581 0.00620334 0.00618061 0.00615764 0.00613448 0.00611117 0.00608775 0.00606425 0.00604073 0.00601721 0.00599376 0.00597047 0.00594738 0.00592453 0.00590191 0.00587936 0.00585664 0.00583348 0.00581002 0.00578886 0.00577278 0.00576309 0.00576498 0.00577805 0.00579534 0.00581367 0.00578838 0.00575332 0.00591193 0.00595595 0.00584555 0.00572094 0.00569696 0.0057932 0.00576588 0.00568533 0.00568971 0.00575799 0.00576637 0.00570483 0.00572374 0.00578461 0.00580413 0.00574434 0.00576596 0.00582314 0.00584327 0.0057872 0.00580835 0.00586339 0.00588371 0.00582963 0.00585115 0.00590432 0.00592523 0.00587294 0.00589495 0.00594642 0.00596783 0.00591711 0.00593938 0.00598943 0.00601131 0.00596174 0.00598412 0.0060333 0.00605521 0.0060065 0.00602882 0.00607715 0.00609908 0.00605107 0.00607321 0.00612097 0.00614279 0.00609519 0.00611694 0.00616445 0.00618596 0.00613846 0.0061597 0.00620726 0.0062283 0.00618063 0.00629119 0.00640458 0.00647291 0.00650956 0.006535 0.00655783 0.00658067 0.00660426 0.00662867 0.006654 0.00668034 0.00670776 0.00673637 0.00676624 0.00679748 0.00683017 0.00686442 0.00690032 0.00693798 0.00697751 0.00701904 0.00706268 0.00710854 0.00715677 0.00720751 0.00726088 0.00731705 0.00737615 0.00743835 0.00750381 0.00757269 0.00764514 0.00772135 0.00780147 0.00788566 0.00797409 0.0080669 0.00816425 0.00826628 0.00837311 0.00848488 0.00860171 0.00872372 0.00885104 0.0089838 0.00912388 0.00926634 0.00941311 0.00957309 0.0097361 0.00990595 0.010083 0.0102679 0.010461 0.0106632 0.0108762 0.011099 0.0111845 0.0114194 0.0114985 0.0115642 0.0118226 0.0118775 0.0121376 0.012429 0.0127234 0.0130392 0.0133734 0.0134112 0.0130745 0.0127636 0.0127889 0.0130957 0.0134301 0.0134308 0.0131039 0.0127966 0.0125124 0.0124982 0.0124705 0.0121798 0.0119203 0.0116614 0.0116185 0.011376 0.0113225 0.0112584 0.01103 0.0109576 0.0107424 0.0105372 0.0106049 0.0108124 0.0108733 0.0110925 0.011145 0.0111878 0.0114189 0.0114514 0.0116931 0.0119511 0.0122091 0.0122259 0.0119702 0.011714 0.0114737 0.0112443 0.0112208 0.0110008 0.0109674 0.0109249 0.0107149 0.0106642 0.0104645 0.0104068 0.0103412 0.0101538 0.00997441 0.00980252 0.00986273 0.0100362 0.0102174 0.0102737 0.0100912 0.00991648 0.00996357 0.0101391 0.0103226 0.0105143 0.010556 0.010757 0.0107906 0.0108156 0.0110251 0.0110405 0.0112583 0.011486 0.0117242 0.0119781 0.0122306 0.0125138 0.0127923 0.0130992 0.0134168 0.0133879 0.0130757 0.0127794 0.0127494 0.0130391 0.0133454 0.0132903 0.0129938 0.0127113 0.0124421 0.0124756 0.0125013 0.0122269 0.011975 0.0117242 0.0117142 0.0119615 0.0122106 0.0121824 0.011938 0.0116948 0.0116663 0.0119052 0.0121444 0.0123952 0.0126612 0.0129345 0.0132238 0.0135211 0.0134343 0.0137318 0.0136245 0.0139192 0.0142221 0.0140808 0.0137918 0.0135095 0.0133878 0.0136584 0.0139343 0.0142144 0.0144986 0.0147841 0.0150696 0.0148603 0.01513 0.0149116 0.0151439 0.0153929 0.0156106 0.015359 0.0151528 0.0149162 0.014696 0.0149225 0.0151195 0.0153037 0.0154865 0.0156455 0.0157887 0.0155438 0.0154038 0.0152473 0.0150205 0.0151757 0.0153163 0.0151009 0.014959 0.0148042 0.014631 0.0148453 0.015069 0.0148908 0.0147012 0.0144828 0.0142795 0.0144813 0.0146746 0.0144672 0.0142681 0.0140837 0.0138836 0.0140827 0.0142789 0.0144841 0.0146965 0.0144482 0.0146517 0.0144029 0.0145911 0.014321 0.0141425 0.0139644 0.0142116 0.0140219 0.0142538 0.0140566 0.0138339 0.0136086 0.0137876 0.0135524 0.0137156 0.0138832 0.0140508 0.0137842 0.0135202 0.0132606 0.0131284 0.0133777 0.0136341 0.0134767 0.0132318 0.0129919 0.0128518 0.0130829 0.0133195 0.0131591 0.0133823 0.0132179 0.0134339 0.0136513 0.0138627 0.0136727 0.0134643 0.0132598 0.013048 0.0128336 0.0129959 0.0127783 0.0129318 0.0127085 0.0125622 0.0124131 0.0126226 0.0124635 0.0126686 0.0128776 0.0130833 0.0132789 0.0134877 0.0136873 0.0138889 0.0140659 0.0142618 0.0144234 0.0145957 0.0147508 0.0148946 0.0146941 0.0145478 0.0143915 0.0141942 0.0143456 0.0144982 0.0143106 0.0141612 0.0140039 0.0138297 0.0140177 0.0142193 0.0140587 0.013865 0.013688 0.0134831 0.0136679 0.0138575 0.0136625 0.0134803 0.0132934 0.0131295 0.0133124 0.0134916 0.0136661 0.0138318 0.0140046 0.0141468 0.0140117 0.0138664 0.0136878 0.0135533 0.0137349 0.0138837 0.0133934 0.0135268 0.0133478 0.0131682 0.0129853 0.0128453 0.0130288 0.0132063 0.0126599 0.0128001 0.0129436 0.0131125 0.0133004 0.0134934 0.013298 0.0130966 0.0129022 0.012718 0.0129138 0.013102 0.0129167 0.0127313 0.0125362 0.0123438 0.0125192 0.0127015 0.0124984 0.0122987 0.0121006 0.0122599 0.012053 0.0122004 0.0123462 0.0124879 0.0126237 0.0127557 0.0128834 0.0130061 0.0131234 0.0132344 0.0133384 0.0130611 0.013147 0.0128698 0.0126026 0.0125335 0.0127928 0.0127075 0.012967 0.0128655 0.0127574 0.0125148 0.0126146 0.0123708 0.012456 0.0122095 0.0122781 0.0123403 0.0120972 0.0118633 0.0116291 0.0115837 0.011813 0.0120412 0.011976 0.0117516 0.0115303 0.0113185 0.0113673 0.0114083 0.0114412 0.0114658 0.0114817 0.0114885 0.0112631 0.0110473 0.0108407 0.0108323 0.0106329 0.0106153 0.0105897 0.0103975 0.0103638 0.0101799 0.0100039 0.0100374 0.0102135 0.0102399 0.0104235 0.010442 0.0104531 0.0106427 0.0106448 0.010841 0.0110455 0.011259 0.0112462 0.0110355 0.0108334 0.0106394 0.0104532 0.0104568 0.0102764 0.0102713 0.0102592 0.0100839 0.0100641 0.0098917 0.00986488 0.00983153 0.00979413 0.00974912 0.00969649 0.00963774 0.00947733 0.00932568 0.00918432 0.00923954 0.00938311 0.00953591 0.00958635 0.00943259 0.00928936 0.0091463 0.00909729 0.00904308 0.00890927 0.00878098 0.00865805 0.00870971 0.00883344 0.00896258 0.00901084 0.00888101 0.00875662 0.00879872 0.00892362 0.00905398 0.00918998 0.00933366 0.00947623 0.00963673 0.00967747 0.00951523 0.00937234 0.00940536 0.00954832 0.00971079 0.00973645 0.00957928 0.0094303 0.00928849 0.00926112 0.00922828 0.00909192 0.00896122 0.00883598 0.00886835 0.00899376 0.00912461 0.00915204 0.00902122 0.00889583 0.00877565 0.00874819 0.00871599 0.00867908 0.00863748 0.00859121 0.00854033 0.00842768 0.00831997 0.00821704 0.0082656 0.00836931 0.0084778 0.00852342 0.00841428 0.00830991 0.00821015 0.00816651 0.00811877 0.00802499 0.00793558 0.00785036 0.00789552 0.00798163 0.00807191 0.00811484 0.00802383 0.00793696 0.00797469 0.00806217 0.00815378 0.00824966 0.00834998 0.00845487 0.00856452 0.00860108 0.00849107 0.00838578 0.00841732 0.00852285 0.00863308 0.00866051 0.00855021 0.00844459 0.00834348 0.00831633 0.00828506 0.00818874 0.00809668 0.0080087 0.00803901 0.00812733 0.00821972 0.00824672 0.00815414 0.00806561 0.0080885 0.00817711 0.00826973 0.0083665 0.00846759 0.00857315 0.00868335 0.00879837 0.00891839 0.00904359 0.00917418 0.00931036 0.00945049 0.00960429 0.00975484 0.00991202 0.00992736 0.010097 0.0101033 0.010103 0.0102745 0.0102659 0.0104426 0.0106265 0.0108181 0.0110175 0.0112251 0.0111959 0.0109916 0.0107953 0.0107651 0.0109582 0.0111589 0.0111142 0.0109173 0.0107276 0.0105449 0.0105792 0.0106065 0.010425 0.0102505 0.0100828 0.0100962 0.00993319 0.0099384 0.00993729 0.00977401 0.00976702 0.0096196 0.00946634 0.00947888 0.00962747 0.00962857 0.00977634 0.00977259 0.00976277 0.00992169 0.00990386 0.0100629 0.0102284 0.0104004 0.0103689 0.0101995 0.0100365 0.00987967 0.00972638 0.00974681 0.00960625 0.00961966 0.00962623 0.00948384 0.00948491 0.00934318 0.00933768 0.00932675 0.00919104 0.00906087 0.00893605 0.00894883 0.00907309 0.00920264 0.00920902 0.00908028 0.00895675 0.00895981 0.00908242 0.00921017 0.00934326 0.00933787 0.00947473 0.009463 0.00944388 0.00958299 0.00955982 0.0097011 0.0098473 0.0100035 0.010164 0.0103306 0.0105035 0.010683 0.0108692 0.0110622 0.0112622 0.0114693 0.0116837 0.0119053 0.0121344 0.012049 0.0122786 0.0121797 0.0124086 0.0126433 0.0125238 0.0122967 0.0120748 0.0118583 0.0119568 0.0117401 0.0118262 0.0116102 0.011401 0.0113257 0.0115297 0.0114427 0.0116476 0.0115491 0.011754 0.0119642 0.0121795 0.0123995 0.0122708 0.0120575 0.0118486 0.0117282 0.0119312 0.0121411 0.0120044 0.0118034 0.0116032 0.0114101 0.0115296 0.0116443 0.011445 0.0112508 0.0113496 0.0111557 0.0112438 0.0110509 0.0111281 0.0111986 0.011003 0.0108139 0.0106314 0.0105731 0.0107518 0.0109368 0.0108641 0.0106832 0.0105082 0.0103391 0.0104005 0.0104553 0.0102855 0.0101218 0.00996224 0.00991574 0.0100732 0.0102339 0.0101759 0.0100183 0.00986623 0.0098084 0.00995741 0.0101118 0.0102717 0.0104372 0.0106083 0.010785 0.0109675 0.0108783 0.0110619 0.0109625 0.0111466 0.0113357 0.0112213 0.0110372 0.0108579 0.0106834 0.0107836 0.0106098 0.0107002 0.0105275 0.0103603 0.010278 0.0104413 0.0103496 0.010514 0.010412 0.0105771 0.0107471 0.0109217 0.011101 0.0112847 0.0114726 0.0116697 0.0118598 0.0117137 0.0118991 0.0117418 0.0119357 0.0121289 0.0123207 0.012149 0.011961 0.0117722 0.0116264 0.0118116 0.0119988 0.0121874 0.0123769 0.0125666 0.0127557 0.0126132 0.0124255 0.0122377 0.0121 0.0122866 0.0124735 0.0119143 0.0120504 0.0118642 0.0116797 0.0114974 0.0113678 0.0115477 0.01173 0.0111907 0.0113177 0.0114437 0.0115858 0.0114049 0.0115614 0.011371 0.0115235 0.0113345 0.0111893 0.0110448 0.0112219 0.0110872 0.0112639 0.0111409 0.0109649 0.0108031 0.0109166 0.0107421 0.0108715 0.0110114 0.0111517 0.0109729 0.0107985 0.0106285 0.0105025 0.0106678 0.0108375 0.0107022 0.010537 0.0103761 0.0102586 0.010418 0.0105819 0.0104749 0.0106267 0.0105113 0.0106845 0.0108408 0.0110194 0.0103626 0.0101979 0.0103095 0.0101583 0.0100574 0.00990161 0.010009 0.0101109 0.0102197 0.0103416 0.0104631 0.0103024 0.0101464 0.0102518 0.0100964 0.0101902 0.0100359 0.0101199 0.0101985 0.0100421 0.00989097 0.00974508 0.00967654 0.00981924 0.009967 0.00988663 0.00974231 0.00960291 0.00952358 0.00965958 0.00980035 0.00994595 0.00984863 0.00999512 0.00988665 0.0100337 0.0101854 0.0100677 0.0099202 0.00977726 0.00963887 0.00974424 0.00960645 0.00970686 0.0095698 0.00943738 0.00934456 0.00947324 0.00937558 0.00950498 0.00941205 0.00954242 0.00967723 0.0098165 0.00996023 0.00986425 0.00972375 0.00958768 0.00949225 0.00962744 0.00976716 0.0093684 0.00945601 0.00932872 0.00920575 0.00928607 0.00916227 0.0092506 0.00912999 0.00922035 0.00930955 0.0093923 0.00946835 0.00953883 0.00960431 0.00966469 0.00971966 0.00977067 0.00981211 0.00966513 0.00952675 0.00938753 0.00941787 0.00928767 0.00931019 0.00932689 0.0091965 0.00920604 0.00907946 0.00895795 0.00895101 0.00907126 0.00905765 0.00918139 0.00916059 0.00913406 0.00925929 0.00922515 0.00935364 0.00948719 0.00962326 0.00957419 0.00944236 0.00931349 0.00918543 0.00906423 0.00910187 0.00898337 0.00901369 0.00903848 0.00892119 0.00893881 0.00882471 0.00883557 0.00884132 0.00884216 0.00883824 0.00882965 0.00881636 0.00870163 0.00859168 0.00848632 0.00850082 0.00860581 0.00871537 0.00872458 0.00861559 0.00851111 0.00841096 0.00840021 0.0083854 0.00828876 0.00819624 0.00810768 0.00812319 0.00821155 0.00830384 0.00831501 0.00822308 0.00813505 0.00814331 0.00823087 0.00832228 0.00841768 0.00851721 0.00862102 0.00872928 0.0087294 0.00862203 0.00851905 0.00851648 0.00861846 0.00872478 0.00871518 0.00861008 0.00850924 0.00841252 0.00841867 0.0084203 0.00832563 0.00823489 0.00814794 0.00814882 0.00823498 0.00832488 0.00831978 0.00823087 0.00814565 0.00813809 0.00822222 0.00831001 0.00840158 0.00849708 0.00859664 0.00870042 0.00880855 0.008787 0.00889806 0.0088695 0.00883572 0.00894771 0.00890699 0.00902143 0.00914044 0.0092662 0.00939028 0.00952378 0.00946858 0.00933355 0.00921384 0.0091567 0.00927374 0.00940601 0.00933854 0.00920915 0.0090949 0.00897674 0.00903588 0.00909049 0.0089738 0.00886156 0.00875368 0.008797 0.00869132 0.00872814 0.00876013 0.00865511 0.00868037 0.00857804 0.00847985 0.0084576 0.00855431 0.00852567 0.00862483 0.00858983 0.00855045 0.00865001 0.00860451 0.00870604 0.0088117 0.00892161 0.00886501 0.00875755 0.00865424 0.00855496 0.0084596 0.00850699 0.00841337 0.00845487 0.0084924 0.00839892 0.00843052 0.00833926 0.00836484 0.00838568 0.00829538 0.00820883 0.00812589 0.008109 0.00819066 0.0082759 0.00825177 0.00816792 0.00808759 0.008062 0.00814091 0.00822329 0.00830926 0.00827519 0.00836316 0.00832354 0.00828023 0.00836807 0.00831864 0.00840795 0.008501 0.00859787 0.00869869 0.00880356 0.00891259 0.00902796 0.00913928 0.00926565 0.00918623 0.00906306 0.00895486 0.00887363 0.00898504 0.00909848 0.00901142 0.00890358 0.00879147 0.00868964 0.00876665 0.00884248 0.00873634 0.00863426 0.00853612 0.00846921 0.00856447 0.00866359 0.00858967 0.00849354 0.00840117 0.00833878 0.0084283 0.0085217 0.00861886 0.00871996 0.008825 0.00893403 0.00904719 0.00897235 0.00908697 0.00900631 0.00912428 0.00923962 0.00889708 0.00878524 0.00886202 0.00875574 0.00865367 0.00858242 0.00868612 0.00848837 0.00855488 0.00846045 0.0083695 0.00828235 0.00822325 0.00830812 0.00839653 0.00814216 0.00819829 0.00825222 0.00831245 0.0083777 0.00844183 0.00835129 0.00826438 0.008181 0.00823294 0.00815075 0.00819599 0.00823738 0.00815477 0.00819086 0.00811004 0.00803262 0.0079998 0.00807562 0.00803784 0.00811523 0.00807198 0.00802442 0.00810105 0.00804708 0.00812462 0.0082055 0.00828983 0.00822729 0.00814558 0.00806723 0.00799213 0.00792018 0.00797278 0.00790162 0.00795102 0.0079965 0.00792422 0.00796373 0.00789278 0.00792721 0.00795851 0.00798644 0.00801066 0.00803078 0.00804644 0.00805749 0.00806399 0.00806626 0.00806465 0.00805944 0.00805076 0.00803861 0.00802295 0.00800374 0.00798095 0.0079546 0.00792467 0.00789116 0.00785408 0.00781343 0.00776918 0.0076919 0.00761833 0.00754834 0.00758969 0.00766067 0.0077352 0.00777505 0.00769969 0.00762787 0.00755943 0.00752211 0.00748174 0.0074184 0.00735816 0.00730086 0.00733822 0.00739652 0.00745776 0.00749422 0.00743211 0.00737294 0.007405 0.00746492 0.00752777 0.00759371 0.00766288 0.00773541 0.00781145 0.00784442 0.00776782 0.00769471 0.00772337 0.00779692 0.00787395 0.00790004 0.00782272 0.00774885 0.0076783 0.00765315 0.00762495 0.00755841 0.00749494 0.0074344 0.00746113 0.00752217 0.00758613 0.00761093 0.0075466 0.00748518 0.00742656 0.0074029 0.00737667 0.00734789 0.00731658 0.00728273 0.00724636 0.00719452 0.0071452 0.00709826 0.00713172 0.00717961 0.0072299 0.00726289 0.00721174 0.00716302 0.00711658 0.00708611 0.00705358 0.00701104 0.00697052 0.0069319 0.00696177 0.00700125 0.00704265 0.00707233 0.00703014 0.0069899 0.00701626 0.00705716 0.00710003 0.00714499 0.00719213 0.00724159 0.00729347 0.00732162 0.00726912 0.00721905 0.00724375 0.00729433 0.00734734 0.00737061 0.0073172 0.00726623 0.00721758 0.0071955 0.0071713 0.00712575 0.00708229 0.00704083 0.00706358 0.00710552 0.00714946 0.00717114 0.00712682 0.0070845 0.00710358 0.00714618 0.0071908 0.00723753 0.00728647 0.00733773 0.00739142 0.00744766 0.00750655 0.00756822 0.00763279 0.0077004 0.00777116 0.00784521 0.00792269 0.0079419 0.00786439 0.00779027 0.00780621 0.00788026 0.00795768 0.00797008 0.00789287 0.007819 0.00774835 0.0077354 0.00771943 0.00765172 0.00758703 0.00752521 0.00754117 0.00760301 0.00766771 0.00768078 0.00761618 0.00755442 0.00756501 0.00762659 0.00769098 0.00775832 0.0078287 0.00790227 0.00797914 0.00798487 0.00790848 0.00783535 0.00783889 0.00791142 0.00798717 0.00798576 0.00791083 0.00783907 0.00777035 0.00776945 0.00776536 0.00769839 0.00763431 0.00757303 0.00757851 0.00763937 0.00770298 0.00770457 0.0076416 0.00758133 0.00752365 0.00752029 0.00751443 0.00750615 0.00749539 0.00748208 0.00746617 0.00740977 0.0073559 0.00730445 0.00732016 0.00737168 0.00742562 0.00743898 0.00738508 0.00733358 0.00728437 0.00727094 0.00725532 0.0072084 0.00716359 0.0071208 0.00713614 0.00717903 0.00722393 0.00723737 0.00719247 0.00714958 0.0071611 0.0072039 0.00724871 0.00729562 0.00734472 0.00739611 0.00744988 0.0074584 0.00740484 0.00735365 0.00736046 0.00741136 0.0074646 0.00746847 0.00741569 0.00736521 0.00731694 0.00731182 0.00730474 0.007258 0.00721336 0.00717072 0.00717851 0.00722093 0.00726533 0.0072708 0.00722671 0.00718459 0.00714437 0.007138 0.00712999 0.00712021 0.00710861 0.00709517 0.00707993 0.00706289 0.00704409 0.00702354 0.00700124 0.00697723 0.00695151 0.00692412 0.00689507 0.00685994 0.00682639 0.00679434 0.00682108 0.00685387 0.00688818 0.00691487 0.00687988 0.00684644 0.00681447 0.00678973 0.00676369 0.00673435 0.00670622 0.00667923 0.0067034 0.00673098 0.00675973 0.00678387 0.00675457 0.00672647 0.00674843 0.00677697 0.00680676 0.00683786 0.00687038 0.00690438 0.00693997 0.00696345 0.00692736 0.00689287 0.00691389 0.00694878 0.0069853 0.0070055 0.00696864 0.00693342 0.00689976 0.00688053 0.00685989 0.00682835 0.00679816 0.00676924 0.00678888 0.0068181 0.00684863 0.00686757 0.00683679 0.00680733 0.00677913 0.00676089 0.00674152 0.00672105 0.0066995 0.0066769 0.00665328 0.0066283 0.00660419 0.00658088 0.00660313 0.00662685 0.00665142 0.00667358 0.00664862 0.00662456 0.00660065 0.00657952 0.00655763 0.00653181 0.00649479 0.00642606 0.00644699 0.00651607 0.00655338 0.00657426 0.0065367 0.00646734 0.00648708 0.00655666 0.00659439 0.00662098 0.00664512 0.00666947 0.00669476 0.00671492 0.00668937 0.0066648 0.00668357 0.0067083 0.00673405 0.00675211 0.00672622 0.00670139 0.00667691 0.00665914 0.00664049 0.00661376 0.00657591 0.00650616 0.00652456 0.00659441 0.00663234 0.00665009 0.00661215 0.00654225 0.00655919 0.0066291 0.00666699 0.00669378 0.00671826 0.00674314 0.0067691 0.00679623 0.00682457 0.00685419 0.00688517 0.00691756 0.00695145 0.00698692 0.00702404 0.00704089 0.0070036 0.00696797 0.00698296 0.00701866 0.00705604 0.00706947 0.00703209 0.00699639 0.00696228 0.00694884 0.00693393 0.0069014 0.00687031 0.00684059 0.00685537 0.00688512 0.00691625 0.00692971 0.0068986 0.00686889 0.00688114 0.00691074 0.00694174 0.00697422 0.00700824 0.00704386 0.00708116 0.00709109 0.00705395 0.00701849 0.00702717 0.00706241 0.00709933 0.00710597 0.00706932 0.00703435 0.007001 0.00699354 0.00698464 0.00695233 0.0069215 0.00689209 0.00690172 0.00693088 0.00696147 0.00696921 0.00693891 0.00691005 0.00688259 0.00687394 0.00686405 0.00685291 0.00684053 0.00682694 0.00681217 0.006785 0.00675901 0.00673416 0.00674907 0.00677384 0.00679979 0.00681345 0.00678761 0.00676297 0.00673881 0.00672475 0.00670973 0.00668303 0.00664523 0.00657537 0.00659076 0.00666053 0.00669819 0.00671244 0.00667497 0.00660535 0.00661911 0.00668855 0.00672578 0.00675191 0.00677584 0.0068003 0.00682597 0.00683733 0.00681188 0.00678768 0.00679843 0.00682233 0.00684749 0.00685647 0.00683165 0.00680811 0.00678515 0.0067751 0.00676401 0.00673818 0.00670124 0.00663202 0.00664407 0.00671302 0.00674962 0.00676008 0.00672387 0.00665524 0.00666551 0.00673378 0.00676954 0.00679418 0.00681672 0.00683986 0.00686429 0.00689004 0.00691716 0.00694568 0.00697566 0.00700714 0.00704017 0.00707482 0.00711114 0.00714919 0.00718904 0.00723075 0.00727438 0.00732002 0.00736773 0.00741761 0.00746974 0.00752422 0.00758115 0.00764062 0.00770276 0.00776768 0.00783549 0.00790631 0.00798027 0.00797035 0.00789749 0.00782774 0.00781559 0.00788419 0.00795588 0.00793702 0.00786656 0.00779915 0.0077347 0.00774997 0.00776098 0.00769709 0.00763595 0.00757745 0.00756976 0.00762716 0.00768719 0.00767308 0.0076142 0.00755793 0.00754221 0.00759733 0.00765506 0.0077155 0.00777875 0.00784492 0.00791411 0.00788757 0.00781972 0.00775484 0.00772781 0.00779132 0.00785776 0.00782489 0.00775997 0.00769792 0.00763863 0.00766712 0.00769284 0.00763361 0.00757706 0.00752309 0.00750106 0.00755384 0.00760916 0.00758202 0.007528 0.00747648 0.00742736 0.00745073 0.00747161 0.0074896 0.00750418 0.00751487 0.00752147 0.00746791 0.00741665 0.00736761 0.00736419 0.00741219 0.00746238 0.00745284 0.00740381 0.00735696 0.00731221 0.00731828 0.00732067 0.00727576 0.0072328 0.0071917 0.00719209 0.00723231 0.00727435 0.00726944 0.00722856 0.00718947 0.00718322 0.00722106 0.00726071 0.00730227 0.00734583 0.00739151 0.0074394 0.00742253 0.00737575 0.00733119 0.00731363 0.0073571 0.00740278 0.00738058 0.00733604 0.00729367 0.00725339 0.00727227 0.00728875 0.00724835 0.00720989 0.00717328 0.0071601 0.00719559 0.00723295 0.00721514 0.00717883 0.00714439 0.00712659 0.00715997 0.0071952 0.00723236 0.00727149 0.00731269 0.00735601 0.00740154 0.00744935 0.00749953 0.00755215 0.0076073 0.00766507 0.00772556 0.00778884 0.00785503 0.00781348 0.00788074 0.00783349 0.00778537 0.0078513 0.00780496 0.00787176 0.00794154 0.00801439 0.00809023 0.00816993 0.00811801 0.00804031 0.00796674 0.00791696 0.00798836 0.00806358 0.00784804 0.00789571 0.00782827 0.00776317 0.0077011 0.00774106 0.00767996 0.00772232 0.00776832 0.007706 0.00774914 0.00768764 0.00762888 0.00758953 0.00764643 0.00760445 0.00766204 0.00762156 0.00758507 0.00764176 0.00760191 0.00765939 0.00771955 0.00778265 0.00754702 0.00749463 0.00753095 0.00756579 0.00751256 0.00754946 0.00749698 0.00753522 0.00757276 0.00751921 0.00746812 0.00741943 0.00738691 0.00743399 0.0074834 0.00744693 0.00739923 0.0073538 0.00732333 0.00736724 0.00741336 0.00746177 0.00743006 0.0074793 0.00744467 0.00739704 0.00735168 0.00738313 0.00733844 0.00729592 0.00726746 0.00730851 0.00722847 0.00725549 0.00728157 0.00731057 0.00734209 0.00737305 0.0073289 0.0072869 0.00724699 0.00722038 0.00725889 0.00729944 0.00726945 0.00723039 0.00719331 0.00715815 0.00718383 0.00720909 0.00717314 0.00713907 0.00710682 0.00708536 0.00711638 0.00714919 0.00712485 0.00709334 0.00706357 0.00704339 0.00707235 0.00710248 0.00713473 0.00716808 0.00720418 0.00724205 0.00721745 0.00718063 0.0071454 0.00712251 0.00715627 0.00719178 0.00709161 0.00711359 0.00708281 0.00705324 0.00702552 0.00700738 0.00703361 0.0070622 0.00698255 0.00699976 0.0070166 0.00703548 0.00705606 0.00707633 0.007095 0.00711176 0.00712641 0.00713841 0.00714709 0.00715207 0.00715361 0.0071524 0.00711485 0.00707897 0.00704474 0.00704794 0.00708158 0.00711679 0.0071163 0.00708206 0.00704931 0.007018 0.00701582 0.00701208 0.00698097 0.00695135 0.00692319 0.00692828 0.00695602 0.00698519 0.00698809 0.00695956 0.00693239 0.00693514 0.00696145 0.00698901 0.00701786 0.00704804 0.00707958 0.00711258 0.00710521 0.00707356 0.00704338 0.00703519 0.00706404 0.00709442 0.00708086 0.00705162 0.00702396 0.0069978 0.00700777 0.00701458 0.00698707 0.0069608 0.00693571 0.00693325 0.00695688 0.0069817 0.00697304 0.00694962 0.00692744 0.00690643 0.00691074 0.00691178 0.00691008 0.00690657 0.00690194 0.00689644 0.00687107 0.00684704 0.00682433 0.00683107 0.00685335 0.00687697 0.00688209 0.00685893 0.0068371 0.00681592 0.00680943 0.00680223 0.00677806 0.00674277 0.00667489 0.00668345 0.00675091 0.00678573 0.00679269 0.00675835 0.00669134 0.00669869 0.00676525 0.00679909 0.00682181 0.00684247 0.00686374 0.00688628 0.00688899 0.00686735 0.00684689 0.00684966 0.00686895 0.00688932 0.00688652 0.00686767 0.00684985 0.00683237 0.00683078 0.00682695 0.00680488 0.00677163 0.00670575 0.00671235 0.00677739 0.00680965 0.00681272 0.00678148 0.00671796 0.00672187 0.00678318 0.00681293 0.00683086 0.00684695 0.00686323 0.00688058 0.00689903 0.00691866 0.00693954 0.00696173 0.00698531 0.00701036 0.00703695 0.00706514 0.00704755 0.00702041 0.00699488 0.00697798 0.00700242 0.00702843 0.00700903 0.00698416 0.00696084 0.00693902 0.00695508 0.00697089 0.00694839 0.00692732 0.00690762 0.00689508 0.00691367 0.00693366 0.00691866 0.00689973 0.00688219 0.00687036 0.00688696 0.00690494 0.00692432 0.00694514 0.00696744 0.00699124 0.0069754 0.00695256 0.00693121 0.00691713 0.00693747 0.00695926 0.00689822 0.00691131 0.00689282 0.00687571 0.00685996 0.00684971 0.00686454 0.0068807 0.00683618 0.00684552 0.0068551 0.006866 0.00687782 0.00688922 0.00687206 0.00685608 0.00684106 0.00683302 0.00684711 0.00686185 0.00685112 0.00683714 0.00682399 0.00681016 0.00681949 0.00682646 0.00680954 0.00678151 0.0067226 0.00671765 0.00677506 0.00680293 0.00679281 0.00676221 0.00670288 0.00667594 0.00674073 0.00677768 0.0067989 0.0068145 0.00682742 0.00684099 0.00683193 0.00681845 0.00680441 0.00679423 0.00680953 0.00682331 0.00676821 0.00678508 0.00675704 0.00671043 0.0066416 0.00661501 0.00666955 0.00673445 0.00651856 0.00655582 0.00658699 0.00661226 0.0066231 0.00662217 0.00661611 0.00660857 0.00660078 0.0065935 0.00658602 0.00657811 0.00656983 0.00656089 0.00655117 0.0065406 0.00652917 0.0065169 0.0065038 0.00648991 0.00647523 0.0064598 0.00644362 0.00642674 0.00640917 0.00639094 0.00637209 0.00635265 0.00633266 0.00631216 0.00620119 0.00624905 0.00626947 0.00622134 0.00624105 0.00628935 0.00630881 0.00626028 0.00627899 0.00632797 0.00634664 0.00629714 0.0063147 0.00636477 0.00638233 0.00633163 0.00634791 0.00639929 0.00641562 0.0063635 0.00637839 0.00643128 0.00644625 0.00639254 0.00640594 0.00646051 0.00647401 0.00641856 0.00643038 0.00648675 0.00649869 0.00644137 0.00645154 0.00650985 0.00652025 0.00646096 0.00646986 0.00653016 0.00653985 0.00647825 0.00648662 0.00655019 0.00656258 0.00649591 0.0065068 0.00657893 0.00660168 0.00652047 0.00653659 0.00663071 0.00666111 0.00655085 0.00655486 0.00668186 0.00668913 0.00654591 0.0065422 0.00669796 0.00670812 0.00658466 0.0181632 0.0245575 0.0161408 0.0227233 0.0168265 0.0433594 0.033414 0.0379197 0.0361397 0.0376785 0.0375358 0.0366219 0.0510347 0.0233051 0.0467017 0.0525059 0.0293949 0.0593348 0.0772863 0.0862377 0.116368 0.125621 0.08987 0.099622 0.0116368 0.0117714 0.0138334 0.013506 0.0118167 0.0118975 0.0133312 0.0148089 0.0154039 0.013827 0.0163485 0.00653721 0.017569 0.0153264 0.0218512 0.00751685 0.0077146 0.00732008 0.00701727 0.00683072 0.00673692 0.00669813 0.0066905 0.00669835 0.0067149 0.00673478 0.00675471 0.00677478 0.00679546 0.00681687 0.00683865 0.00686094 0.00688367 0.00690681 0.00693031 0.00695411 0.00697818 0.00700246 0.00702691 0.00705148 0.00707611 0.00710076 0.00712536 0.00714987 0.00717425 0.00719843 0.00722237 0.00724602 0.00726933 0.00729227 0.00731478 0.00733684 0.0073584 0.00737939 0.0073998 0.0074196 0.00743872 0.00745717 0.00747492 0.00749193 0.00750817 0.00752339 0.007538 0.00755226 0.0075663 0.00758147 0.00760238 0.00763169 0.00767565 0.00771747 0.00775478 0.00774222 0.00775551 0.00788034 ) ; boundaryField { bottomEmptyFaces { type empty; } topEmptyFaces { type empty; } inlet { type zeroGradient; } outlet { type zeroGradient; } walls { type zeroGradient; } rightWall { type zeroGradient; } symmetryLine { type symmetryPlane; } } // ************************************************************************* //
[ "mhoeper3234@gmail.com" ]
mhoeper3234@gmail.com
162160f51b3a9013ba959cc78761411c9b2794df
e44143f9c414193afc563971f73bd00e86b6ac69
/ABC058/C.cpp
37e62afb350463ce1ef7466153980da73fb16446
[]
no_license
Kotaro666-dev/atcoder
88b1452e43ee7ed0fa67d6e531d72012bbd995fb
91b23815e2b1d48edd9390b2b7c666ac2f23946e
refs/heads/master
2021-10-10T09:32:19.545393
2021-10-09T03:38:29
2021-10-09T03:38:29
240,242,377
0
0
null
null
null
null
UTF-8
C++
false
false
2,165
cpp
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* C.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: kkamashi <kkamashi@student.42tokyo.jp> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/06/15 21:56:21 by kkamashi #+# #+# */ /* Updated: 2020/06/15 22:13:55 by kkamashi ### ########.fr */ /* */ /* ************************************************************************** */ #include <bits/stdc++.h> #define PI 3.1415926535897 using namespace std; typedef long long ll; const int INF = 1000000000; const ll LINF = 1000000000000000000; //1e18 const double EPS = 1e-10; int main(void) { int N; cin >> N; // vector<string> S(N); vector<vector<int>> map(N, vector<int>(26)); string str; int index; for (int i = 0; i < N; i++) { cin >> str; for (int j = 0; j < str.size(); j++) { index = str[j] - 'a'; map[i][index]++; } } // debug // for (int i = 0; i < N; i++) // { // for (int j = 0; j < 26; j++) // { // printf("%d ", map[i][j]); // } // printf("\n"); // } string ans = ""; int mn; for (int i = 0; i < 26; i++) { mn = INF; for (int j = 0; j < N; j++) { if (map[j][i] == 0) { break; } else { mn = min(mn, map[j][i]); } if (j == N - 1) { for (int k = 0; k < mn; k++) { ans += 'a' + i; } } } } cout << ans << endl; return (0); }
[ "kotaro0726@gmail.com" ]
kotaro0726@gmail.com
1da7b86d307af93fc6ae34d17de4fa05c3abd7a2
856dc6ae29ee6e01c2b4376120a23a1b70bd0a2d
/cs124/week6/project2.cpp
aca2090931da77cfc58406ff76f30bd169c5cda3
[]
no_license
Jordan-Jarvis/school-stuff
24872adb217c81e08ffccec582568f9736076039
7436d3094e48c8e98abc5e7c80c6e47e6aecd789
refs/heads/master
2023-03-01T12:07:30.757857
2021-02-12T21:54:36
2021-02-12T21:54:36
117,884,422
0
0
null
null
null
null
UTF-8
C++
false
false
6,729
cpp
/*********************************************************************** * Program: * Project 07, Calendar * Sister Hansen, CS124 * Author: * Jordan Jarvis * Summary: * This program displays a calendar table for the given month number * and year. * * Estimated: 0.0 hrs * Actual: 0.0 hrs * I had a bit of trouble with the loop for computeOffset * it kept giving me the wrong type of count. So i had to get * creative. ************************************************************************/ #include <iostream> #include <iomanip> using namespace std; //prototypes int getMonth(int month); int getYear(int year); int computeOffset(int year, int month); int numDaysMonth(int year, int month); int isLeapYear(int year); void display(int year, int month, int numDays, int offset); /********************************************************************** * This function will call all the functions needed to make a calendar * for any given month and year. ***********************************************************************/ int main() { // initialize variables int numDays; int offset; int month; int year; // call functions month = getMonth(month); year = getYear(year); numDays = numDaysMonth(year, month); offset = computeOffset(year, month); display(year, month, numDays, offset); return 0; } /*********************************************************************** * Gets the month number. **********************************************************************/ int getMonth(int month) { cout << "Enter a month number: "; cin >> month; while ( month < 1 || month > 12) // error correction { cout << "Month must be between 1 and 12.\n" << "Enter a month number: "; cin >> month; } return month; } /*********************************************************************** * Get the year **********************************************************************/ int getYear(int year) { cout << "Enter year: "; cin >> year; while ( year < 1753) { cout << "Year must be 1753 or later.\n" << "Enter year: "; cin >> year; } return year; } /*********************************************************************** * Computes offset based on the year and month by checking if it is a * leap year and adding 2 to the offset instead of the typical 1 per * year, it then calculates the offset for the month and adds the two * together returning offset mod 7 for 7 days **********************************************************************/ int computeOffset(int year, int month) { int offset = 0; int count = year - 1; for ( int iYear = 1753; iYear <= count; iYear++) { offset = ( offset + isLeapYear(iYear) - 365); if (offset == 7) offset = 0; offset++; } for ( int iMonth = 1; iMonth < month; iMonth++) offset = ( offset + numDaysMonth(year, iMonth)); return offset % 7; } /*********************************************************************** * Calculates the number of days in the given month. **********************************************************************/ int numDaysMonth(int year, int month) { int daysMonth; // sets variable to amount of days in given month if ( month == 1) daysMonth = 31; else if ( month == 2) { if (isLeapYear(year) == 366) // check for leap year daysMonth = 29; else daysMonth = 28; } else if ( month == 3) daysMonth = 31; else if ( month == 4) daysMonth = 30; else if ( month == 5) daysMonth = 31; else if ( month == 6) daysMonth = 30; else if ( month == 7) daysMonth = 31; else if ( month == 8) daysMonth = 31; else if ( month == 9) daysMonth = 30; else if ( month == 10) daysMonth = 31; else if ( month == 11) daysMonth = 30; else if ( month == 12) daysMonth = 31; return daysMonth; } /*********************************************************************** * Determines if given year is a leap year. **********************************************************************/ int isLeapYear(int year) { if ( year % 4 != 0) // checks for leap year using math return 365; if (year % 100 != 0) return 366; if (year % 400 == 0) return 366; return 365; } /*********************************************************************** * Displays the calendar table. **********************************************************************/ void display(int year, int month, int numDays, int offset) { int dayOfWeek = 0; // initialize variables needed. cout << endl; if ( month == 1) cout << "January"; // display the proper month else if ( month == 2) cout << "February"; else if ( month == 3) cout << "March"; else if ( month == 4) cout << "April"; else if ( month == 5) cout << "May"; else if ( month == 6) cout << "June"; else if ( month == 7) cout << "July"; else if ( month == 8) cout << "August"; else if ( month == 9) cout << "September"; else if ( month == 10) cout << "October"; else if ( month == 11) cout << "November"; else if ( month == 12) cout << "December"; cout << ", " << year << "\n"; // Display month header cout << " Su Mo Tu We Th Fr Sa\n"; // Set variables // correct for blank first row if ( offset == 6 ) offset = -1; // set offset to work from monday instead of sunday offset = ( offset + 1 ); // loop rows until the program has counted all days // up to the number specified in numDays for ( int dayOfMonth = -offset; dayOfMonth <= numDays; dayOfMonth++ ) { // loop for columns, allowing up to 7 // and displaying the day of the month if ( dayOfMonth > 0 ) cout << setw (4) << dayOfMonth; // correct for offset being 0 else if ( dayOfMonth == 0 ); // add blank space if day of month is negative else cout << " "; // add a day to the week before the loop starts over dayOfWeek++; // end the columns at 7 days if ( dayOfWeek == 8 ) { cout << "\n"; dayOfWeek = 1; } } // another way to assure columns are at 7 days if ( dayOfWeek >= 2 && dayOfWeek <= 7 ) cout << "\n"; }
[ "noreply@github.com" ]
Jordan-Jarvis.noreply@github.com
7e600c1d08b17889d747004660ab3d47015adae4
f572dff0c0f45105c386074840e038097e0da0c1
/Algo_E7.cpp
6b1c4d7e6023d3a6a7688e0d446bbe88215f83ce
[]
no_license
SehoonKwon/MultiCamp
1540d1ab0d8426f375f238209a8f145a7bbdcd2e
a0b77efa16c3c7c01cddd213e237e3e5f9f65d92
refs/heads/master
2022-12-11T22:22:49.844609
2020-09-08T11:47:19
2020-09-08T11:47:19
293,792,867
0
0
null
null
null
null
UTF-8
C++
false
false
1,904
cpp
//#include <iostream> //#include <algorithm> //#include <cstring> //#include <vector> //using namespace std; // //#define MAX 987654321 // //char Array[5][9]; //int dx[] = { 0,0,-1,1 }; //int dy[] = { 1,-1,0,0 }; //int MIN_P = MAX, MIN = MAX; // //struct point //{ // int x; // int y; //}; // //vector<point> v; // //void input() //{ // for (int i = 0; i < 5; i++) // for (int j = 0; j < 9; j++) // cin >> Array[i][j]; // //} // //int check_pin() //{ // int cnt = 0; // for (int i = 0; i < 5; i++) // for (int j = 0; j < 9; j++) // if (Array[i][j] == 'o') cnt++; // // return cnt; //} // //int isP(int X, int Y, int k) //{ // int nx = X + dx[k]; // int ny = Y + dy[k]; // int nnx = X + 2 * dx[k]; // int nny = Y + 2 * dy[k]; // // if(nx > -1 && nx < 9 && ny > -1 && ny < 5 && nnx > -1 && nnx < 9 && nny > -1 && nny < 5) // if (Array[ny][nx] == 'o' && Array[nny][nnx] == '.') return 1; // // return 0; //} // //void DFS(int cnt) //{ // for (int i = 0; i < 5; i++) // { // for (int j = 0; j < 9; j++) // { // if (Array[i][j] == 'o') // { // for (int k = 0; k < 4; k++) // { // if (isP(j, i, k)) // { // Array[i][j] = '.'; // Array[i + dy[k]][j + dx[k]] = '.'; // Array[i + 2 * dy[k]][j + 2 * dx[k]] = 'o'; // DFS(cnt + 1); // // Array[i][j] = 'o'; // Array[i + dy[k]][j + dx[k]] = 'o'; // Array[i + 2 * dy[k]][j + 2 * dx[k]] = '.'; // } // } // } // } // } // // if (MIN_P > check_pin()) // { // MIN_P = check_pin(); // MIN = cnt; // } // // return; //} // //void solve() //{ // DFS(0); // // cout << MIN_P << " " << MIN << endl; //} // //int main() //{ // int T; // cin >> T; // for (int num = 1; num < T + 1; num++) // { // v.clear(); // MIN = MAX; // MIN_P = MAX; // // input(); // solve(); // } // // return 0; //}
[ "noreply@github.com" ]
SehoonKwon.noreply@github.com
d7a5b0c3a1551944cb39601ea916120b841db00a
de5e094c678b91959915ae6e33e77df11c443c40
/SDA Homework/Study Samples/Data Structures/MergeSortedQueues.cpp
09f8cdcd3e76e3bdd4635c3033d77358ee1161b7
[]
no_license
Fluctuationqt/DSAHomework
497afde3f15ee0093492ab5d9fdc6170e3e2a1ad
3dd538f514ae6bbae5e98a5a7f291b1708ba7ffc
refs/heads/master
2020-08-08T01:47:43.282887
2019-10-08T15:05:22
2019-10-08T15:05:22
213,664,791
0
0
null
null
null
null
UTF-8
C++
false
false
3,630
cpp
// DynamicStack.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include "Stack.hpp" #include "Queue.hpp" #include <sstream> #include "windows.h" // Q1: 2 3 5 10 // Q2: 1 4 6 // res: 1 2 3 4 5 6 10 // ########## Text color setters ############# HANDLE hConsole; void GetConsoleHandle() { hConsole = GetStdHandle(STD_OUTPUT_HANDLE); } void Red() { SetConsoleTextAttribute(hConsole, 12); } void Green() { SetConsoleTextAttribute(hConsole, 10); } void Blue() { SetConsoleTextAttribute(hConsole, 9); } void White() { SetConsoleTextAttribute(hConsole, 7); } void ClearScreen(int pause) { Sleep(pause); system("CLS"); } // ########################################## // Algorithm 1 LQueue<int> mergeSortedQueues(LQueue<int> Q1, LQueue<int>Q2) { LQueue<int> Qres; int q1, q2; std::cout << "Q1_front, Q2_front" << std::endl << "-----------------"<<std::endl; while (!Q1.isEmpty() && !Q2.isEmpty()) { Q1.head(q1); Q2.head(q2); std::cout << q1 << ", " << q2 << std::endl; if (q1 < q2) { Q1.pop(q1); std::cout << "pushing "<<q1<<" (first)"; Qres.push(q1); }else if (q2 < q1) { Q2.pop(q2); std::cout << "pushing " << q2<<" (second)"; Qres.push(q2); } else if (q2 == q1) { Q1.pop(q1); Qres.push(q1); Q2.pop(q2); Qres.push(q2); std::cout << "pushing " << q2 << " tow times (both)"; } std::cout << std::endl; } if (Q1.isEmpty() && !Q2.isEmpty()) { std::cout << "first queue is empty pushing rest of second queue" << std::endl; while (Q2.pop(q2)) Qres.push(q2); } else if (Q2.isEmpty() && !Q1.isEmpty()) { std::cout << "second queue is empty pushing rest of first queue" << std::endl; while (Q1.pop(q1)) Qres.push(q1); } std::cout << std::endl; return Qres; } // Algorithm 2 LQueue<int> makeUnique(LQueue<int> queue) { LQueue<int> Qres; int t1, t2; while (!queue.isEmpty()) { queue.pop(t1); bool hasNext = queue.head(t2); if (hasNext && t1 == t2) continue; Qres.push(t1); } return Qres; } // enter a queue from a line of numbers void EnterQueue(LQueue<int> & queue) { std::string line; std::getline(std::cin, line); std::istringstream iss(line); int enterNumber; while (iss >> enterNumber) queue.push(enterNumber); } // enter both queues (UI) void EnterQueues(LQueue<int> & Q1, LQueue<int> & Q2) { // Queue 1 Red(); std::cout << "Enter sorted numbers(ex: 1 5 10 15):"; EnterQueue(Q1); ClearScreen(0); White(); std::cout << "Good!"; ClearScreen(500); // Queue 2 Green(); std::cout << "Enter sorted numbers(ex: 2 4 15 20):"; EnterQueue(Q2); ClearScreen(5); std::cout << "Sweet!"; ClearScreen(500); White(); } // print both queues(UI) void PrintQueues(LQueue<int> & Q1, LQueue<int> & Q2) { // Queue 1 Red(); std::cout << "Q1 = [front| "; Q1.print(); std::cout << "|back]" << std::endl; // Queue 2 Green(); std::cout << "Q2 = [front| "; Q2.print(); std::cout << "|back]" << std::endl; // Empty Line std::cout << std::endl << std::endl; White(); } int main() { GetConsoleHandle(); LQueue<int> Q1, Q2; EnterQueues(Q1, Q2); PrintQueues(Q1, Q2); LQueue<int> res = mergeSortedQueues(Q1, Q2); Blue(); std::cout << "Result Queue 1: "; res.print(); std::cout << endl; LQueue<int> res2 = makeUnique(res); std::cout << "Result Queue 2: "; res2.print(); std::cout << std::endl; White(); system("pause"); return 0; }
[ "noreply@github.com" ]
Fluctuationqt.noreply@github.com
7d23b4bdea54edf6073326ad4b7fcc17aeca5e0c
5a1a2d4f583ff8403ac5ab6c5e2821d4fa01eaf4
/Important Code/spoj/segTreesumquery.cpp
9e7f3425541a4520f76fb2f5e190eb5f56c8244b
[]
no_license
thenullterminator/CCArchive
0bb29a87c46a13be514cef0fae0b98900f28e7ac
5b439bad603d9e025e66126262dfe96e177936c8
refs/heads/master
2020-08-30T00:43:12.296641
2020-01-05T11:43:37
2020-01-05T11:43:37
218,218,067
0
0
null
null
null
null
UTF-8
C++
false
false
1,377
cpp
#include <bits/stdc++.h> #define k 100010 using namespace std; int n; struct node{ long long mxprefix;// max prefix sum. long long mxsuffix;// max suffix sum. long long sum; // total sum. long long ans; } tree[k]; node combine(node a,node b){ node c; c.ans=max(max(a.ans,b.ans),a.mxsuffix+b.mxprefix); c.sum=a.sum+b.sum; c.mxprefix=max(a.sum+b.mxprefix,a.mxprefix); c.mxsuffix=max(b.sum+a.mxsuffix,b.mxsuffix); return c; } void build(){ for(int i=n-1;i>0;i--){ tree[i]=combine(tree[i<<1],tree[i<<1|1]); } } long long query(int l,int r){ node left,right; left.ans=left.sum=left.mxprefix=left.mxsuffix=INT_MIN; //Take special care over here. right.ans=right.sum=right.mxprefix=right.mxsuffix=INT_MIN;//Take special care over here. for(l+=n,r+=n;l<r;l>>=1,r>>=1){ if(l&1){left=combine(left,tree[l++]);} if(r&1){right=combine(tree[--r],right);} } node ans=combine(left,right); return ans.ans; } int main(void){ cin>>n; for(int i=0;i<n;i++){ int x; cin>>x; tree[i+n].ans=tree[i+n].mxprefix=tree[i+n].mxsuffix=tree[i+n].sum=x; } int m; cin>>m; build(); while(m--){ int l,r; cin>>l>>r; l--; cout<<query(l,r)<<endl; } return 0; }
[ "dazz2803@gmail.com" ]
dazz2803@gmail.com
3176616e11e8ce0667aaa45a1dd34a2c698a5fe7
d60fa37053a864b3d2e46c2d1b3d72b899743da9
/Geometry/CommonDetUnit/src/GeomDetType.cc
2f549d6184a35e321d06da100c7011103649cfaa
[]
no_license
ikrav/cmssw
ba4528655cc67ac8c549d24ec4a004f6d86c8a92
d94717c9bfaecffb9ae0b401b6f8351e3dc3432d
refs/heads/CMSSW_7_2_X
2020-04-05T23:37:55.903032
2014-08-15T07:56:46
2014-08-15T07:56:46
22,983,843
2
1
null
2016-12-06T20:56:42
2014-08-15T08:43:31
null
UTF-8
C++
false
false
1,229
cc
#include "Geometry/CommonDetUnit/interface/GeomDetType.h" using namespace GeomDetEnumerators; GeomDetType::GeomDetType( const std::string& n, SubDetector subdet) : theName(n), theSubDet(subdet) {} GeomDetType::~GeomDetType() {} bool GeomDetType::isBarrel() const { return (theSubDet == PixelBarrel || theSubDet == TIB || theSubDet == TOB || isDT() || theSubDet == RPCBarrel); } bool GeomDetType::isEndcap() const { return (!isBarrel()); } bool GeomDetType::isTrackerStrip() const { return (theSubDet == TIB || theSubDet == TOB || theSubDet == TID || theSubDet == TEC); } bool GeomDetType::isTrackerPixel() const { return (theSubDet == PixelBarrel || theSubDet == PixelEndcap); } bool GeomDetType::isTracker() const { return ( isTrackerStrip() || isTrackerPixel() ); } bool GeomDetType::isDT() const { return (theSubDet == DT) ; } bool GeomDetType::isCSC() const { return (theSubDet == CSC) ; } bool GeomDetType::isRPC() const { return (theSubDet == RPCBarrel || theSubDet == RPCEndcap) ; } bool GeomDetType::isGEM() const { return (theSubDet == GEM ) ; } bool GeomDetType::isMuon() const { return (theSubDet == DT || theSubDet == CSC || isRPC() || theSubDet == GEM) ; }
[ "giulio.eulisse@gmail.com" ]
giulio.eulisse@gmail.com
3cc6f7157bbc177993fec5fdeac6e60b705bde2e
c31f3bc0ca5c204642c531c488eec86f27765fd1
/generateRepresentativeProtein/Main.cpp
55242a7fd50a972e4e99fe7a0105bd8367c93e8f
[]
no_license
Gaoyitu/CONVERT
0675f812206ba497b14f1605a0c3fdd19b873cfb
f938c4daa8645aa8181fee842f37664517ad04c1
refs/heads/master
2020-09-25T12:40:50.042084
2019-12-07T04:44:28
2019-12-07T04:44:28
226,006,950
0
0
null
null
null
null
UTF-8
C++
false
false
3,637
cpp
#define _CRT_SECURE_NO_WARNINGS #include<iostream> #include<fstream> #include<iomanip> #include<set> #include<map> #include<unordered_set> #include"Preprocessing.h" #include"Needleman_Wunsch.h" #include<Windows.h> using namespace std; //The input file is a FASTA form file of protein sequences, and the output file contains representing protein sequences of all families. void generateRepresentativeProtein(string theNameOfInputFile, string theNameOfOutputFile); int main() { generateRepresentativeProtein("SCOP40Format.txt","SCOP40representativeProtein_1.txt"); generateRepresentativeProtein("SCOP95Format.txt", "SCOP95representativeProtein_1.txt"); generateRepresentativeProtein("SCOPe40Format.txt", "SCOPe40representativeProtein_1.txt"); generateRepresentativeProtein("SCOPe95Format.txt", "SCOPe95representativeProtein_1.txt"); system("pause"); return EXIT_SUCCESS; } void generateRepresentativeProtein(string theNameOfInputFile, string theNameOfOutputFile) { Preprocessing p; Needleman_Wunsch nw; string thePathOfOutputFile = "./" + theNameOfOutputFile; ofstream ofs(thePathOfOutputFile, ios::out); vector<string> allProteinId; vector<string> allSequencesInSameFamily; allProteinId = p.getTheAllFamilyIdInData(theNameOfInputFile);//put all family id in a vector vector<string> alignmentResultInSameFamily; string theAlignmentSequence; int theLengthOfShortestSequence; int theLengthOfLongthestSequence; int averageLength; for (int i = 0; i < allProteinId.size(); ++i) { allSequencesInSameFamily = p.getSequencesInSameFamily(allProteinId[i], theNameOfInputFile); if (allSequencesInSameFamily.size() > 1) { theLengthOfShortestSequence = p.getTheShortestSequenceInSameFamily(allSequencesInSameFamily).size(); theLengthOfLongthestSequence = p.getTheLengthestSequenceInSameFamily(allSequencesInSameFamily).size(); if (theLengthOfLongthestSequence - theLengthOfShortestSequence < 20) { theAlignmentSequence = p.getTheShortestSequenceInSameFamily(allSequencesInSameFamily); for (int j = 0; j < allSequencesInSameFamily.size(); ++j) { alignmentResultInSameFamily.push_back(nw.semiAlignmentResult(theAlignmentSequence, allSequencesInSameFamily[j])); } ofs << allProteinId[i] << endl; ofs << nw.generatePseudoProtein(alignmentResultInSameFamily) << endl; } else { averageLength = p.getTheAverageLengthOfSameFamilySequence(allSequencesInSameFamily); theAlignmentSequence = p.getTheSuitableAlignmentSequenceInSameFamily(allSequencesInSameFamily, averageLength, theLengthOfLongthestSequence, theLengthOfShortestSequence); for (int j = 0; j < allSequencesInSameFamily.size(); ++j) { if (allSequencesInSameFamily[j].size() >= theAlignmentSequence.size()) { alignmentResultInSameFamily.push_back(nw.semiAlignmentResult(theAlignmentSequence, allSequencesInSameFamily[j])); } else { alignmentResultInSameFamily.push_back(nw.alignmentResultAddGap(allSequencesInSameFamily[j], theAlignmentSequence)); } } ofs << allProteinId[i] << endl; ofs << nw.generatePseudoProtein(alignmentResultInSameFamily) << endl; } } else { ofs << allProteinId[i] << endl; ofs << allSequencesInSameFamily[0] << endl; } alignmentResultInSameFamily.clear(); allSequencesInSameFamily.clear(); vector<string>().swap(alignmentResultInSameFamily); vector<string>().swap(allSequencesInSameFamily); cout << "the " << allProteinId[i] <<" family has been finished."<< endl; } ofs.close(); }
[ "noreply@github.com" ]
Gaoyitu.noreply@github.com
3b9dfd40f6962eea067b521e09a73a023d92d92e
85e7114ea63a080c1b9b0579e66c7a2d126cffec
/SDK/SoT_BilgeRats_classes.hpp
929674e91a6f3f6661389f669f2e14d85070aaf2
[]
no_license
EO-Zanzo/SeaOfThieves-Hack
97094307d943c2b8e2af071ba777a000cf1369c2
d8e2a77b1553154e1d911a3e0c4e68ff1c02ee51
refs/heads/master
2020-04-02T14:18:24.844616
2018-10-24T15:02:43
2018-10-24T15:02:43
154,519,316
0
2
null
null
null
null
UTF-8
C++
false
false
639
hpp
#pragma once // Sea of Thieves (1.2.6) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "SoT_BilgeRats_structs.hpp" namespace SDK { //--------------------------------------------------------------------------- //Classes //--------------------------------------------------------------------------- // BlueprintGeneratedClass BilgeRats.BilgeRats_C // 0x0000 (0x0068 - 0x0068) class UBilgeRats_C : public UCompany { public: static UClass* StaticClass() { static auto ptr = UObject::FindObject<UClass>("BlueprintGeneratedClass BilgeRats.BilgeRats_C"); return ptr; } }; } #ifdef _MSC_VER #pragma pack(pop) #endif
[ "zp2kshield@gmail.com" ]
zp2kshield@gmail.com
c5a38c93de19d7c97a31e8bce05ddde1f50a16b0
5962694e44eaa5e7b21b49802a40c17a8c1d21ce
/bruteforce_excel/excel_loader.cc
40ff936a46181c16159506536e4ea0238210be9a
[ "MIT" ]
permissive
brock7/bruteforce_excel
fa3e96759a5f691ec37ca792240cd2488e4e4f18
a0749f66cef37674836d1b7a2eaeb4f28b463267
refs/heads/master
2021-01-18T06:16:43.228962
2015-04-03T15:28:31
2015-04-03T15:28:31
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,383
cc
// Copyright (c) 2015 jeonghun // // 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 "bruteforce_excel/excel_loader.h" #include <cstdint> excel_loader::excel_loader() { for (auto &id : id_) id = -1; CoInitializeEx(0, COINIT_MULTITHREADED); } excel_loader::~excel_loader() { uninit(); CoUninitialize(); } bool excel_loader::init() { if (init_ == false) { CComPtr<IDispatch> app_disp_ptr; HRESULT hr = create_excel_instance(&app_disp_ptr); if (SUCCEEDED(hr) && app_disp_ptr != nullptr) { id_[DISPID_APP_WORKBOOKS] = get_dispid(app_disp_ptr, L"Workbooks"); id_[DISPID_APP_QUIT] = get_dispid(app_disp_ptr, L"Quit"); } CComPtr<IDispatch> wbs_disp_ptr; if (id_[DISPID_APP_WORKBOOKS] && id_[DISPID_APP_QUIT]) { DISPPARAMS params = { 0 }; VARIANT result = { 0 }; VariantInit(&result); hr = app_disp_ptr->Invoke(id_[DISPID_APP_WORKBOOKS], IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_PROPERTYGET, &params, &result, nullptr, nullptr); if (SUCCEEDED(hr) && result.pdispVal != nullptr) { wbs_disp_ptr = result.pdispVal; result.pdispVal->Release(); } } if (wbs_disp_ptr != nullptr) { id_[DISPID_WBS_OPEN] = get_dispid(wbs_disp_ptr, L"Open"); id_[DISPID_WBS_CLOSE] = get_dispid(wbs_disp_ptr, L"Close"); } if (id_[DISPID_WBS_OPEN] && id_[DISPID_WBS_CLOSE]) { wbs_disp_ptr_ = wbs_disp_ptr; app_disp_ptr_ = app_disp_ptr; init_ = true; } } return init_; } void excel_loader::uninit() { if (init_) { DISPPARAMS params = { 0 }; VARIANT result = { 0 }; VariantInit(&result); if (wbs_disp_ptr_ != nullptr) { wbs_disp_ptr_->Invoke(id_[DISPID_WBS_CLOSE], IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &params, &result, nullptr, nullptr); wbs_disp_ptr_ = nullptr; } if (app_disp_ptr_ != nullptr) { app_disp_ptr_->Invoke(id_[DISPID_APP_QUIT], IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &params, &result, nullptr, nullptr); app_disp_ptr_ = nullptr; } init_ = false; } } bool excel_loader::set_file(const wchar_t *file) { return open_params_.set_filename(file); } bool excel_loader::try_open(const wchar_t *passwd) { bool success = false; if (init_ && passwd != nullptr) { VARIANT result = { 0 }; VariantInit(&result); open_params_.set_password(passwd); HRESULT hr = wbs_disp_ptr_->Invoke(id_[DISPID_WBS_OPEN], IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, open_params_, &result, nullptr, nullptr); if (SUCCEEDED(hr)) { result.pdispVal->Release(); success = true; } } return success; } HRESULT excel_loader::create_excel_instance(IDispatch** disp_pp) const { CLSID clsid = { 0 }; HRESULT hr = CLSIDFromProgID(L"Excel.Application", &clsid); if (SUCCEEDED(hr) && disp_pp != nullptr) { hr = CoCreateInstance(clsid, nullptr, CLSCTX_LOCAL_SERVER, IID_IDispatch, reinterpret_cast<void**>(disp_pp)); if (SUCCEEDED(hr)) { hr = OleRun(*disp_pp); } } return hr; } DISPID excel_loader::get_dispid(IDispatch* disp_ptr, const wchar_t *name) const { DISPID id = -1; if (disp_ptr != nullptr) { disp_ptr->GetIDsOfNames(IID_NULL, const_cast<wchar_t**>(&name), 1, LOCALE_USER_DEFAULT, &id); } return id; }
[ "jeonghun@outlook.com" ]
jeonghun@outlook.com
08242c719aa536445695ae9a74d4efa0b10380ac
cfeac52f970e8901871bd02d9acb7de66b9fb6b4
/generated/src/aws-cpp-sdk-greengrass/source/model/ListDeviceDefinitionsRequest.cpp
7143b6775ba96713cc2449323094ffcbfbd1c049
[ "Apache-2.0", "MIT", "JSON" ]
permissive
aws/aws-sdk-cpp
aff116ddf9ca2b41e45c47dba1c2b7754935c585
9a7606a6c98e13c759032c2e920c7c64a6a35264
refs/heads/main
2023-08-25T11:16:55.982089
2023-08-24T18:14:53
2023-08-24T18:14:53
35,440,404
1,681
1,133
Apache-2.0
2023-09-12T15:59:33
2015-05-11T17:57:32
null
UTF-8
C++
false
false
1,092
cpp
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/greengrass/model/ListDeviceDefinitionsRequest.h> #include <aws/core/utils/json/JsonSerializer.h> #include <aws/core/http/URI.h> #include <aws/core/utils/memory/stl/AWSStringStream.h> #include <utility> using namespace Aws::Greengrass::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws::Http; ListDeviceDefinitionsRequest::ListDeviceDefinitionsRequest() : m_maxResultsHasBeenSet(false), m_nextTokenHasBeenSet(false) { } Aws::String ListDeviceDefinitionsRequest::SerializePayload() const { return {}; } void ListDeviceDefinitionsRequest::AddQueryStringParameters(URI& uri) const { Aws::StringStream ss; if(m_maxResultsHasBeenSet) { ss << m_maxResults; uri.AddQueryStringParameter("MaxResults", ss.str()); ss.str(""); } if(m_nextTokenHasBeenSet) { ss << m_nextToken; uri.AddQueryStringParameter("NextToken", ss.str()); ss.str(""); } }
[ "sdavtaker@users.noreply.github.com" ]
sdavtaker@users.noreply.github.com
ccbed4d5a33bbe652efae34d9f471907fa812de2
cb8c337a790b62905ad3b30f7891a4dff0ae7b6d
/st-ericsson/multimedia/video/components/jpegdec/proxy/inc/JPEGDec_NmfMpc_ProcessingComponent.h
50f6c6190a17d881c900347b6ddcc16446ed2924
[]
no_license
CustomROMs/android_vendor
67a2a096bfaa805d47e7d72b0c7a0d7e4830fa31
295e660547846f90ac7ebe42a952e613dbe1b2c3
refs/heads/master
2020-04-27T15:01:52.612258
2019-03-11T13:26:23
2019-03-12T11:23:02
174,429,381
1
0
null
null
null
null
UTF-8
C++
false
false
6,011
h
/* * Copyright (C) ST-Ericsson SA 2010. All rights reserved. * This code is ST-Ericsson proprietary and confidential. * Any use of the code for whatever purpose is subject to * specific written permission of ST-Ericsson SA. */ #ifndef __JPEGDEC_PROCESSINGCOMP_H #define __JPEGDEC_PROCESSINGCOMP_H #include <stdio.h> #include "VFM_NmfHost_ProcessingComponent.h" #include "vfm_vdc_jpeg.idt" #include "jpegdec/arm_nmf/jpegdeccomparm.hpp" #include "jpegdec/arm_nmf/jpegdec_dual.hpp" class JPEGDec_Proxy; class JPEGDec_NmfMpc_ProcessingComponent: public VFM_NmfHost_ProcessingComponent, public jpegdec_arm_nmf_api_portSettingsDescriptor { virtual OMX_ERRORTYPE construct(void); virtual OMX_ERRORTYPE destroy(void); virtual OMX_ERRORTYPE applyConfig(OMX_INDEXTYPE nParamIndex,OMX_PTR pComponentConfigStructure); virtual OMX_ERRORTYPE sendCommand(OMX_COMMANDTYPE eCmd, OMX_U32 nData); virtual OMX_ERRORTYPE emptyThisBuffer(OMX_BUFFERHEADERTYPE* pBuffer); virtual OMX_ERRORTYPE fillThisBuffer(OMX_BUFFERHEADERTYPE* pBuffer); virtual OMX_ERRORTYPE allocateBuffer(OMX_U32 nPortIndex, OMX_U32 nBufferIndex, OMX_U32 nSizeBytes, OMX_U8 **ppData, void **bufferAllocInfo, void **portPrivateInfo); virtual OMX_ERRORTYPE useBufferHeader(OMX_DIRTYPE dir, OMX_BUFFERHEADERTYPE* pBuffer); virtual OMX_ERRORTYPE useBuffer(OMX_U32 nPortIndex, OMX_U32 nBufferIndex, OMX_BUFFERHEADERTYPE* pBufferHdr, void **portPrivateInfo); virtual OMX_ERRORTYPE freeBuffer(OMX_U32 nPortIndex, OMX_U32 nBufferIndex, OMX_BOOL bBufferAllocated, void *bufferAllocInfo, void *portPrivateInfo); virtual OMX_ERRORTYPE retrieveConfig(OMX_INDEXTYPE nConfigIndex, OMX_PTR pComponentConfigStructure) ; void jpegdec_nmfmpc_assert(OMX_ERRORTYPE omxError, OMX_U32 line, OMX_BOOL isFatal); private: OMX_ERRORTYPE allocateRequiredMemory(); /// @brief Prepare data to configure the algorithm /// /// @todo clean this function with clean data structure OMX_ERRORTYPE configureAlgo(JPEGDec_Proxy *jpegdec); void processingInit(); OMX_ERRORTYPE JPEG_Proxy_PortSettingsChangedNotify(OMX_PARAM_PORTDEFINITIONTYPE *portDef); OMX_ERRORTYPE updateOutputPortSettings(OMX_INDEXTYPE nParamIndex, const OMX_PARAM_PORTDEFINITIONTYPE *portDef); OMX_ERRORTYPE detectPortSettingsAndNotify(OMX_PARAM_PORTDEFINITIONTYPE portDef); public: JPEGDec_NmfMpc_ProcessingComponent(ENS_Component &enscomp); virtual ~JPEGDec_NmfMpc_ProcessingComponent(); virtual void portSettings(void* portDef); void initiatePortSettingsChange(OMX_PARAM_PORTDEFINITIONTYPE *portDef); OMX_ERRORTYPE errorRecoveryDestroyAll(void); protected: /// @brief Register the stubs and skels from ARM to DSP for the internal interfaces of the /// NMF Composite that is instantiated. This may be empty for full-sw implementation virtual void registerStubsAndSkels(void); /// @brief Unregister the stubs and skels from ARM to DSP for the internal interfaces of the /// NMF Composite that is instantiated. This may be empty for full-sw implementation virtual void unregisterStubsAndSkels(void); /// @brief Create the codec and initialize the member mCodec virtual OMX_ERRORTYPE codecCreate(OMX_U32 domainId); /// @brief Destroy the codec and initialize the member mCodec virtual void codecDestroy(void); /// @brief Instantiate the specific interfaces between the proxy and the ddep. /// It includes the interface emptyThisBuffer / FillThisBuffer, as well as specific /// interfaces. virtual OMX_ERRORTYPE codecInstantiate(void); /// @brief Start the NMF component. This may be empty in the specific implementation, /// apart if any specific actions has to be taken. virtual OMX_ERRORTYPE codecStart(void); /// @brief Stop the NMF component. This may be empty in the specific implementation, /// apart if any specific actions has to be taken. virtual OMX_ERRORTYPE codecStop(void); /// @brief Configure the NMF component. This may be empty in the specific implementation, /// apart if any specific actions has to be taken. virtual OMX_ERRORTYPE codecConfigure(void); /// @brief Deinstantiate the specific interfaces between the proxy and the ddep. /// It includes the interface emptyThisBuffer / FillThisBuffer, as well as specific /// interfaces. virtual OMX_ERRORTYPE codecDeInstantiate(void); /// @todo to document virtual void sendConfigToCodec(); virtual OMX_ERRORTYPE doSpecificEventHandle_cb(OMX_EVENTTYPE event, OMX_U32 nData1, OMX_U32 nData2); // Data Members private: JPEGDec_Proxy *pProxyComponent; OMX_U8 memoryAllocated; Ijpegdec_arm_nmf_api_memoryRequirements iProvideMemory; Ijpegdec_arm_nmf_api_setConfig iSetConfig; Ijpegdec_arm_nmf_api_setParam IsetParamRef; Ijpegdec_arm_nmf_api_computeARMLoad icomputeARMLoad; Ijpegdec_arm_nmf_api_sendmemoryContext iSendContext; /// @brief Variable to specify channel ID allocated by Resource Manager OMX_U32 mChannelId; /*! Buffer descriptor for Debug buffer */ ts_ddep_buffer_descriptor mDebugBufferDesc; /*! Memory Handle for Debug buffer */ //t_cm_memory_handle mDebugBufferHandle; /*! Buffer descriptor for Param buffer */ ts_ddep_buffer_descriptor mParamBufferDesc; /*! Memory Handle for Param buffer */ //t_cm_memory_handle mParamBufferHandle; /*! Buffer descriptor for Param buffer */ ts_ddep_buffer_descriptor mLinkListBufferDesc; /*! Memory Handle for Param buffer */ //t_cm_memory_handle mLinkListParamBufferHandle; /*! Memory Handle for Line buffer : internal buffer required by FW */ //t_cm_memory_handle mLineBufferHandle; /*! Buffer descriptor for Line buffer */ ts_ddep_buffer_descriptor mLineBufferDesc; ts_ddep_buffer_descriptor mHuffMemoryDesc; OMX_BOOL isMemoryAllocated; void* mpc_vfm_mem_ctxt; OMX_BOOL fullDVFSSet; }; #endif //JPEGDEC_PROCESSINGCOMP_H
[ "xiangxin19960319@gmail.com" ]
xiangxin19960319@gmail.com
a8d849f01d627083c78157f32d3cd5f6392fbc0c
67ed24f7e68014e3dbe8970ca759301f670dc885
/win10.19042/SysWOW64/hnetmon.dll.cpp
ed85457f096b2b3d5fd7383548ed2bee6660fdb1
[]
no_license
nil-ref/dll-exports
d010bd77a00048e52875d2a739ea6a0576c82839
42ccc11589b2eb91b1aa82261455df8ee88fa40c
refs/heads/main
2023-04-20T21:28:05.295797
2021-05-07T14:06:23
2021-05-07T14:06:23
401,055,938
1
0
null
2021-08-29T14:00:50
2021-08-29T14:00:49
null
UTF-8
C++
false
false
99
cpp
#pragma comment(linker, "/export:InitHelperDll=\"C:\\Windows\\SysWOW64\\hnetmon.InitHelperDll\"")
[ "magnus@stubman.eu" ]
magnus@stubman.eu
46085b020bae069061a41e1444b111eccb6770a0
5f5bb4fe58ca6c9758e5ecd4f1acd7f3af7a41a4
/cses/tree-algorithms/path-queries.cpp
646f769e3c8333654a6180ec2b98a00233b6afd7
[ "MIT" ]
permissive
tysm/cpsols
61a93de55dbeb2d92d92c80681d6615521d3d0ba
262212646203e516d1706edf962290de93762611
refs/heads/master
2023-03-10T01:04:39.409948
2021-02-23T21:49:55
2021-02-23T21:49:55
202,269,911
4
0
null
null
null
null
UTF-8
C++
false
false
1,083
cpp
#include <cpplib/stdinc.hpp> #include <cpplib/data-structure/tree/segment-tree.hpp> int dfs(vvi &adj, vi &values, vi &t, vi &tr, vi &ntoi, int p, int u, int idx, int acc){ t[idx] = acc + values[u]; ntoi[u] = idx; int r = idx; for(int v:adj[u]){ if(v == p) continue; r = dfs(adj, values, t, tr, ntoi, u, v, r+1, t[idx]); } return tr[idx] = r; } int32_t main(){ // https://cses.fi/problemset/task/1138 desync(); int n, q; cin >> n >> q; vi v(n+1); for(int i=1; i<=n; ++i) cin >> v[i]; vvi adj(n+1); for(int i=1; i<n; ++i){ int a, b; cin >> a >> b; adj[a].pb(b); adj[b].pb(a); } vi t(n), tr(n), ntoi(n+1); dfs(adj, v, t, tr, ntoi, -1, 1, 0, 0); SegTree<RSumQ, int> st(t); while(q--){ int op, s, x; cin >> op >> s; if(op == 1){ cin >> x; st.update(ntoi[s], tr[ntoi[s]], x-v[s]); v[s] = x; } else cout << st.query(ntoi[s]) << endl; } return 0; }
[ "ysm.thalles@gmail.com" ]
ysm.thalles@gmail.com
d50af983676d44ae15069bb4ec1276a199964817
1ac0c3219e44db71950e79acac8ecf370f8e2a7b
/src/components/password_manager/core/browser/password_manager_constants.cc
5729162dea99e3d10dcd7c0a0bb6476deea71046
[ "BSD-3-Clause" ]
permissive
yeahhhhhhhh/chromium_quic
5383c74ca3665c4639899a2aa5741ca2efa39ffb
217d9cdd739b3cc9a440ecea38813c0ce85ef251
refs/heads/master
2022-12-08T04:12:54.583056
2019-08-19T15:03:52
2019-08-19T15:03:52
203,185,892
1
3
null
2022-11-19T05:44:25
2019-08-19T14:09:51
null
UTF-8
C++
false
false
810
cc
// Copyright 2015 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. #include "components/password_manager/core/browser/password_manager_constants.h" namespace password_manager { const base::FilePath::CharType kAffiliationDatabaseFileName[] = FILE_PATH_LITERAL("Affiliation Database"); const base::FilePath::CharType kLoginDataFileName[] = FILE_PATH_LITERAL("Login Data"); const char kPasswordManagerAccountDashboardURL[] = "https://passwords.google.com"; const char kPasswordManagerCheckupURL[] = "https://passwords.google.com/checkup/start"; const char kPasswordManagerHelpCenterSmartLock[] = "https://support.google.com/accounts?p=smart_lock_chrome"; } // namespace password_manager
[ "root@vultr.guest" ]
root@vultr.guest