A flow-based approach for variant parametric types

被引:5
|
作者
Chin, Wei-Ngan [1 ]
Craciun, Florin [1 ]
Khoo, Siau-Cheng [1 ]
Popeea, Corneliu [1 ]
机构
[1] Natl Univ Singapore, Dept Comp Sci, Singapore 117548, Singapore
关键词
design; languages; theory; verification; genericity; flow analysis; variant parametric types; subtyping; constraints;
D O I
10.1145/1167515.1167498
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
A promising approach for type-safe generic codes in the object-oriented paradigm is variant parametric type, which allows covariant and contravariant subtyping on fields where appropriate. Previous approaches formalise variant type as a special case of the existential type system. In this paper, we present a new framework based on flow analysis and modular type checking to provide a simple but accurate model for capturing generic types. Our scheme stands to benefit from past (and future) advances in flow analysis and subtyping constraints. Furthermore, it fully supports casting for variant types with a special reflection mechanism, called cast capture, to handle objects with unknown types. We have built a constraint-based type checker and have proven its soundness. We have also successfully annotated a suite of Java libraries and client code with our flow-based variant type system.
引用
收藏
页码:273 / 290
页数:18
相关论文
共 50 条
  • [1] Control Flow-Based Malware Variant Detection
    Cesare, Silvio
    Xiang, Yang
    Zhou, Wanlei
    IEEE TRANSACTIONS ON DEPENDABLE AND SECURE COMPUTING, 2014, 11 (04) : 304 - 317
  • [2] An Interval-Based Inference of Variant Parametric Types
    Craciun, Florin
    Chin, Wei-Ngan
    He, Guanhua
    Qin, Shengchao
    PROGRAMMING LANGUAGES AND SYSTEMS, PROCEEDINGS, 2009, 5502 : 112 - +
  • [3] FACT: Flow-Based Approach for Connectivity Tracking\
    Schatzmann, Dominik
    Leinen, Simon
    Koegel, Jochen
    Muehlbauer, Wolfgang
    PASSIVE AND ACTIVE MEASUREMENT, 2011, 6579 : 214 - +
  • [4] DISCONTINUOUS FLOW ANALYSIS : A UNIQUE APPROACH TO FLOW-BASED TITRATIONS
    Cardwell, T. J.
    Cattrall, R. W.
    Petty, J. D.
    Scollary, G. R.
    ANALYTICAL SCIENCES, 1991, 7 : 639 - 640
  • [5] A flow-based approach for Trickbot banking trojan detection
    Gezer, Ali
    Warner, Gary
    Wilson, Clifford
    Shrestha, Prakash
    COMPUTERS & SECURITY, 2019, 84 : 179 - 192
  • [6] Similarity as a central approach to flow-based anomaly detection
    Drasar, Martin
    Vizvary, Martin
    Vykopal, Jan
    INTERNATIONAL JOURNAL OF NETWORK MANAGEMENT, 2014, 24 (04) : 318 - 336
  • [7] Entropy and flow-based approach for anomalous traffic filtering
    Zempoaltecatl-Piedras, Rafael
    Velarde-Alvarado, Pablo
    Torres-Roman, Deni
    3RD IBEROAMERICAN CONFERENCE ON ELECTRONICS ENGINEERING AND COMPUTER SCIENCE, CIIECC 2013, 2013, 7 : 360 - 369
  • [8] Flow-based accessibility measurement: The Place Rank approach
    Wang, Guihua
    Zhong, Yuanguang
    Teo, Chung-Piaw
    Liu, Qizhang
    TRANSPORTATION RESEARCH PART C-EMERGING TECHNOLOGIES, 2015, 56 : 335 - 345
  • [9] Modularized and Flow-Based Approach to Chatbot Design and Deployment
    Ma, Shang-Pin
    Ho, Ching-Ting
    JOURNAL OF INFORMATION SCIENCE AND ENGINEERING, 2018, 34 (05) : 1187 - 1201
  • [10] An improved approach for flow-based cloud point extraction
    Frizzarin, Rejane M.
    Rocha, Fabio R. P.
    ANALYTICA CHIMICA ACTA, 2014, 820 : 69 - 75