Class: Integer

Inherits:
Object
  • Object
show all
Defined in:
lib/ruzzy.rb

Overview

Hook Integer operations for tracing in SantizerCoverage

Instance Method Summary collapse

Instance Method Details

#/(other) ⇒ Object



111
112
113
114
# File 'lib/ruzzy.rb', line 111

def /(other)
  Ruzzy.c_trace_div8(other)
  ruzzy_divo(other)
end

#<(other) ⇒ Object



91
92
93
94
# File 'lib/ruzzy.rb', line 91

def <(other)
  Ruzzy.c_trace_cmp8(self, other)
  ruzzy_lt(other)
end

#<=(other) ⇒ Object



96
97
98
99
# File 'lib/ruzzy.rb', line 96

def <=(other)
  Ruzzy.c_trace_cmp8(self, other)
  ruzzy_le(other)
end

#<=>(other) ⇒ Object



86
87
88
89
# File 'lib/ruzzy.rb', line 86

def <=>(other)
  Ruzzy.c_trace_cmp8(self, other)
  ruzzy_spc(other)
end

#==(other) ⇒ Object



71
72
73
74
# File 'lib/ruzzy.rb', line 71

def ==(other)
  Ruzzy.c_trace_cmp8(self, other)
  ruzzy_eeql(other)
end

#===(other) ⇒ Object



76
77
78
79
# File 'lib/ruzzy.rb', line 76

def ===(other)
  Ruzzy.c_trace_cmp8(self, other)
  ruzzy_eeeql(other)
end

#>(other) ⇒ Object



101
102
103
104
# File 'lib/ruzzy.rb', line 101

def >(other)
  Ruzzy.c_trace_cmp8(self, other)
  ruzzy_gt(other)
end

#>=(other) ⇒ Object



106
107
108
109
# File 'lib/ruzzy.rb', line 106

def >=(other)
  Ruzzy.c_trace_cmp8(self, other)
  ruzzy_ge(other)
end

#div(other) ⇒ Object



116
117
118
119
# File 'lib/ruzzy.rb', line 116

def div(other)
  Ruzzy.c_trace_div8(other)
  ruzzy_div(other)
end

#divmod(other) ⇒ Object



121
122
123
124
# File 'lib/ruzzy.rb', line 121

def divmod(other)
  Ruzzy.c_trace_div8(other)
  ruzzy_divmod(other)
end

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


81
82
83
84
# File 'lib/ruzzy.rb', line 81

def eql?(other)
  Ruzzy.c_trace_cmp8(self, other)
  ruzzy_eql?(other)
end

#ruzzy_divObject



68
# File 'lib/ruzzy.rb', line 68

alias ruzzy_div div

#ruzzy_divmodObject



69
# File 'lib/ruzzy.rb', line 69

alias ruzzy_divmod divmod

#ruzzy_divoObject



67
# File 'lib/ruzzy.rb', line 67

alias ruzzy_divo /

#ruzzy_eeeqlObject



60
# File 'lib/ruzzy.rb', line 60

alias ruzzy_eeeql ===

#ruzzy_eeqlObject



59
# File 'lib/ruzzy.rb', line 59

alias ruzzy_eeql ==

#ruzzy_eql?Object



61
# File 'lib/ruzzy.rb', line 61

alias ruzzy_eql? eql?

#ruzzy_geObject



66
# File 'lib/ruzzy.rb', line 66

alias ruzzy_ge >=

#ruzzy_gtObject



65
# File 'lib/ruzzy.rb', line 65

alias ruzzy_gt >

#ruzzy_leObject



64
# File 'lib/ruzzy.rb', line 64

alias ruzzy_le <=

#ruzzy_ltObject



63
# File 'lib/ruzzy.rb', line 63

alias ruzzy_lt <

#ruzzy_spcObject



62
# File 'lib/ruzzy.rb', line 62

alias ruzzy_spc <=>