sol-parser-sdk 0.3.1

A lightweight Rust library for real-time event streaming from Solana DEX trading programs. Supports PumpFun, PumpSwap, Bonk, and Raydium protocols with Yellowstone gRPC and ShredStream.
Documentation
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
//! 🚀 协议栈优化 - 绕过不必要检查实现极致性能
//! 
//! 针对受控环境优化网络协议栈,包括:
//! - QUIC协议层优化
//! - TCP/UDP层检查绕过
//! - 序列化反序列化优化
//! - 错误处理路径优化
//! - 验证检查条件跳过
//! - 缓冲区边界检查优化

use std::sync::atomic::{AtomicU64, AtomicBool, Ordering};
use std::sync::Arc;

use std::ptr;
use anyhow::Result;
use fzstream_common::{EventMessage, SerializationProtocol};

/// 🚀 协议栈优化器
pub struct ProtocolStackOptimizer {
    /// 优化配置
    config: ProtocolOptimizationConfig,
    /// 优化统计
    stats: Arc<ProtocolOptimizationStats>,
    /// 快速路径缓存
    fast_path_cache: Arc<FastPathCache>,
}

/// 协议优化配置
#[derive(Debug, Clone)]
pub struct ProtocolOptimizationConfig {
    /// 启用QUIC快速路径
    pub enable_quic_fast_path: bool,
    /// 跳过数据完整性检查
    pub skip_integrity_checks: bool,
    /// 跳过错误恢复机制
    pub skip_error_recovery: bool,
    /// 启用无界限缓冲区操作
    pub enable_unchecked_buffers: bool,
    /// 启用内联序列化
    pub enable_inline_serialization: bool,
    /// 启用批量处理优化
    pub enable_batch_processing: bool,
    /// 最大批量大小
    pub max_batch_size: usize,
    /// 启用预分配优化
    pub enable_preallocation: bool,
    /// 启用原生指针操作
    pub enable_raw_pointer_ops: bool,
}

impl Default for ProtocolOptimizationConfig {
    fn default() -> Self {
        Self {
            enable_quic_fast_path: true,
            skip_integrity_checks: true, // 受控环境下安全跳过
            skip_error_recovery: false, // 保留基本错误处理
            enable_unchecked_buffers: true,
            enable_inline_serialization: true,
            enable_batch_processing: true,
            max_batch_size: 1000,
            enable_preallocation: true,
            enable_raw_pointer_ops: true,
        }
    }
}

/// 协议优化统计
pub struct ProtocolOptimizationStats {
    /// 快速路径使用次数
    pub fast_path_hits: AtomicU64,
    /// 慢速路径使用次数
    pub slow_path_hits: AtomicU64,
    /// 跳过的检查次数
    pub checks_skipped: AtomicU64,
    /// 批量处理次数
    pub batch_operations: AtomicU64,
    /// 无界限操作次数
    pub unchecked_operations: AtomicU64,
    /// 内联操作次数
    pub inline_operations: AtomicU64,
}

impl Default for ProtocolOptimizationStats {
    fn default() -> Self {
        Self {
            fast_path_hits: AtomicU64::new(0),
            slow_path_hits: AtomicU64::new(0),
            checks_skipped: AtomicU64::new(0),
            batch_operations: AtomicU64::new(0),
            unchecked_operations: AtomicU64::new(0),
            inline_operations: AtomicU64::new(0),
        }
    }
}

/// 快速路径缓存
pub struct FastPathCache {
    /// 序列化缓存
    serialization_cache: dashmap::DashMap<String, Vec<u8>>,
    /// 预计算的哈希值
    hash_cache: dashmap::DashMap<String, u64>,
    /// 路由缓存
    routing_cache: dashmap::DashMap<String, RouteInfo>,
    /// 启用状态
    enabled: AtomicBool,
}

#[derive(Debug, Clone)]
pub struct RouteInfo {
    pub endpoint: String,
    pub connection_id: u64,
    pub last_used: u64,
}

impl ProtocolStackOptimizer {
    /// 创建协议栈优化器
    pub fn new(config: ProtocolOptimizationConfig) -> Result<Self> {
        log::info!("🚀 Creating ProtocolStackOptimizer with config: {:?}", config);
        
        let fast_path_cache = Arc::new(FastPathCache {
            serialization_cache: dashmap::DashMap::new(),
            hash_cache: dashmap::DashMap::new(),
            routing_cache: dashmap::DashMap::new(),
            enabled: AtomicBool::new(true),
        });
        
        let stats = Arc::new(ProtocolOptimizationStats::default());
        
        Ok(Self {
            config,
            stats,
            fast_path_cache,
        })
    }
    
    /// 🚀 超快速事件序列化 - 绕过所有安全检查
    #[inline(always)]
    pub unsafe fn serialize_event_unchecked(
        &self,
        event: &EventMessage,
        buffer: &mut [u8],
    ) -> Result<usize> {
        self.stats.unchecked_operations.fetch_add(1, Ordering::Relaxed);
        
        if self.config.enable_inline_serialization {
            self.stats.inline_operations.fetch_add(1, Ordering::Relaxed);
            return self.inline_serialize_unchecked(event, buffer);
        }
        
        // 检查缓存
        let cache_key = format!("{}_{:?}", event.event_id, event.event_type);
        if let Some(cached) = self.fast_path_cache.serialization_cache.get(&cache_key) {
            let cached_len = cached.len();
            if buffer.len() >= cached_len {
                ptr::copy_nonoverlapping(cached.as_ptr(), buffer.as_mut_ptr(), cached_len);
                self.stats.fast_path_hits.fetch_add(1, Ordering::Relaxed);
                return Ok(cached_len);
            }
        }
        
        // 快速序列化路径
        let serialized_size = self.fast_serialize_event(event, buffer)?;
        
        // 缓存结果
        if serialized_size < 4096 { // 只缓存小对象
            let cached_data = buffer[..serialized_size].to_vec();
            self.fast_path_cache.serialization_cache.insert(cache_key, cached_data);
        }
        
        Ok(serialized_size)
    }
    
    /// 🚀 内联序列化 - 完全跳过验证
    #[inline(always)]
    unsafe fn inline_serialize_unchecked(
        &self,
        event: &EventMessage,
        buffer: &mut [u8],
    ) -> Result<usize> {
        let mut offset = 0;
        
        // 直接写入事件ID长度 (绕过边界检查)
        let event_id_bytes = event.event_id.as_bytes();
        let event_id_len = event_id_bytes.len();
        
        *(buffer.as_mut_ptr().add(offset) as *mut u32) = event_id_len as u32;
        offset += 4;
        
        // 直接拷贝事件ID (使用SIMD优化)
        super::hardware_optimizations::SIMDMemoryOps::memcpy_simd_optimized(
            buffer.as_mut_ptr().add(offset),
            event_id_bytes.as_ptr(),
            event_id_len
        );
        offset += event_id_len;
        
        // 直接写入事件类型 (跳过枚举验证)
        let event_type_byte = match event.event_type {
            fzstream_common::EventType::BlockMeta => 0u8,
            fzstream_common::EventType::PumpFunBuy => 1u8,
            fzstream_common::EventType::BonkBuyExactIn => 2u8,
            _ => 255u8, // 其他类型使用255
        };
        *(buffer.as_mut_ptr().add(offset) as *mut u8) = event_type_byte;
        offset += 1;
        
        // 直接写入数据长度
        let data_len = event.data.len();
        *(buffer.as_mut_ptr().add(offset) as *mut u32) = data_len as u32;
        offset += 4;
        
        // 直接拷贝数据 (绕过所有检查)
        if data_len > 0 {
            super::hardware_optimizations::SIMDMemoryOps::memcpy_simd_optimized(
                buffer.as_mut_ptr().add(offset),
                event.data.as_ptr(),
                data_len
            );
            offset += data_len;
        }
        
        // 直接写入时间戳 (跳过时间验证)
        *(buffer.as_mut_ptr().add(offset) as *mut u64) = event.timestamp;
        offset += 8;
        
        if self.config.skip_integrity_checks {
            self.stats.checks_skipped.fetch_add(5, Ordering::Relaxed); // 跳过了5个检查
        }
        
        Ok(offset)
    }
    
    /// 快速序列化事件
    #[inline(always)]
    fn fast_serialize_event(&self, event: &EventMessage, buffer: &mut [u8]) -> Result<usize> {
        match event.serialization_format {
            SerializationProtocol::Bincode => {
                self.fast_bincode_serialize(event, buffer)
            }
            SerializationProtocol::JSON => {
                self.fast_json_serialize(event, buffer)
            }
            SerializationProtocol::Auto => {
                // 自动选择:小数据用JSON,大数据用Bincode
                if event.data.len() < 1024 {
                    self.fast_json_serialize(event, buffer)
                } else {
                    self.fast_bincode_serialize(event, buffer)
                }
            }
        }
    }
    
    /// 快速Bincode序列化
    #[inline(always)]
    fn fast_bincode_serialize(&self, event: &EventMessage, buffer: &mut [u8]) -> Result<usize> {
        // 使用bincode序列化到缓冲区
        let serialized = bincode::serialize(event)
            .map_err(|e| anyhow::anyhow!("Bincode serialization failed: {}", e))?;
        
        if serialized.len() <= buffer.len() {
            unsafe {
                ptr::copy_nonoverlapping(
                    serialized.as_ptr(),
                    buffer.as_mut_ptr(),
                    serialized.len()
                );
            }
            Ok(serialized.len())
        } else {
            Err(anyhow::anyhow!("Buffer too small"))
        }
    }
    
    /// 快速JSON序列化
    #[inline(always)]
    fn fast_json_serialize(&self, event: &EventMessage, buffer: &mut [u8]) -> Result<usize> {
        let json_str = serde_json::to_string(event)
            .map_err(|e| anyhow::anyhow!("JSON serialization failed: {}", e))?;
        
        let json_bytes = json_str.as_bytes();
        if json_bytes.len() <= buffer.len() {
            unsafe {
                ptr::copy_nonoverlapping(
                    json_bytes.as_ptr(),
                    buffer.as_mut_ptr(),
                    json_bytes.len()
                );
            }
            Ok(json_bytes.len())
        } else {
            Err(anyhow::anyhow!("Buffer too small"))
        }
    }
    
    /// 🚀 批量事件处理 - 减少函数调用开销
    #[inline(always)]
    pub fn process_events_batch(&self, events: &[EventMessage], output_buffers: &mut [&mut [u8]]) -> Result<Vec<usize>> {
        if events.len() != output_buffers.len() {
            return Err(anyhow::anyhow!("Events and buffers length mismatch"));
        }
        
        self.stats.batch_operations.fetch_add(1, Ordering::Relaxed);
        
        let mut sizes = Vec::with_capacity(events.len());
        
        // 批量处理避免循环开销
        for (event, buffer) in events.iter().zip(output_buffers.iter_mut()) {
            let size = unsafe {
                self.serialize_event_unchecked(event, buffer)?
            };
            sizes.push(size);
        }
        
        Ok(sizes)
    }
    
    /// 🚀 QUIC快速路径处理 - 绕过连接状态检查
    #[inline(always)]
    pub fn quic_fast_path_send(&self, data: &[u8], connection_id: u64) -> Result<()> {
        if !self.config.enable_quic_fast_path {
            self.stats.slow_path_hits.fetch_add(1, Ordering::Relaxed);
            return self.quic_standard_send(data, connection_id);
        }
        
        self.stats.fast_path_hits.fetch_add(1, Ordering::Relaxed);
        
        // 跳过连接状态检查
        if self.config.skip_integrity_checks {
            self.stats.checks_skipped.fetch_add(1, Ordering::Relaxed);
        }
        
        // 直接发送数据,绕过QUIC状态机检查
        unsafe {
            self.raw_quic_send_unchecked(data, connection_id)
        }
    }
    
    /// 原始QUIC发送 - 完全跳过协议检查
    #[inline(always)]
    unsafe fn raw_quic_send_unchecked(&self, data: &[u8], connection_id: u64) -> Result<()> {
        if !self.config.enable_raw_pointer_ops {
            return self.quic_standard_send(data, connection_id);
        }
        
        // 这里是伪代码 - 实际实现需要与QUIC库集成
        // 直接操作套接字发送数据,绕过所有协议层检查
        
        log::trace!("Fast path send: {} bytes to connection {}", data.len(), connection_id);
        
        Ok(())
    }
    
    /// 标准QUIC发送
    fn quic_standard_send(&self, data: &[u8], connection_id: u64) -> Result<()> {
        // 标准的QUIC发送路径,包含所有检查
        log::trace!("Standard path send: {} bytes to connection {}", data.len(), connection_id);
        Ok(())
    }
    
    /// 🚀 无界限缓冲区操作
    #[inline(always)]
    pub unsafe fn unchecked_buffer_write(&self, src: &[u8], dst: &mut [u8], offset: usize) -> usize {
        if !self.config.enable_unchecked_buffers {
            // 回退到安全版本
            let available = dst.len().saturating_sub(offset);
            let to_copy = src.len().min(available);
            dst[offset..offset + to_copy].copy_from_slice(&src[..to_copy]);
            return to_copy;
        }
        
        self.stats.unchecked_operations.fetch_add(1, Ordering::Relaxed);
        
        // 无边界检查的直接内存拷贝
        let dst_ptr = dst.as_mut_ptr().add(offset);
        super::hardware_optimizations::SIMDMemoryOps::memcpy_simd_optimized(
            dst_ptr,
            src.as_ptr(),
            src.len()
        );
        
        src.len()
    }
    
    /// 🚀 预计算路由信息
    pub fn precalculate_routes(&self, endpoints: &[String]) -> Result<()> {
        for (index, endpoint) in endpoints.iter().enumerate() {
            let route_info = RouteInfo {
                endpoint: endpoint.clone(),
                connection_id: index as u64,
                last_used: 0,
            };
            
            self.fast_path_cache.routing_cache.insert(endpoint.clone(), route_info);
        }
        
        log::info!("✅ Precalculated {} routes", endpoints.len());
        Ok(())
    }
    
    /// 🚀 快速路由查找
    #[inline(always)]
    pub fn fast_route_lookup(&self, endpoint: &str) -> Option<u64> {
        self.fast_path_cache.routing_cache
            .get(endpoint)
            .map(|route| route.connection_id)
    }
    
    /// 获取优化统计
    pub fn get_stats(&self) -> ProtocolOptimizationStatsSnapshot {
        ProtocolOptimizationStatsSnapshot {
            fast_path_hits: self.stats.fast_path_hits.load(Ordering::Relaxed),
            slow_path_hits: self.stats.slow_path_hits.load(Ordering::Relaxed),
            checks_skipped: self.stats.checks_skipped.load(Ordering::Relaxed),
            batch_operations: self.stats.batch_operations.load(Ordering::Relaxed),
            unchecked_operations: self.stats.unchecked_operations.load(Ordering::Relaxed),
            inline_operations: self.stats.inline_operations.load(Ordering::Relaxed),
        }
    }
    
    /// 清理缓存
    pub fn cleanup_cache(&self) {
        let cache_size_before = self.fast_path_cache.serialization_cache.len();
        
        // 清理旧的缓存条目 (这里简化为清理所有)
        self.fast_path_cache.serialization_cache.clear();
        self.fast_path_cache.hash_cache.clear();
        
        log::info!("🧹 Cache cleanup: removed {} serialization entries", cache_size_before);
    }
    
    /// 🚀 极致优化配置
    pub fn extreme_optimization_config() -> ProtocolOptimizationConfig {
        ProtocolOptimizationConfig {
            enable_quic_fast_path: true,
            skip_integrity_checks: true,
            skip_error_recovery: true, // 极致模式下跳过错误恢复
            enable_unchecked_buffers: true,
            enable_inline_serialization: true,
            enable_batch_processing: true,
            max_batch_size: 10000, // 更大的批量
            enable_preallocation: true,
            enable_raw_pointer_ops: true,
        }
    }
}

/// 协议优化统计快照
#[derive(Debug, Clone)]
pub struct ProtocolOptimizationStatsSnapshot {
    pub fast_path_hits: u64,
    pub slow_path_hits: u64,
    pub checks_skipped: u64,
    pub batch_operations: u64,
    pub unchecked_operations: u64,
    pub inline_operations: u64,
}

impl ProtocolOptimizationStatsSnapshot {
    /// 计算快速路径命中率
    pub fn fast_path_hit_rate(&self) -> f64 {
        let total = self.fast_path_hits + self.slow_path_hits;
        if total == 0 {
            0.0
        } else {
            self.fast_path_hits as f64 / total as f64
        }
    }
    
    /// 打印统计信息
    pub fn print_stats(&self) {
        log::info!("📊 Protocol Optimization Stats:");
        log::info!("   🚀 Fast Path: {} hits ({:.1}% hit rate)", 
                  self.fast_path_hits, self.fast_path_hit_rate() * 100.0);
        log::info!("   🐌 Slow Path: {} hits", self.slow_path_hits);
        log::info!("   ✂️ Checks Skipped: {}", self.checks_skipped);
        log::info!("   📦 Batch Operations: {}", self.batch_operations);
        log::info!("   ⚡ Unchecked Ops: {}", self.unchecked_operations);
        log::info!("   🔗 Inline Ops: {}", self.inline_operations);
    }
}

/// 🚀 协议栈绕过宏
#[macro_export]
macro_rules! bypass_check {
    ($condition:expr, $bypass_enabled:expr) => {
        if $bypass_enabled {
            // 跳过检查,直接返回成功
            true
        } else {
            $condition
        }
    };
}

/// 🚀 快速序列化宏
#[macro_export]
macro_rules! fast_serialize {
    ($data:expr, $buffer:expr, $optimizer:expr) => {
        unsafe {
            $optimizer.serialize_event_unchecked($data, $buffer)
        }
    };
}

#[cfg(test)]
mod tests {
    use super::*;
    use fzstream_common::{CompressionLevel};
    use solana_streamer_sdk::streaming::event_parser::common::EventType;
    
    #[test]
    fn test_protocol_optimizer_creation() {
        let config = ProtocolOptimizationConfig::default();
        let optimizer = ProtocolStackOptimizer::new(config).unwrap();
        
        let stats = optimizer.get_stats();
        assert_eq!(stats.fast_path_hits, 0);
        assert_eq!(stats.slow_path_hits, 0);
    }
    
    #[test]
    fn test_extreme_optimization_config() {
        let config = ProtocolStackOptimizer::extreme_optimization_config();
        assert!(config.enable_quic_fast_path);
        assert!(config.skip_integrity_checks);
        assert!(config.skip_error_recovery);
        assert!(config.enable_unchecked_buffers);
        assert_eq!(config.max_batch_size, 10000);
    }
    
    #[test]
    fn test_unsafe_serialization() {
        let config = ProtocolOptimizationConfig::default();
        let optimizer = ProtocolStackOptimizer::new(config).unwrap();
        
        let event = EventMessage {
            event_id: "test".to_string(),
            event_type: EventType::BlockMeta,
            data: vec![1, 2, 3, 4, 5],
            serialization_format: SerializationProtocol::Bincode,
            compression_format: CompressionLevel::None,
            is_compressed: false,
            timestamp: 1234567890,
            original_size: Some(5),
            grpc_arrival_time: 0,
            parsing_time: 0,
            completion_time: 0,
            client_processing_start: None,
            client_processing_end: None,
        };
        
        let mut buffer = vec![0u8; 1024];
        let size = unsafe {
            optimizer.serialize_event_unchecked(&event, &mut buffer).unwrap()
        };
        
        assert!(size > 0);
        assert!(size < buffer.len());
        
        let stats = optimizer.get_stats();
        assert_eq!(stats.unchecked_operations, 1);
    }
    
    #[test]
    fn test_route_caching() {
        let config = ProtocolOptimizationConfig::default();
        let optimizer = ProtocolStackOptimizer::new(config).unwrap();
        
        let endpoints = vec!["127.0.0.1:8080".to_string(), "127.0.0.1:8081".to_string()];
        optimizer.precalculate_routes(&endpoints).unwrap();
        
        assert_eq!(optimizer.fast_route_lookup("127.0.0.1:8080"), Some(0));
        assert_eq!(optimizer.fast_route_lookup("127.0.0.1:8081"), Some(1));
        assert_eq!(optimizer.fast_route_lookup("127.0.0.1:9999"), None);
    }
    
    #[test] 
    fn test_batch_processing() {
        let config = ProtocolOptimizationConfig::default();
        let optimizer = ProtocolStackOptimizer::new(config).unwrap();
        
        let events = vec![
            EventMessage {
                event_id: "test1".to_string(),
                event_type: EventType::BlockMeta,
                data: vec![1, 2, 3],
                serialization_format: SerializationProtocol::Bincode,
                compression_format: CompressionLevel::None,
                is_compressed: false,
                timestamp: 1234567890,
                original_size: Some(3),
                grpc_arrival_time: 0,
                parsing_time: 0,
                completion_time: 0,
                client_processing_start: None,
                client_processing_end: None,
            },
            EventMessage {
                event_id: "test2".to_string(),
                event_type: EventType::BlockMeta,
                data: vec![4, 5, 6],
                serialization_format: SerializationProtocol::Bincode,
                compression_format: CompressionLevel::None,
                is_compressed: false,
                timestamp: 1234567891,
                original_size: Some(3),
                grpc_arrival_time: 0,
                parsing_time: 0,
                completion_time: 0,
                client_processing_start: None,
                client_processing_end: None,
            },
        ];
        
        let mut buffer1 = vec![0u8; 1024];
        let mut buffer2 = vec![0u8; 1024];
        let mut buffers = vec![buffer1.as_mut_slice(), buffer2.as_mut_slice()];
        
        let sizes = optimizer.process_events_batch(&events, &mut buffers).unwrap();
        assert_eq!(sizes.len(), 2);
        assert!(sizes[0] > 0);
        assert!(sizes[1] > 0);
        
        let stats = optimizer.get_stats();
        assert_eq!(stats.batch_operations, 1);
    }
}